Hi all,<br><br>It has been quite a few years since Liang Qi tried to add Chinese lunar calendar support in the kdelibs ( see <a href="http://lists.kde.org/?t=119817976300004">http://lists.kde.org/?t=119817976300004</a> ) .<br>
<br>Recently, I tried some effort to patch my local kdelibs (4.5.1) to get the lunar calendar supported. I would like to forward my patches to see if we can advance the job.<br><br>There are two patches. <br><br>The first one adds KCalendarSystemChinese to kdelibs. <br>
1. All the routines(from ccal-2.5.2) needed for the lunar calendar computation are encapsulated as the "ChineseLunarCalendarSystem" class. <br>2. The traditional (printed) Chinese calendar is the Gregorian calendar with each day annotated by its Lunar day in Chinese characters. So The KCalendarSystemChinese is basically the Gregorian calendar, with the Chinese Lunar day information(utf8 coded) added to the function call dayString( const QDate &pDate, ShortFormat ). Each day string obtained includes two lines, one for Gregorian day, one for Chinese Lunar day. (The function dayString( const QDate &pDate, ShortFormat ) is actually called when we want to get a day string to display in the plasma calendar table. )<br>
<br>Since there are two lines obtained from dayString(), the plasma calendar widgets has problems to display it. The cell contents is too crowded, or font size is too large.<br>The second patch <br>1. adds a font scale factor in the configuration UI, so that users can scale down the font size in the calendar table<br>
2. helps to remember the popup calendar size, so that the popup widget won't be reset to it's default minimum size each time kde is restarted.<br><br><br><br>Regards,<br><br>Feng Huang<br><br>