5 ms·
Generate Unicode Calendars for Markdown
- cgijoe 5y agoThis has nothing to do with Markdown. Was that word included for SEO or something? Perhaps a better title would be "ASCII Art Calendars".
- mikestew 5y ago"markdown" is not to be found on the page, so it's not for SEO; the submitter (incorrectly) editorialized the title. It's also not restricted to ASCII, so your suggestion does not increase title accuracy.
- nabeards 5y agoApologies, it was sent to me as a Markdown-compatible calendar generator. Didn’t mean to editorialize the title.
- fauria 5y agoBeing this a Unicode calendar generator, notice that according to the internacional standard ISO 8601 Monday is the first day of the week. https://en.m.wikipedia.org/wiki/ISO_8601 https://en.m.wikipedia.org/wiki/ISO_8601
- lifthrasiir 5y agoISO 8601 is not related to Unicode (ISO/IEC 10646), but if you do care about Unicode you may notice that Unicode CLDR actually supports the preferred first day of the week as a part of locale identifiers [1] (e.g. en-US-u-fw-mon will make the first day of the week Monday, as opposed to the default Sunday for USA). [1] https://www.unicode.org/reports/tr35/#UnicodeFirstDayIdentifier https://www.unicode.org/reports/tr35/#UnicodeFirstDayIdentif...
- psd1 5y agoYep, making Sunday the zero'th day.
- radomir_cernoch 5y agoThis comment made my day. :-)
- fauria 5y ago:) Nice try, but I'm afraid none of the data elements related to dates are zero-indexed (ie month 0, week 0, year 0, etc) https://en.wikipedia.org/wiki/Year_zero https://en.wikipedia.org/wiki/Year_zero update: technically year 0 in ISO 8601 corresponds to year 1 BC
- jcranmer 5y ago> :) Nice try, but I'm afraid none of the data elements related to dates are zero-indexed (ie month 0, week 0, year 0, etc) If you ask POSIX, or any date/time API that slavishly copies POSIX (say, java.util.Date or JavaScript's Date object), January is month 0.
- dhosek 5y agoThe definition of Monday as the first day of the week is strictly for the sake of week numbering over the course of the year and does not indicate that a calendar which displays weeks starting with Sunday violates the ISO standard.
- sambeau 5y agoThis is a lovely little project but it makes no claims to be for markdown—the site makes no mention of it as far as I can see. And, of course these fun unicode calendars don't render in Markdown. Can we change the title back to "Unicode Calendar Generator"?
- eevilspock 5y agoNot only that, the copy to clipboard function produces text that DOES NOT render correctly when pasted into a Markdown doc.
- nabeards 5y agoInteresting, it renders properly for me. I paste it in surrounded by the triple backtick.
- kingofpandora 5y agoYou don't put Markdown surrounded by triple backticks though... That's for code or other text that is not Markdown.
- MrOxiMoron 5y agoOn Firefox for android they don't render that great, the first row is misaligned and the day indicator is all over the place.
- JamesCoyne 5y agoheh. If you overflow the date past the past about year +/- 250000 you break the website and it has to be reloaded (in Firefox at least)
- harrylepotter 5y agoOctober 31 is easier.
- aloisdg 5y agoThere is a bug. October has 31 days, but the generated calendar have 30 days. Since the website doesn't seems to be open source, I cant fix it.
- jfk13 5y agoAnd February 2021 only had 27 days, apparently... hmm.
- focom 5y agoIs the lib to generate those opensource? Would love to try it
- zmix 5y agoWith Pandoc's Simple Table format[1] it's as simple as (plain ASCII): : October 2021 Su Mo Tu We Th Fr Sa -- -- -- -- -- -- -- 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 the only caveat being, that "October 2021" is implemented as caption and thus will become centered. And then: pandoc -f markdown -t html -o ./pandoc-table.html ./pandoc-table.md [1]: https://pandoc.org/MANUAL.html#tables https://pandoc.org/MANUAL.html#tables
- zmix 5y agoNow if cal(1) could produce this, that would be even more awesome. Currently it does this by default: Oktober 2021 So Mo Di Mi Do Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
- mixmastamyk 5y agoTry the rounded corners, looks nice: ╭────────────────────╮ │ October 2021 │ ├──┬──┬──┬──┬──┬──┬──┤ │Su│Mo│Tu│We│Th│Fr│Sa│ ├──┼──┼──╔══╗──┼──┼──┤ │10│11│12║13║14│15│16│ ├──┼──┼──╚══╝──┼──┼──┤ │24│25│26│27│28│29│30│ ╰──┴──┴──┴──┴──┴──┴──╯ http://unicode-search.net/unicode-namesearch.pl?term=arc http://unicode-search.net/unicode-namesearch.pl?term=arc
- kdeldycke 5y agoTIL about unicode rounded corners. Thanks @mixmastamyk, you just inspired me to add support for them into the python-tabulate project: https://github.com/astanin/python-tabulate/pull/151 https://github.com/astanin/python-tabulate/pull/151