sfsam / Itsycal

Itsycal is a tiny calendar for your Mac's menu bar. http://www.mowglii.com/itsycal
MIT License
3.25k stars 234 forks source link

support for Chinese lunar calendar #155

Open schumicx opened 4 years ago

schumicx commented 4 years ago

Hope to support Chinese lunar calendar

nk9 commented 7 months ago

What would support for this look like? An explanation and some screenshots would be very helpful.

hgvhgv commented 6 months ago

My use case (Hebrew not Chinese lunar) might be different than OP but I envision: The ability to show a second date in the menu bar, using the datetime pattern cell in the preferences setting. My current pattern is E d MMM showing "Thu 28 Dec". There would be a second cell for a secondary calendar: it could have a dropdown specifying the locale for this calendar or draw from a env variable. So if I just have date and month (d MMM) for my secondary calendar, my display would be something like "Thu 28 Dec / ט״ז טבת" [16 Tevet]. I'm not sure how best to deal with elements that would be the same for each calendar (so if someone uses the time in their datetime pattern).

I'm less sure of how to integrate a second calendar in the main mini calendar without making it much larger. Perhaps you could merely have the second calendar show as another entire month below the main month (so currently mine would show Dec 2023 and then Tevet 5784. The events list would ideally have both dates separated with a slash: Dec 28 / 16 Tevet. (sorry placing hebrew in the middle of Roman text is tough). This secondary calendar would show if the dropdown/env variable mentioned above was set.

I hope this is helpful!