From: Efraim Feinstein <efraim.feinstein@gm...>  20090727 05:30:33

Hi, I'm using Saxon in an open source project in which it would be useful to have the traditional Hebrew numbering system for xsl:number. After taking a look at the Saxon source code, I made an attempt to follow the directions for localization. I'm attaching the source code and a test stylesheet. As of now, the code will format a given number. It works correctly for the numbers 1999; 0 is undefined in the system, and it's unclear to me how numbers divisible by 1000 should be differentiated from the numbers 19. One way would be to remove the geresh mark from 19. The remainder of numbers between 1001 and 9999 work according to the reasonably standard convention of using the geresh (׳) as the thousands separator. Numbers above 9999 are rarely, if ever, seen in this system, so I guessed at how they should be represented. That's really all I need it to do for my own work. The calendar and numbersaswords functionality aren't in there. The latter would be difficult in Hebrew  the language is gendered and there are at least two forms of correctly specifying a number in words (Biblical and Modern styles). There's also the variable of whether the result should be pointed (with vowels) or unpointed (without vowels). The XSLT 2.0 specification is also unclear about the representation of numbers in the traditional Hebrew system. There are 2 examples The one given as a numerical sequence in section 12.3: א, ב, ג, ד, ה, ו, ז, ח, ט, י, יא, יב, יג, יד, טו, טז, יז, יח, יט, כ has no markings. The one given for a date (sec 16.5.3): כ״ו טבת תשס״ג shows both numbers with the gershayim symbol (״) A third possibility is to mark all letters that represent numbers with an overdot. In my implementation, I chose to include the additional markings. Presumably, these should be an option, but I'm not sure how one is supposed to specify such an option. How much functionality is required to get this (or code with similar purpose) into Saxon? I am not on the list; please CC me on replies. Thank you, Efraim Feinstein Jewish Liturgy Project/Open Siddur http://jewishliturgy.org 