https://bugs.kde.org/show_bug.cgi?id=72418
Fushan Wen <qydwhotm...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Version Fixed In| |6 Latest Commit| |https://invent.kde.org/plas | |ma/kdeplasma-addons/commit/ | |ae9b546870b94cbe2038504e779 | |ff409d7062b6f Resolution|--- |FIXED --- Comment #4 from Fushan Wen <qydwhotm...@gmail.com> --- Git commit ae9b546870b94cbe2038504e779ff409d7062b6f by Fushan Wen. Committed on 19/01/2023 at 12:36. Pushed by fusionfuture into branch 'master'. alternatecalendar: add support for Islamic Calendar (Astronomical and Umm al-Qura) There are different kinds of Islamic calendars, and Qt only supports "Islamic calendar, tabular". This adds support for another two Islamic calendars. The Islamic religious calendar and Saudi Arabia's Umm al-Qura calendar, however, are based on the observation of the crescent moon. It is thus affected by the position at which the observations are made, seasonal variations in the time of sunset, the eccentricities of the moon's orbit, and even the weather at the observation site. This makes it impossible to calculate in advance, and it causes the start of a month in the religious calendar to differ from the civil calendar by up to three days. Using astronomical calculations for the position of the sun and moon, the moon's illumination, and other factors, it is possible to determine the start of a lunar month with a fairly high degree of certainty. However, these calculations are extremely complicated and thus slow, so most algorithms, including the one used here, are only approximations of the true astronomical calculations. At present, the approximations used in this class are fairly simplistic; they will be improved in later versions of the code. Like the Islamic religious calendar, Umm al-Qura is also based on the sighting method of the crescent moon but is standardized by Saudi Arabia. See also: https://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types and https://developer.android.com/reference/android/icu/util/IslamicCalendar FIXED-IN: 6 M +1 -0 plasmacalendarplugins/alternatecalendar/CMakeLists.txt M +8 -7 plasmacalendarplugins/alternatecalendar/alternatecalendarplugin.cpp M +13 -7 plasmacalendarplugins/alternatecalendar/calendarsystem.h M +18 -8 plasmacalendarplugins/alternatecalendar/config/qml/AlternateCalendarConfig.qml A +154 -0 plasmacalendarplugins/alternatecalendar/provider/islamiccalendar.cpp [License: GPL(v2.0+)] A +31 -0 plasmacalendarplugins/alternatecalendar/provider/islamiccalendar.h [License: GPL(v2.0+)] https://invent.kde.org/plasma/kdeplasma-addons/commit/ae9b546870b94cbe2038504e779ff409d7062b6f -- You are receiving this mail because: You are watching all bug changes.