[XeTeX] A Quick question

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Sep 22 14:18:45 CEST 2008

> What I am going to ask has been achieven in text by Ross Morre's hints.
> Now this question applies to maths environments,
> In English we have 1.2 (read as 1 point 2 as a number in maths) but in
> Farsi, instead of the dot (or the point) we have a unicode character (066B).
> If I tell XeTeX, that change the dot to this unicode character, then
> whenever I put the dot, I will get that unicode character, so the question
> is how can I tell xetex that if we have <number1>.<number2>, treat that dot
> as the unicode character and otherwise treat it as just a dot.

No idea if you can do that, but you could look at my siunitx package for
something like this:

\usepackage[decimalsymbol = <whatever character>]{siunitx}
\num{1.23} % Result will be 1<whatever character>23

Joseph Wright

More information about the XeTeX mailing list