On Fri, 20 Jun 2008 20:03:10 -0600, Idris Samawi Hamid  
<[EMAIL PROTECTED]> wrote:

> On Fri, 20 Jun 2008 19:11:57 -0600, Khaled Hosny <[EMAIL PROTECTED]>
> wrote:
>
>>> Not to mention Saudi Arabia, which uses the lunar months...
>>>
>> But I think this another issue of its own, since SA uses Hijri not
>> Georgian calender, do we have support for lunar based hijri calender?
>
> Good point. I'll try to find a conversion algorithm...

http://www.codeproject.com/KB/datetime/hijrigregorianclass.aspx

Perhaps this can be translated to lua? Then something like:

\currentdate[hijri][month,year] will translate the gregorian date into the  
hijri one. However, we will also need an option to increment the result of  
the conversion by up to two days in either direction, since there is  
always a margin of error of +/- one day in the results (+/- two days  
rarely):

\currentdate[hijri,-1][month,year]

will translate the gregorian to hijri and subtract one day.

More info: http://www.phys.uu.nl/~vgent/islam/islam_tabcal.htm

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to