diff options
author | Akira Yokosawa <akiyks@gmail.com> | 2021-08-09 03:27:18 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2021-08-12 17:13:33 +0200 |
commit | 29ac9822358f0680e4020a15dcfea1c76011e872 (patch) | |
tree | 1bc3c4c28299e85356fb17cb79badf7fcdcfd365 /Documentation/conf.py | |
parent | docs: pdfdocs: Permit AutoFakeSlant for CJK fonts (diff) | |
download | linux-29ac9822358f0680e4020a15dcfea1c76011e872.tar.xz linux-29ac9822358f0680e4020a15dcfea1c76011e872.zip |
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 <akiyks@gmail.com>
Link: https://lore.kernel.org/r/0da9e3c5-2716-f576-1df5-2f28ea69f0e8@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/conf.py')
-rw-r--r-- | Documentation/conf.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py index afa085c71781..75650f6443af 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -428,6 +428,8 @@ latex_elements['preamble'] += ''' \\newcommand{\\kerneldocEndTC}{\\endgroup} \\newcommand{\\kerneldocBeginKR}{% \\begingroup% + \\xeCJKDeclareCharClass{HalfLeft}{`“,`‘}% + \\xeCJKDeclareCharClass{HalfRight}{`”,`’}% \\krmain% \\renewcommand{\\CJKrmdefault}{KRserif}% \\renewcommand{\\CJKsfdefault}{KRsans}% @@ -437,6 +439,8 @@ latex_elements['preamble'] += ''' \\newcommand{\\kerneldocEndKR}{\\endgroup} \\newcommand{\\kerneldocBeginJP}{% \\begingroup% + \\xeCJKDeclareCharClass{HalfLeft}{`“,`‘}% + \\xeCJKDeclareCharClass{HalfRight}{`”,`’}% \\jpmain% \\renewcommand{\\CJKrmdefault}{JPserif}% \\renewcommand{\\CJKsfdefault}{JPsans}% |