TransWikia.com

luatexja introduces huge white space after right single quotation mark (code point 8217)

TeX - LaTeX Asked by wilx on July 14, 2021

I am having an issue with luatexja where it introduces huge white space after RIGHT SINGLE QUOTATION MARK (8217).

enter image description here

MWE here:

documentclass{article}
usepackage{fontspec}
usepackage[match]{luatexja-fontspec}
usepackage[noto-otf]{luatexja-preset}

begin{document}
That’s it. The ``’'' is textsc{right single quotation mark}, code point 8217.
end{document}

Is there some setting that I can use to avoid this?

2 Answers

The char is classified by luatexja as a JAchar, a characters which is used in Japanese typesetting and so has special settings for this. You can change this classification (see the documentation), or print it once as ALchar:

documentclass{article}
usepackage[match]{luatexja-fontspec}
%usepackage[noto-otf]{luatexja-preset}

begin{document}
That’s Thatltjalchar`’s it. 

The ``’''  The ``ltjalchar`’'' 
end{document}

enter image description here

Answered by Ulrike Fischer on July 14, 2021

As said by Ulrike Fischer, it is due to the General Block (Block 9, in luatexja language) to be considered as JAchar. You can reverse this with ltjsetparameter{jacharrange={-9}} but, presumably, it will mess up your typography when you use these characters in CJK text. I guess you should switch back with ltjsetparameter{jacharrange={+9}} before such text.

Also, the commande setting all charactes but CJK charaters to ALchar is ltjsetparameter{jacharrange={-1, -2, -3, -4, -5, +6, +7, -8, -9}}

Answered by Frédéric Grosshans on July 14, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP