<br>Thanks for your fast reply and any suggestions.<br><br><div class="gmail_quote">2010/3/14 John Layt <span dir="ltr"><<a href="mailto:johnlayt@googlemail.com" target="_blank">johnlayt@googlemail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Thanomsub,<br>
<br>
I'm the official maintainer of Calendar Systems in KDE.  Thank you for these<br>
patches, the Buddhist calendar is on my to-do list for 4.5, but I had a number<br>
of questions about how to do it right so it's great to have expert help :-)<br>
<br>
At a quick look, there's a few issues that spring to mind based on my previous<br>
research.<br>
<br>
* QDate<br>
You use QDate for the Gregorian calendar base calculations, which as you note<br>
causes an issue with QDate's hybrid Julian/Gregorian calendar.  However, we do<br>
have a KCalendarSystemGregorianProleptic class which implements a 'pure'<br>
Gregorian calculation which you could use instead.  If you look at<br>
KCalendarSystemIndianNational calendar you can see an example of this.<br>
<br></blockquote><div>Ok, I will look at KCalendarSystemGregorianProleptic as you suggested.<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

* Year Numbering<br>
The big questions is do we need to adjust for the different epochs and New<br>
Years days used historically and keep the year numbers the same as observed?<br>
In other words, are we implementing an 'ideal' calendar as it exists today, or<br>
do we want an 'historic' calendar to show the dates as they really were in the<br>
past (like QDate sort-of does)?<br>
<br>
My understanding of the epochs/New Years used is:<br>
  1888 to 1912 used the Rattanakosin Era epoch April 6 1782 AD<br>
  1912 to 1941 used the Buddhist Era epoch April 1 545 BC<br>
  1941 to now  uses the Buddhist Era epoch January 1 545 BC<br>
<br>
We could implement 'pure' private classes for each of these calculations, then<br>
have a separate "Thai Solar" class made available to the users that switches<br>
between them based on the date.  Or we could just have a single class with all<br>
the calculations in one place switched on date.  Or we could just support the<br>
current calculation and not worry about historical accuracy.<br>
<br>
How do Thai people deal with this in daily life, for example in school text<br>
books, do they refer to dates before 1941 or 1912 by the old year numbers or<br>
the new year numbers?<br>
<br></blockquote><div>Oh, it seems you have more informations on this calendar :-)<br>As your mentions, i think we should use the modern epoch <br>since we thought this Thai Buddhist Era has no different from Gregorian except Year (+543AD) .<br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
* Naming<br>
You call it the Buddhist calendar, but I think I would prefer to call it<br>
something like the "Thai (Buddhist Era)" or "Thai Solar" (as Wikipedia does<br>
<a href="http://en.wikipedia.org/wiki/Thai_solar_calendar" target="_blank">http://en.wikipedia.org/wiki/Thai_solar_calendar</a>) as there is actually the<br>
Buddhist lunisolar calendar (<a href="http://en.wikipedia.org/wiki/Buddhist_calendar" target="_blank">http://en.wikipedia.org/wiki/Buddhist_calendar</a>)<br>
which we may implement one day and I don't want them to get confused.  Any<br>
other suggestions?<br>
<br></blockquote><div>Ok, You're right. We should call this calendar system to "Thai (Buddhist Era)".<br>And it is the great news that you will be develops Buddhist lunisolar calendar,<br>it would be useful.<br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
* Month and day names.<br>
When referring to the months and days in English, is it more common to use the<br>
English names or transcriptions of the Thai names?  So would you expect to see<br>
January or Makarakhom?<br>
<br></blockquote><div>For me, i want to use January instead of Makarakhom.<br>I don't think that Thai peoples would be use Makarakhom in case of using the programs with no Localization.<br><br>Best Regards,<br>Thanomsub Noppaburana.<br>
<br>p.s.Waiting for opinions from other Thai developers.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
OK, I think that's enough enough questions for now :-)  I'm looking forward to<br>
your reply.<br>
<br>
For initial discussions, the mailing list is always the best starting point,<br>
but the best place for submitting code is via our Review Board at<br>
<a href="http://reviewboard.kde.org" target="_blank">http://reviewboard.kde.org</a> where it's easier for people to look at and comment<br>
on the code in context.<br>
<br>
Many thanks,<br>
<font color="#888888"><br>
John.<br>
</font></blockquote></div><br>