[XeTeX] Polyglossia 1.0.2: babelshorthands broken?

François Charette firmicus at ankabut.net
Tue Feb 3 22:40:08 CET 2009


Alexey Kryukov a écrit :
> On Mon, 02 Feb 2009 10:21:23 +0100
> François Charette wrote:
>   
>> This is obviously a bug... I hope to fix this asap.
>>     
>
> Hi François,
>
> fortunately this particular problem is easy to fix: you have just
> to put braces around UTF-8 characters in last 4 \XeTeXinterchartoks
> rules. But unfortunately that's not all. If I compile a German document
> with shorthands, I am still getting erroneous results: for example,
> "` instead of the expected opening quote results into the sequence "„`.
> This is because you are attempting to emulate shorthands using the
> \XeTeXinterchartoks primitive, which (according to the documentation)
> is intended just to insert something between two characters, but not
> to remove those characters from the output.
>
> So it seems instead of relying on \XeTeXinterchartoks you
> should have used the traditional scheme with active characters: the
> corresponding code can probably be just taken from Babel and moved
> to polyglossia. I think it would be really important to implement
> this, because German is not the only language which uses shorthands.
> In particular shorthands are important for Russian typesetting:
> although I don't like them myself, there are enough Russian users 
> which cannot move to polyglossia (and thus to xelatex) just because
> of the lack of this feature.
>
>   

Yes I realized that yesterday. (I have actually erroneously uploaded an
unfinished development branch to CTAN!)
I will write a shorthand module for polyglossia (taken from Babel) which
will be usable in any language.

> I have noticed that gloss-*.ldf files for polyglossia start with a
> \makeatletter which is not closed with a final \makeatother. As
> a result, @ remains a "letter" after executing \setdefaultlanguage or
> \setotherlanguage in LaTeX preamble.
>
> François, would it be possible to correct this in the next release?
Yes!

Thanks for the reports.

F




More information about the XeTeX mailing list