Messages in this thread Patch in this message | | | Subject | [RFC PATCH v2 5/7] docs: pdfdocs: Teach xeCJK the width of quotation marks | From | Akira Yokosawa <> | Date | Mon, 19 Jul 2021 20:15:45 +0900 |
| |
Quotation marks in "Noto Serif CJK KR" and "Not Serif CJK JP" fonts are half width. xeCJK assumes they are full width as in "Noto Serif CJK SC" and are confused by the KR/JP variants.
Give xeCJK the character-class hints by the \xeCJKDeclareCharClass command.
Signed-off-by: Akira Yokosawa <akiyks@gmail.com> --- Documentation/conf.py | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/Documentation/conf.py b/Documentation/conf.py index 9a237471289b..8a715765dada 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -384,6 +384,8 @@ latex_elements['preamble'] += ''' \\newcommand{\\kerneldocEndSC}{\\endgroup} \\newcommand{\\kerneldocBeginKR}{% \\begingroup% + \\xeCJKDeclareCharClass{HalfLeft}{`“,`‘}% + \\xeCJKDeclareCharClass{HalfRight}{`”,`’}% \\krserif% \\renewcommand{\\CJKrmdefault}{KRserif}% \\renewcommand{\\CJKsfdefault}{KRsans}% @@ -393,6 +395,8 @@ latex_elements['preamble'] += ''' \\newcommand{\\kerneldocEndKR}{\\endgroup} \\newcommand{\\kerneldocBeginJP}{% \\begingroup% + \\xeCJKDeclareCharClass{HalfLeft}{`“,`‘}% + \\xeCJKDeclareCharClass{HalfRight}{`”,`’}% \\jpserif% \\renewcommand{\\CJKrmdefault}{JPserif}% \\renewcommand{\\CJKsfdefault}{JPsans}% -- 2.17.1
| |