0

Compile this with xetex

\XeTeXinterchartokenstate=1
\XeTeXcharclass `' = 5
\XeTeXinterchartoks 5 3={\empty}
''。\par
\XeTeXinterchartoks 5 3={}
''。\par
\bye

will get

enter image description here.

An empty macro disables the ligatue, but in xelatex

\documentclass{article}
\begin{document}
\XeTeXinterchartokenstate=1
\XeTeXcharclass `' = 5
\XeTeXinterchartoks 5 3={\empty}
''。\par
\XeTeXinterchartoks 5 3={}
''。\par
\end{document}

then I get the correct quotation mark.

enter image description here

2
  • I know it's lmroman, but why does cmr have the first ligatue but not the other? Commented Feb 20, 2022 at 18:35
  • Legacy fonts are treated differently from OpenType ones. In the XeLaTeX example the ligature is formed before the next character is examined, due to mapping=tex-text.
    – egreg
    Commented Feb 20, 2022 at 20:47

0

You must log in to answer this question.

Browse other questions tagged .