[XeTeX] Sanskrit hyphenation
Yves Codet
ycodet at club-internet.fr
Mon Mar 28 06:58:45 CEST 2005
Le 26 mars 05, à 19:35, Will Robertson a écrit :
> I would do something like this: (you'll need the latest fontspec --
> v1.6 -- from CTAN if you don't have it already)
>
> \newfontinstance\frenchfont{Cochin}
> \newfontinstance\devanagarifont[Script=Devanagari]{Sanskrit 2003}
> \newcommand*\sanskrittext[1]{{\devanagarifont\language=\sanskrit #1}}
> \newenvironment{sanskritpar}{\devanagarifont\language=\sanskrit}{}
>
> \frenchfont
> text in french \sanskrittext{short text in sanskrit} more text in
> french
> \begin{sanskritpar}
> long sanskrit text
> \end{sanskritpar}
> more text in french
>
> (Untested.)
> Is that what you were after?
Yes, it works fine (except the \language=\sanskrit :-(
Is \newcommand*\sanskrittext another syntax for
\newcommand{\sanskrittext}?
Thanks for your help.
Yves
More information about the XeTeX
mailing list