From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9875 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: A Semetic Aporia Date: Mon, 18 Nov 2002 10:59:23 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <5.1.0.14.1.20021118105736.02795ea8@server-1> References: <200211172117.45028.ishamid@attbi.com> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1037613526 28440 80.91.224.249 (18 Nov 2002 09:58:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2002 09:58:46 +0000 (UTC) Cc: ntg-context@ntg.nl, ahoenig@suffolk.lib.ny.us Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Dig0-0007OQ-00 for ; Mon, 18 Nov 2002 10:58:44 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id D192710AEE; Mon, 18 Nov 2002 11:00:34 +0100 (MET) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id 9FD7F10AEA for ; Mon, 18 Nov 2002 10:59:34 +0100 (MET) Original-Received: from server-1.pragma-ade.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.nl (8.12.5/pre1.0-MySQL/8.12.5) with ESMTP id gAIAtIiR006551; Mon, 18 Nov 2002 11:55:18 +0100 Original-Received: from LAPTOP-3.wxs.nl (laptop-3 [10.100.1.191]) by server-1.pragma-ade.nl (8.12.2/8.12.2) with ESMTP id gAI9xPgm018422; Mon, 18 Nov 2002 10:59:26 +0100 X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: Idris S Hamid In-Reply-To: <200211172117.45028.ishamid@attbi.com> X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail.solcon.nl) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:9875 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9875 At 09:17 PM 11/17/2002 -0800, Idris S Hamid wrote: >Dear Hans, >I have a serious problem: > >In Classical Arabic numerals are pronounced from single digits to tens to >hundreds, etc., e.g. > >1234== four, thirty, two hundred, and a thousand. This makes transcribing >Arabic numerals easy: they run the same as in roman languages. So in my otp's >(Omega-Gamma) there is a command to transcribe any left-to-right L-R string >numeral into an L-R string in Arabic (so I don't have to type the numeral >backwards in the L-R transcription; i.e., typing 1234 in L-R comes out the >same in R-L). > >But there is a complicated scenario: For purposes of sectioning, we get >(as in >a TOC) for e.g. Section 3.12 > >in roman it should be (L-R): >3.12------------------------------------------- > >in Arabic it should be (R-L): >-------------------------------------------12.3 > >Now my Gamma configuration is such that everything is flipped R-L except for >numerals, so I _actually_ get >-------------------------------------------3.12 > >in my Arabic sections and TOC. Is there any way to reverse the order of >subsections so that subsection 3.12 comes out as 12.3? I assume there is some >code that commands ConTeXt to print the section number, followed by the >subsection number. Can that be hacked to reverse the sequence for Semetic >documents (Arabic and Hebrew)? So we could have an option say, >[style=semetic]. I did something similar in EDMAC once for Arabic critical >editions. \newif\ifreversesectionnumbers \unprotected \def\@@longsectionnumber#1% {\ifreversesectionnumbers \@@shortsectionnumber{#1}% \ifnum\countervalue{\??se\previoussection{#1}}>\zerocount .\csname\previoussection{#1}\c!nummer\endcsname \fi \else \ifnum\countervalue{\??se\previoussection{#1}}>\zerocount \csname\previoussection{#1}\c!nummer\endcsname.% \fi \@@shortsectionnumber{#1}% \fi} \reversesectionnumberstrue \chapter{Well, let's see} \section{If} \section{This} \section{Works} but i assume you want a more sophisticated mechanism; should this be a key in \setuphead? Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------