# [tex-hyphen] tex-hyphen Digest, Vol 55, Issue 5

Krzysztof Borowczyk krzysztof at jasmine.eu.org
Thu Jun 12 21:02:01 CEST 2014

```Dnia 2014-06-12, czw o godzinie 20:43 +0200, Krzysztof Borowczyk pisze:
> Dnia 2014-06-12, czw o godzinie 20:33 +0200, Krzysztof Borowczyk pisze:
> > Dnia 2014-06-12, czw o godzinie 18:23 +0100, Arthur Reutenauer pisze:
> > > > One thing I found in the error logs is the problem with QX
> > > > patterns/conversions:
> >
> > [...]
> >
> > >   Then add the line "pali hyph-pi-latn.tex" to your language.dat in the
> > > appropriate directory, and run
> > >
> > > 	fmtutil --byfmt xelatex
> > >
> > >   That compiles the format file for XeLaTeX; you won't need more as a
> > > first step.
> > >
> > >   Then, using "xelatex" from the command line, you should be able to
> > > switch to your patterns by issuing the command \uselanguage{pali}
> > >
> > > > I'm using the 'texi2pdf' command for the compilation of .tex files.
> > >
> > >   Why in particular?  This is meant for texinfo documents, a system for
> > > writing software manuals.  It will invoke some TeX engine to produce
> > > PDF, but if you want to use TeX directly it's rather a hindrance.
> >
> > I can't remember exactly, I switched to that some time ago ;)
> > When I did my MSc I used some 2 or 3 command magic (with dvi2pdf at the
> > end). After some time I found, that texi2pdf does the same in one
> > command, so I started using it.
> >
> > XeLaTeX doesn't compile my current document structure:
> >
> > \documentclass[a5paper,11pt,twoside,draft]{book}
> > \usepackage[utf8x]{inputenc}
> > \usepackage[T1]{fontenc}
> > \usepackage[a5paper]{geometry}
> > %\usepackage[pali]{babel}
> > \uselanguage{pali}
> >
> >
> > it complains about the uselanguage you mentioned:
> > ! Undefined control sequence.
> >
> > l.6 \uselanguage
> >                 {pali}
> > ?
> >
> > I can compile it with the \usepackage[pali]{babel}, but does it then use
> > the right hyphenation? Is there a way to tell it, to print what is
> > really used (instead of the list of loaded languages) ?
> >
> > Definitely it hyphenated more than previously when it defaulted to
> > \language0, but I'm not so sure it used my patterns, some hyphenations
> > are quite wrong.
> >
> > I'm using 2012 release, as that is default/unmasked in Gentoo, so maybe
> > that is why it can't find \uselanguage?
> >
>
> Also, that was with the \usepackage[utf8x]{inputenc} commented out, it
> refuses to parse the text:
>
> ! Package inputenc Error: Unicode char \u8:ñcam not set up for use with
> LaTeX
>
> I tried both packages: utf8x and utf8.
> I suppose there is other way to handle this with XeLaTeX?
>

I'll reply myself again - I fixed the encoding problem by adding:

\usepackage{fontspec}