[XeTeX] Malayalam typesetting using XeLaTeX

Zdenek Wagner zdenek.wagner at gmail.com
Thu Nov 14 22:25:12 CET 2013

2013/11/14 NMPOST7 <nmpost7 at gmail.com>:
> On 14/11/2013 01:12, Zdenek Wagner wrote:
>>> On 14/11/2013 00:47, Zdenek Wagner wrote:
>> The .tec file should be anywhere below $TEXMF/fonts/misc (it is better
>> to put it into your texmf-local tree and rebuild the file name
>> database) or keep it in the current directory. The .map file is not
>> needed by xetex but usually both are kept in the same directory.
> For the time being I have kept the files in my current directory.
> What do I need to do so that the command below works? Do I not need to define
> the command \malayalamnumerals ?
> \renewcommand{\thesection}{\malayalamnumerals{section}}
No, see my example. I have added Mapping=malayalamnumerals to the font
definition. Whenever you switch to Malayalam, all Arabic digits will
be converted automatically. They will be converted just before they
are printed, not in the aux files. For instance, the .toc file of our
book contains:

\contentsline {chapter}{ज़्देन्येक वाग्नेर\,:\hspace {.5em}ताजमहल}{14}
\contentsline {chapter}{अरुणा राय\,:\hspace {.5em}चुंबन}{18}
\contentsline {chapter}{ज़्देन्येक वाग्नेर\,:\hspace {.5em}हे मकड़ी}{22}
\contentsline {chapter}{अरुणा राय\,:\hspace {.5em}जो मिरा इक महबूब है}{24}
\contentsline {chapter}{ज़्देन्येक वाग्नेर\,:\hspace {.5em}मेघ}{26}
\contentsline {chapter}{अरुणा राय\,:\hspace {.5em}मेरे सपनों का राजकुमार}{28}
\contentsline {chapter}{ज़्देन्येक वाग्नेर\,:\hspace {.5em}स्वर}{30}
\contentsline {chapter}{अरुणा राय\,:\hspace {.5em}मौन का हाथ}{32}

You see that the page numbers are Arabic but they will be converted to
Devanagari because this part of the table of contents is printed in
the Hindi environment.

If you do not wish to convert all numbers, do not add the mapping to
the font definition and only at the places where conversion should
occur, use within a group \addfontfeatures{Mapping=malayalamnumerals}.
> BR
> suren
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex

Zdeněk Wagner

More information about the XeTeX mailing list