Skip to content

Commit 29ac982

Browse files
akiyksJonathan Corbet
authored andcommitted
docs: pdfdocs: Teach xeCJK about character classes of quotation marks
Quotation marks in "KR" and "JP" variants of Noto CJK fonts are half width. xeCJK assumes they are full width by default and does excessive kerning around them in Korean and Japanese translations. Give xeCJK proper hints by the \xeCJKDeclareCharClass command. Signed-off-by: Akira Yokosawa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Corbet <[email protected]>
1 parent 788d28a commit 29ac982

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,8 @@
428428
\\newcommand{\\kerneldocEndTC}{\\endgroup}
429429
\\newcommand{\\kerneldocBeginKR}{%
430430
\\begingroup%
431+
\\xeCJKDeclareCharClass{HalfLeft}{`“,`‘}%
432+
\\xeCJKDeclareCharClass{HalfRight}{`”,`’}%
431433
\\krmain%
432434
\\renewcommand{\\CJKrmdefault}{KRserif}%
433435
\\renewcommand{\\CJKsfdefault}{KRsans}%
@@ -437,6 +439,8 @@
437439
\\newcommand{\\kerneldocEndKR}{\\endgroup}
438440
\\newcommand{\\kerneldocBeginJP}{%
439441
\\begingroup%
442+
\\xeCJKDeclareCharClass{HalfLeft}{`“,`‘}%
443+
\\xeCJKDeclareCharClass{HalfRight}{`”,`’}%
440444
\\jpmain%
441445
\\renewcommand{\\CJKrmdefault}{JPserif}%
442446
\\renewcommand{\\CJKsfdefault}{JPsans}%

0 commit comments

Comments
 (0)