ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Idris Samawi Hamid" <ishamid@colostate.edu>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Translaing ConTeXt interface to Arabic
Date: Fri, 20 Jun 2008 20:13:37 -0600	[thread overview]
Message-ID: <op.uc2tsz0dnx1yh1@your-b27fb1c401> (raw)
In-Reply-To: <op.uc2tbko4nx1yh1@your-b27fb1c401>

On Fri, 20 Jun 2008 20:03:10 -0600, Idris Samawi Hamid  
<ishamid@colostate.edu> wrote:

> On Fri, 20 Jun 2008 19:11:57 -0600, Khaled Hosny <khaledhosny@eglug.org>
> 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	other threads:[~2008-06-21  2:13 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-19 23:05 Khaled Hosny
2008-06-20  0:15 ` Idris Samawi Hamid
2008-06-20  6:30   ` Wolfgang Schuster
2008-06-20  7:38     ` Hans Hagen
2008-06-20 15:17   ` Khaled Hosny
2008-06-20 16:01     ` Hans Hagen
2008-06-20 17:55       ` Khaled Hosny
2008-06-20 18:25         ` Khaled Hosny
2008-06-20 19:10         ` Hans Hagen
2008-06-21  0:52           ` Idris Samawi Hamid
2008-06-21  1:11             ` Khaled Hosny
2008-06-21  2:03               ` Idris Samawi Hamid
2008-06-21  2:13                 ` Idris Samawi Hamid [this message]
2008-06-21  2:51                   ` Khaled Hosny
2008-06-21  3:08                     ` Idris Samawi Hamid
2008-06-21 20:02                       ` Khaled Hosny
2008-06-22  1:38                         ` Idris Samawi Hamid
2008-06-22  7:22                           ` Khaled Hosny
2008-06-22 16:25                     ` Hans Hagen
2008-06-22 16:49                       ` Hartmut Henkel
2008-06-22 17:01                         ` Hans Hagen
2008-06-22 17:10                           ` Arthur Reutenauer
2008-06-22 17:23                             ` Hans Hagen
2008-06-22 19:01                               ` Henning Hraban Ramm
2008-06-22 17:29                       ` Calendar resources Charles P. Schaum
2008-06-22 17:38                         ` Hans Hagen
2008-06-22 22:45                           ` Charles P. Schaum
2008-06-20 20:03         ` Translaing ConTeXt interface to Arabic David

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.uc2tsz0dnx1yh1@your-b27fb1c401 \
    --to=ishamid@colostate.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).