Yasser S. wrote:
Is there a way to use Arabic numerals (i.e. ١، ٢، ٣، ...) in
endnote/footnote numbers and their references?
I tried replacing the numbers in the <a> href attributes from __FN123__
to __FN١٢٣__ but that didn't produce the result I expected.


--> Please undo what you did. You must keep "system cross-references" like "__FN123__" intact.



What you want is simply change the *number* *format* of endnote/footnote numbers and their references.

This is done in XSLT stylesheets (not in XED scripts) like W2X_install_dir/xslt/xhtml_strict.xslt, xhtml_loose.xslt, xhtml1_1.xslt, xhtml5.xslt.

(XED scripts add semantics to styled XHTML 1.0; XSLT stylesheets convert "semantic XHTML 1.0" to other formats, including XHTML 1.1.)

These XSLT stylesheets support a parameter called footnote-number-format. It's default value is "[1]". See http://www.xmlmind.com/w2x/_distrib/doc/manual/index.html#transform_step

The documentation says:
---
footnote-number-format: A valid XSLT number format (value of attribute format of element xsl:number).
---

which should point you to: "XSL Transformations (XSLT)
Version 1.0", "7.7.1 Number to String Conversion Attributes", https://www.w3.org/TR/xslt#convert

---
Format tokens...are interpreted as follows:

- Any other format token indicates a numbering sequence that starts with that token. If an implementation does not support a numbering sequence that starts with that token, it must use a format token of 1.
...
Here are some examples of conversion specifications:

     - format="&#x30A2;" specifies Katakana numbering
---

After reading the XSLT 1.0, I simply tried -p transform.footnote-number-format "١" (Unicode Character 'ARABIC-INDIC DIGIT ONE' (U+0661)) and it worked.

Simply make sure to really pass "١" to w2x. This can be easy or tricky depending on how you invoke w2x. Using a bash script on my Linux box, I had to specify:

-p transform.footnote-number-format $'\u0661'



--
XMLmind Word To XML Support List
w2x-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/w2x-support

Reply via email to