From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41813 Path: news.gmane.org!not-for-mail From: "Idris Samawi Hamid" Newsgroups: gmane.comp.tex.context Subject: Re: Translaing ConTeXt interface to Arabic Date: Fri, 20 Jun 2008 20:13:37 -0600 Organization: Colorado State University Message-ID: References: <20080619230550.GA22913@khaled-laptop> <20080620151638.GB15208@khaled-laptop> <485BD43F.2000502@wxs.nl> <20080620175534.GA23756@khaled-laptop> <485C00BC.5050906@wxs.nl> <20080621011157.GA7373@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1214014543 645 80.91.229.12 (21 Jun 2008 02:15:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Jun 2008 02:15:43 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 21 04:16:27 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1K9seQ-0005MT-Fn for gctc-ntg-context-518@m.gmane.org; Sat, 21 Jun 2008 04:16:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 553BC1FC03; Sat, 21 Jun 2008 04:15:32 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07851-01-7; Sat, 21 Jun 2008 04:14:44 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 803441FBB5; Sat, 21 Jun 2008 04:14:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2ADD61FB49 for ; Sat, 21 Jun 2008 04:14:29 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12378-01 for ; Sat, 21 Jun 2008 04:13:52 +0200 (CEST) Original-Received: from trueband.net (director.trueband.net [216.163.120.8]) by ronja.ntg.nl (Postfix) with SMTP id F16561FBBE for ; Sat, 21 Jun 2008 04:13:51 +0200 (CEST) Original-Received: (qmail 14492 invoked by uid 1006); 21 Jun 2008 02:13:50 -0000 Original-Received: from ishamid@colostate.edu by rs0 by uid 1003 with qmail-scanner-1.16 (spamassassin: 3.1.4. Clear:SA:0(0.1/100.0):. Processed in 0.625627 secs); 21 Jun 2008 02:13:50 -0000 Original-Received: from unknown (HELO trueband.net) (172.16.0.17) by -v with SMTP; 21 Jun 2008 02:13:49 -0000 Original-Received: (qmail 2225 invoked from network); 21 Jun 2008 02:13:47 -0000 Original-Received: from unknown (HELO your-b27fb1c401) (75.104.82.252) by -v with SMTP; 21 Jun 2008 02:13:47 -0000 In-Reply-To: User-Agent: Opera Mail/9.24 (Win32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:41813 Archived-At: On Fri, 20 Jun 2008 20:03:10 -0600, Idris Samawi Hamid wrote: > On Fri, 20 Jun 2008 19:11:57 -0600, Khaled Hosny > 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 ___________________________________________________________________________________