> Date: Fri, 01 Nov 2024 06:55:56 +0000 (UTC)
> From: Werner LEMBERG <w...@gnu.org>
> 
> Consider this input file (the second line uses U+2019).
> 
> ```
> \input texinfo
> 
> c''''
> 
> c’’’’
> 
> @bye
> ```
> 
> If processed with pdftex (or xetex), everything's fine.  In the first
> line, '''' gets resolved into two closing double quotes via TeX's
> input ligature mechanism, as expected.  In the second line, the four
> U+2019 characters stay as-is.
> 
> However, if I say
> 
> ```
> PDFTEX=luatex texi2pdf ...
> ```
> 
> I get incorrect output – as can be seen in the attached image, U+2019
> is mapped to ' and TeX's input ligature mechanism unexpectedly kicks
> in.  I think this is because luatex is a 'better' TeX than TeX itself:
> it completely handles input manipulation before converting stuff to
> glyphs.
> 
> I suggest the following patch to `texinfo.tex` to fix this – maybe you
> find something better.

Shouldn't you use @documentencoding if you include UTF-8 encoded
characters verbatim?  (I have no idea if that affects the problem.)

Reply via email to