[XeTeX] XeTeX & sanskrit : how to sart

Helios helios at frmail.net
Wed Aug 15 00:16:52 CEST 2012


Thanks Gildas.

Your script give don't give me the good result.

I have change only this line
% \newfontfamily\sanskritfont[Script=Devanagari]{Sanskrit2003} % ou 
autre police
\newfontfamily\sanskritfont[Script=Devanagari]{SaSETU} % ou autre police
and each character is replaced by a square.

the warning is
* fontspec warning: "script-not-exist"
* Font 'SaSETU' does not contain script 'Devanagari'.

and with this modification (without script)
\newfontfamily\sanskritfont{SaSETU} % ou autre police

no warning but the same result.

Have you some idea to help me ?

i use tex-shop for mac v3.11 (release 6/6/12 for lion) and tex-live is 
up to date.
XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012)

Best Regards,
Yves



Le 14/08/12 23:27, Gildas Hamel a écrit :
> %!TEX TS-program = xelatexmk
> \documentclass{article}
> \usepackage{fontspec}
> \usepackage{polyglossia}
> \setdefaultlanguage{french}
> \setotherlanguage{sanskrit}
> %\setmainfont[Ligatures=TeX,
> %    Scale=MatchLowercase]{Junicode} % Hoefler Text, etc.
> \newfontfamily\sanskritfont[Script=Devanagari]{Sanskrit2003} % ou autre police
>
> \begin{document}
> Texte en français, suivi de ce texte copié sur la page web:
> \textsanskrit{नारायणं नमस्कृत्य नरं चैव नरॊत्तमम}
>
> Retour au français.
> Forme versifiée:
> \begin{sanskrit}
>      \begin{verse}
>   0 नारायणं नमस्कृत्य नरं चैव नरॊत्तमम\\
>        देवीं सरस्वतीं चैव ततॊ जयम उदीरयेत
>      \end{verse}
> \end{sanskrit}
> \end{document}


More information about the XeTeX mailing list