From: Vadim Radionov <[email protected]>
> Dear all,
>
> Consider the following example. The default value of
> righthyphenmin (2 in Russian) depends on the order
> in which language declarations occur: just transpose lines 4 and
> 5. Is it OK?
>
> Yours,
>
> Vadim
>
> \documentclass{book}
> \usepackage{xltxtra}
> \usepackage{polyglossia}
> \setdefaultlanguage{russian}
> \setotherlanguage{english}
>
> \newfontfamily\russianfont{Linux Libertine}
> \begin{document}
> \showthe\righthyphenmin
> \end{document}
Of course it was wrong. :(
I have committed a change in polyglossia.sty; change lines 219--222 with
\def...@key[xpg@setup]{#1}{hyphenmins}[{2,3}]%
{\begingroup\edef\x{\endgroup
\noexpand\setlocalhyphenmins{#1}{\...@first##1}{\xpg@second##1}}\x}
The problem with the former definition was that \...@tmpfirst and
\...@tmpsecond were
not expanded at the right time. Now we get
\setlocalhyphenmins {english}{2}{3}
...
\setlocalhyphenmins {russian}{2}{2}
where, before, we got
\setlocalhyphenmins {english...@tmpfirst}{\@tmpsecond}
...
\setlocalhyphenmins {russian...@tmpfirst}{\@tmpsecond}
and the order depended on the declaration of the languages.
Ciao
Enrico
--
Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045
8027937
[email protected] + Università degli Studi di Verona +
([email protected]) + Strada le Grazie 15 / I-37134 Verona + Fax: +39 045
8027928
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex