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).
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?
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}
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
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP