2012/2/12 Vikas Rawal <[email protected]>:
>>
>> Here's some text in the default font,
>> Charis, and {\sanskritfont
>> अत्र देवनागरीलिप्युदाहरणम् वर्तते| \par}
>> \end{document}
>
>
> Isn't there a way to do it document-wide? So different fonts are
> automatically used depending on the script.
>
Another possibility is to use ucharclasses. This package is non-free,
you can freely download it from CTAN and use it but you are not
allowed to distribute it. This is the reason why you cannot find it in
TeX distributions. This is a small sample (no need to change fonts
manually):
\documentclass[12pt]{article}
\usepackage{fontspec}
\usepackage[Devanagari]{ucharclasses}
\setmainfont{Charis SIL}
\setTransitionTo{Devanagari}{\fontspec[Script=Devanagari]{Nakula}}
\begin{document}
I can write in English और वाक्य का एक भाग हिंदी में हो सकता है।
\end{document}
> Vikas
>
>
>
>>
>>
>> --------------------------------------------------
>> Subscriptions, Archive, and List information, etc.:
>> http://tug.org/mailman/listinfo/xetex
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
> http://tug.org/mailman/listinfo/xetex
--
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex