[XeTeX] Problems in Devanagari typing.

Peter Dyballa Peter_Dyballa at Web.DE
Sun Nov 24 17:23:41 CET 2013

Am 24.11.2013 um 15:43 schrieb S. venkataraman:

> \usepackage{ifxetex}
> \RequireXeTeX

In your example you do not need these. The ifxetex package offers to \ifxetex … \else … \fi, is unknown to me, it looks like a command to be used in a class file.

> \usepackage{fontspec}
> \usepackage{xunicode}
> \usepackage{xltxtra}

The fontspec package loads the other two.

> \newfontface\yogesh[Script=Devanagari,Ligatures=TeX]{CDAC-GISTYogesh}
> \newfontface\aksharygni[Script=Devanagari,Ligatures=TeX]{Aksharyogini}
> \newfontface\freeserif[Script=Devanagari,Ligatures=TeX]{FreeSerif}
> \newfontface\freesans[Script=Devanagari,Ligatures=TeX]{FreeSans}

For the block above you can use

	\defaultfontfeatures{Ligatures=TeX}	%formerly [Mapping=tex-text]

> {\yogesh विकर्णनीय  द्वि-आधारी संक्रिया}\\ %problem with the first word.
> Repha is positioned wrongly.
> {\aksharygni विकर्णनीय  द्वि-आधारी संक्रिया}\\ %problem with second word.
> dvi ligature is not correct.
> {\freeserif विकर्णनीय  द्वि-आधारी संक्रिया}\\ %Problem with second and
> third words. dvi ligature is not correct and kri ligature is not correct.
> {\freesans विकर्णनीय  द्वि-आधारी संक्रिया}\\ %kri ligature is not correct.

How do these texts appear in an Unicode aware text editor? Could be the fonts are not perfect.

Can the shape be improved by loading the polyglossia package and using, in the preamble, these?

	\setdefaultlanguage{sanskrit}	% maybe devanagari works too, but I don't see this documented

For this you would need to make four different test cases and could only test one font by the LaTeX document, the one used by




Can you improve the shape of the characters by using font features in their raw form? for example:

	\newfontfamily\sanskritfont[Script=Devanagari, RawFeature=+<this>, RawFeature=+<that>]{<font>}

You can also switch off certain font features by using "-" instead of "+". Note that XeTeX is not perfect yet in shaping Indian scripts.



Got Mole problems?
Call Avogadro 6.02 x 10^23

More information about the XeTeX mailing list