[XeTeX] Velthuis to Roman translit

Dominik Wujastyk wujastyk at gmail.com
Fri Feb 4 11:56:58 CET 2011


This works for me (output attached):

 \documentclass[10pt,titlepage]{book}

\usepackage{xltxtra}

\usepackage{polyglossia}

\setmainfont{Charis SIL}

\defaultfontfeatures{Mapping=tex-text}

\newfontfamily\textsanskrit[Script=Devanagari,Mapping=RomDev]{Sahadeva}

\begin{document}

Hello world!

\textsanskrit{astyuttarasyāṃ diśi devatātmā\par himālayo nāma nagādhirājaḥ}

\end{document}


But I think there's another point.  You've gone through some trouble to
convert Velthuis to UTF8.  But if, in the \newfontfamily statement you said
"Mapping=velthuis-sanskrit" then the Velthuis encoding itself can give
perfectly good Nagari output.

E.g.,

\newfontfamily\textsanskrit[Script=Devanagari,Mapping=velthuis-sanskrit]{Sahadeva}

\begin{document}

Hello world!

\textsanskrit{astyuttarasyaa.m di"si devataatmaa\par himaalayo naama
nagaadhiraaja.h}

\end{document}


Best,
Dominik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20110204/d2146e5e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kk.pdf
Type: application/pdf
Size: 17755 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20110204/d2146e5e/attachment-0001.pdf>


More information about the XeTeX mailing list