[OS X TeX] Roman> Devanagari, RomDev, fontspec
TIMOTHY P. LIGHTHISER
tlighthiser at gmail.com
Sat Dec 11 18:03:20 EST 2010
Hi!
It would be great to be able to easily transform accented Roman
characters into Devanagari characters.
It is possible with the minimal example that follows, but I need to
hammer the characters into shape with an extra carriage return (after
having received the error message in the console which is below).
I was able to do the transformation w/o the extra carriage return
several weeks ago, but something has changed (updated to TeX Live
2010?).
I tried putting fontspec.cfg in the same folder as the source file,
but I still need the extra carriage return.
%\aliasfontfeatureoption{Ligatures}{Historic}{Historical}
% \let\newfontinstance\newfontfamily
Ideally, I'd also like to use Mac's Devanagari MT if possible, but
when its selected the conjunct characters do not form.
What can be done?
TIA!
t
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\XeTeXuseglyphmetrics=1
\documentclass{article}
%\usepackage{polyglossia}
%\setdefaultlanguage{english}
%\setotherlanguage{sanskrit}
\usepackage{fontspec}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{Charis SIL}
%http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=CharisSILfont
\newfontfamily\sahadevaunicode[Script=Devanagari,Mapping=RomDev]{Sahadeva}
\newcommand{\sahauni}[1]{{\sahadevaunicode\textsanskrit{#1}}}
%http://github.com/somadeva/RomDev > RomDev.map
% http://bombay.indology.info/software/fonts/index.html > Sahadeva font
% http://cikitsa.blogspot.com/2010_07_01_archive.html > Switching from
Devanāgarī to Roman with a single command
\begin{document}
\sahauni{āsīdrājā nalo nāma vīrsenasuto balī} > āsīdrājā nalo nāma
vīrsenasuto balī
\end{document}
This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010)
restricted \write18 enabled.
entering extended mode
(./Untitled.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, arabic, armenian
, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutch, u
kenglish, usenglishmax, esperanto, estonian, farsi, finnish, french, galician,
german, ngerman, swissgerman, monogreek, greek, hungarian, icelandic, assamese,
bengali, gujarati, hindi, kannada, malayalam, marathi, oriya, panjabi, tamil,
telugu, indonesian, interlingua, irish, italian, kurmanji, lao, latin, latvian,
lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, polish, portuguese, roma
nian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, turkish,
turkmen, ukrainian, uppersorbian, welsh, loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2010/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/expl3.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3names.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3basics.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3expan.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3tl.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3intexpr.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3quark.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3seq.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3toks.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3int.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3prg.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3clist.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3token.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3prop.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3msg.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3io.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3skip.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3box.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3keyval.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3keys.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3precom.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3xref.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3file.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/expl3/l3fp.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/tools/calc.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/xpackages/xbase/xparse.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/kastrup/binhex.tex)
(/usr/local/texlive/2010/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2010/texmf-dist/tex/generic/xkeyval/keyval.tex)))
(/usr/local/texlive/2010/texmf-dist/tex/latex/fontspec/fontspec-patches.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/fixltx2e.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/euenc/eu1enc.def)
(/usr/local/texlive/2010/texmf-dist/tex/latex/euenc/eu1lmr.fd))
fontspec.cfg loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/fontspec/fontspec.cfg))
No file Untitled.aux.
! Undefined control sequence.
\sahauni #1->{\sahadevaunicode \textsanskrit
{#1}}
l.20 ...Åsƒ´drƒÅjƒÅ nalo nƒÅma vƒ´rsenasuto balƒ´}
> āsīdrājā nalo nāma...
?
[1] (./Untitled.aux) )
Output written on Untitled.pdf (1 page).
Transcript written on Untitled.log.
More information about the MacOSX-TeX
mailing list