[tex-live] Please help me
Zdenek Wagner
zdenek.wagner at gmail.com
Mon Nov 17 10:31:31 CET 2008
2008/11/17 Jim Coroneos <jim.coroneos at gmail.com>:
> \documentclass[12pt,a4paper]{book}
> \usepackage{fontspec}
> \setromanfont[Script=Devanagari]{Code2000}
> \language=\sanskrit
>
> \begin{document}
>
> उद्दिष्टः समाहितचित्तस्य योगः । कथं व्युत्थितचित्तोऽपि योगयुक्तः
> स्यादित्येतदारभ्यते ।
>
>
>
> \end{document}
>
> the error says : undefined \language=\sanskrit
>
The hyphenation pattern file is available but no one has translated
the captions to Sanskrit, therefore it has not been included in Babel.
You have to enable Sanskrit hyphenation yourself by the following
steps:
1. Make a copy of your language.dat in texmf-var/tex/generic/config/language.dat
2. Put sanhyph.tex to a location where TeX can find it, eg to
directory texmf-local/tex/generic/hyphen/sanskrit
3. Make a "driver" file sanskrhyph.tex in the same directory as above.
The file must contain the following test whether we are in XeTeX, or
in 8-bit TeX:
\ifx\addlanguage\undefined
\errmessage{This file can be used only in babelised formats!}
\fi
\expandafter\ifx\csname XeTeXrevision\endcsname\relax
\input zerohyph.tex
\else
\input sanhyph.tex
\fi
4. Put the following line to the end of your copy of language.dat:
sanskrit sanskrhyph.tex
5. Generate the required formats, eg by
fmtutil --byfmt xelatex
That's all.
> On Mon, Nov 17, 2008 at 1:16 PM, Reinhard Kotucha <reinhard.kotucha at web.de>
> wrote:
>>
>> Jim Coroneos writes:
>> > I want to use xelatex to write Sanskrit. I need to have hyphenation
>> > for my project. I saw
>> > http://ctan.org/tex-archive/macros/xetex/hyphenation/sanhyph/but I
>> > can't use this hyphenation. when I put \language=\sanskrit, it
>> > gives error.
>> >
>> > can someone help me?
>>
>> It's easier to help you if you provide a minimal example file which
>> demonstrates the problem.
>>
>> Telling us that you encountered an error is not very helpful unless
>> you provide the the error message itself. If you don't understand the
>> error message, the best thing you can do is to post the .log file to
>> the mailing list.
>>
>> Regards,
>> Reinhard
>>
>> --
>>
>> ----------------------------------------------------------------------------
>> Reinhard Kotucha Phone:
>> +49-511-3373112
>> Marschnerstr. 25
>> D-30167 Hannover
>> mailto:reinhard.kotucha at web.de
>>
>> ----------------------------------------------------------------------------
>> Microsoft isn't the answer. Microsoft is the question, and the answer is
>> NO.
>>
>> ----------------------------------------------------------------------------
>
>
--
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz
More information about the tex-live
mailing list