[XeTeX] zhspacing interferes with latin apostrophe (2019)
Ross Moore
ross.moore at mq.edu.au
Thu Oct 21 01:36:53 CEST 2010
Hi Axel,
On 21/10/2010, at 2:31 AM, Axel Kielhorn wrote:
> Hello!
>
> I've been contacted with a problem report involving zhspacing and a Unicode Apostrophe:
>
> The Apostrophe is replaced by a Chinese character, which looks horrible in context.
> When I use a ' and Mapping=tex-text the correct character is printed.
With your example, and tracing the output, this is what I get:
>>> ....\EU1/TimesNewRoman(0)/m/n/10 The
>>> ....\glue 2.5 plus 1.25 minus 0.83333
>>> ....\EU1/TimesNewRoman(0)/m/n/10 Humboldt
>>> ....\glue 2.5 plus 1.25 minus 0.83333
>>> ....\EU1/TimesNewRoman(0)/m/n/10 University
>>> ....\penalty 10000
>>> ....\EU1/AppleLiSung(0)/m/n/10 ’
>>> ....\penalty 10000
>>> ....\glue -3.50006
>>> ....\penalty 0
>>> ....\glue 3.50006
>>> ....\glue 0.0 minus 3.00003
>>> ....\EU1/TimesNewRoman(0)/m/n/10 s
>>> ....\glue 2.5 plus 1.25 minus 0.83333
>>> ....\EU1/TimesNewRoman(0)/m/n/10 TOPOI
>>> ....\glue 2.5 plus 1.24875 minus 0.83415
>>> ....\EU1/TimesNewRoman(0)/m/n/10 project
>>> ....\glue 2.5 plus 1.25 minus 0.83333
>>> ....\EU1/TimesNewRoman(0)/m/n/10 cluster
You can see all the hoo-haa around the apostrophe, which
is using a Chinese font, as you say.
With the straight quote (') the output is much cleaner:
>>> ....\EU1/TimesNewRoman(0)/m/n/10 The
>>> ....\glue 2.5 plus 1.25 minus 0.83333
>>> ....\EU1/TimesNewRoman(0)/m/n/10 Humboldt
>>> ....\glue 2.5 plus 1.25 minus 0.83333
>>> ....\EU1/TimesNewRoman(0)/m/n/10 University’s
>>> ....\glue 2.5 plus 1.25 minus 0.83333
>>> ....\EU1/TimesNewRoman(0)/m/n/10 TOPOI
>>> ....\glue 2.5 plus 1.24875 minus 0.83415
>>> ....\EU1/TimesNewRoman(0)/m/n/10 project
> The document enclosed does not include Chinese text, just loading zhspacing is sufficient to produce the error.
>
> If I put zhspacing into a group, everything is fine, I'm just wondering why it acts on non-chinese text. (Well, it doesn't know the text is non-chinese.)
I'd expect that \zhspacing is intended to be like font-switch,
to be used only inside environments that really need it.
Certainly that seems to be a decent explanation for what
happens with this example.
Adjust it a bit, to use:
\begin{quote}{\zhspacing
The Humboldt University’s TOPOI project cluster of excellence brings together researchers who investigate the formation and transformation of space and knowledge in ancient civilizations and their later developments. --- This does not work.
}
The Humboldt University’s TOPOI project cluster of excellence brings together researchers who investigate the formation and transformation of space and knowledge in ancient civilizations and their later developments. --- This does indeed work just fine.
The Humboldt University's TOPOI project cluster of excellence brings together researchers who investigate the formation and transformation of space and knowledge in ancient civilizations and their later developments. --- This does work but is not nice™.
\end{quote}
>
> My TL2010 is about a week old:
>
> *File List*
> scrbook.cls 2010/09/17 v3.07 KOMA-Script document class (book)
> scrkbase.sty 2010/09/17 v3.07 KOMA-Script package (KOMA-Script-dependent bas
> ics and keyval usage)
> scrbase.sty 2010/09/17 v3.07 KOMA-Script package (KOMA-Script-independent b
> asics and keyval usage)
Your KOMA-script stuff is a bit more recent than mine,
and these too, but I'd doubt these differences are relevant
> xparse.sty 2010/09/20 v2037 Generic document command parser
> eu1enc.def 2010/05/27 v0.1h Experimental Unicode font encodings
> polyglossia.sty 2010/07/27 v1.2.0a Babel replacement for XeLaTeX
> etoolbox.sty 2010/09/12 v2.0a e-TeX tools for LaTeX
> ***********
>
> Axel
Hope this helps,
Ross
------------------------------------------------------------------------
Ross Moore ross.moore at mq.edu.au
Mathematics Department office: E7A-419
Macquarie University tel: +61 (0)2 9850 8955
Sydney, Australia 2109 fax: +61 (0)2 9850 8114
------------------------------------------------------------------------
More information about the XeTeX
mailing list