You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Henry Zongaro (JIRA)" <xa...@xml.apache.org> on 2007/12/10 15:43:43 UTC

[jira] Commented: (XALANJ-2415) xsl:number with arabic-indic numering format

    [ https://issues.apache.org/jira/browse/XALANJ-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550092 ] 

Henry Zongaro commented on XALANJ-2415:
---------------------------------------

I don't know the history behind the numberings that are supported, but I suspect it was a matter of doing the best job possible with limited resources - which means that not all numberings are supported.

If you take a look at the getFormattedNumber method of org.apache.xalan.templates.ElemNumber, you'll see a switch statement that shows the first character of various numberings.  If you're motivated, perhaps you could try providing a case for 0x0660.

Note also that XSLTC appears to support Arabic-Indic numbering - or at least, given an xsl:number like the one in your example, it's producing characters in the range U+0660 to U+0669.   Whether it's doing that correctly, I can't tell.  You might try using it a work-around.

> xsl:number with arabic-indic numering format
> --------------------------------------------
>
>                 Key: XALANJ-2415
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2415
>             Project: XalanJ2
>          Issue Type: Improvement
>            Reporter: Holger Floerke
>            Priority: Minor
>
> When using <xsl:number format="&#x661;"/> Xalan does not use Arabic-Indic numbering.
> Extract from Unicode-Database
> """
> 0660;ARABIC-INDIC DIGIT ZERO;Nd;0;AN;;0;0;0;N;;;;;
> 0661;ARABIC-INDIC DIGIT ONE;Nd;0;AN;;1;1;1;N;;;;;
> 0662;ARABIC-INDIC DIGIT TWO;Nd;0;AN;;2;2;2;N;;;;;
> 0663;ARABIC-INDIC DIGIT THREE;Nd;0;AN;;3;3;3;N;;;;;
> 0664;ARABIC-INDIC DIGIT FOUR;Nd;0;AN;;4;4;4;N;;;;;
> 0665;ARABIC-INDIC DIGIT FIVE;Nd;0;AN;;5;5;5;N;;;;;
> 0666;ARABIC-INDIC DIGIT SIX;Nd;0;AN;;6;6;6;N;;;;;
> 0667;ARABIC-INDIC DIGIT SEVEN;Nd;0;AN;;7;7;7;N;;;;;
> 0668;ARABIC-INDIC DIGIT EIGHT;Nd;0;AN;;8;8;8;N;;;;;
> 0669;ARABIC-INDIC DIGIT NINE;Nd;0;AN;;9;9;9;N;;;;;
> """

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org