Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2286906pxt; Sun, 8 Aug 2021 18:29:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4yLUkoZJQsVIVkvK73CAJTlnwhvUgoTK7EAOApUShU0zoSuf/tQfSu4ZETB3rvra3tMlT X-Received: by 2002:a17:907:d09:: with SMTP id gn9mr20486686ejc.447.1628472560159; Sun, 08 Aug 2021 18:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628472560; cv=none; d=google.com; s=arc-20160816; b=MuwLLm/GNrpoT2h1499s+SQhqv6A7TOKkJn8P+FsHYwp0U4eGdRUqwl4DaAP8l2XhP cgBbP1Anfx0VYx3iJ2oEB2hlrKKlipCuWZDG9nEfzOukcPBk5TqFjqCi+33M9LUxdjim vPLdEACecmwY8e3JKdiC6eEQinwi2Qxw6q+rjkLCp4icu6bcf2er6Olwq4Q0FVYXqnik WSC1eIxcjDUZGCkwmIi9zubOKMrfolS7r1ACoNlaBHzUF4lEOQvzgK64dt/pXbiTL+Vh oqAZN/9Dq2hlqKHmpvXicSNoBviRZAiDt6jcqMb1VgGc8JJ1AcmheqTIrnaeZhaIE75w 5rqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=cnqTbXmmA+ClGgIm+08APSfICc9j7eEK30S97HC1gQ8=; b=X4lGGte5OgIp3AvFUapLOZgt2bN8dhSbzynuC6u5XhpaHBha8U9rpgQLgNn5zxt1O5 ey4d7GkYNgcbuxon7f2cVJwyOnx/uxoCZ9JSOPLIjols421rI8XiKHpve7HoZJoUgEGe xu6eV6VyoMmo2kclZdvSWuVHIsJpxqjK5Id8/xNgpeGH7s5cr8Kky+gSWJFSY9V/R+Vo rNPMP/Xc2ur+jWybReR33TJ/GweXEXdIQXFevVc3KYnKKIxtdTIsWULBmzqs5x7yGfDJ QcrlP2SBKrwQDbPj/ipvHyt6w+dxIITE66YRROLypLF8jmLNE8JZTaPjqO1pmQUguo13 cbGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mqJcFEc8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l24si15696436ejz.543.2021.08.08.18.28.57; Sun, 08 Aug 2021 18:29:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mqJcFEc8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231324AbhHIB1s (ORCPT + 99 others); Sun, 8 Aug 2021 21:27:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbhHIB1m (ORCPT ); Sun, 8 Aug 2021 21:27:42 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE415C061757; Sun, 8 Aug 2021 18:27:21 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id oa17so573018pjb.1; Sun, 08 Aug 2021 18:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=cnqTbXmmA+ClGgIm+08APSfICc9j7eEK30S97HC1gQ8=; b=mqJcFEc8wwJnJBTlXcp+Dhbs5+cUv25eXYpq6+PAFnhLTdKIjl/FN9UEunjFY1mvC0 F6WzSLxcL9EgsPXfaukruFOssv0LCtFBV9H9aIju3GAkn08N8Vlz20Xs07zDcNBe/XUh xKUFPgFl0+XPlUg48s/kHNH/UmWXypQl/ldN6sjr13AyVsuYTY8dUBwt7wBL/r5b/sNC MH036B/822JDCJkzHk6Kq6XztdMY4+QgWkLaMVPHbLIEEDuTgMGBoL2g6HQmVax1t6CK rsqS0jUw7L0gLBygrcbFjoaMJk/BfGVCTNNr+yn9paYh/a60wwIhWou1bBffDixOp5II Hs6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=cnqTbXmmA+ClGgIm+08APSfICc9j7eEK30S97HC1gQ8=; b=IDinmdINP2aecqhXSD0ZYPdQOpjYLvZLKE1xwS1rlEWuFSFY2NyYlYB4btAc6OVKEs qR36cBibtiW6g3mel8lWI0ndzwUxFp/1Nnhb/WhQiyLXOPi2kD0u8cx+DBNC0FxD+k3B mkwM0sUFmLJ5tJZdlWH2cK7rsDaB9+aMhnZh8BshD7z36eXi+pbwAakqUlWipnYcSBVx FrN/VFVZpUdGDSkAHKcHc+uWL5V9qItz1HucnuuVgPZeG3ZIsbU0ruT6+9AoPbzgAuvH eF0v1VDJ71Q8taB36rKkiY98NFrP/qlk0WKSsi32rg+KzHS+6fQEBLfSjeLY0Wswfgyt GgoA== X-Gm-Message-State: AOAM530bTNsvLChfBwnmZh7jax71HHuwYco8dWX8ipak3qBBF6AY7lGm /4cTob9Zimoah/0oOXS22pI= X-Received: by 2002:a62:ea10:0:b029:399:ff48:e9da with SMTP id t16-20020a62ea100000b0290399ff48e9damr21500610pfh.56.1628472441473; Sun, 08 Aug 2021 18:27:21 -0700 (PDT) Received: from [192.168.11.2] (KD106167171201.ppp-bb.dion.ne.jp. [106.167.171.201]) by smtp.gmail.com with ESMTPSA id r14sm10534384pff.106.2021.08.08.18.27.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Aug 2021 18:27:21 -0700 (PDT) Subject: [PATCH v4 8/9] docs: pdfdocs: Teach xeCJK about character classes of quotation marks To: Jonathan Corbet Cc: Mauro Carvalho Chehab , "Wu X.C." , SeongJae Park , Hu Haowen , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Akira Yokosawa References: <39d0fb0f-b248-bca4-2dac-df69e8d697b1@gmail.com> From: Akira Yokosawa Message-ID: <0da9e3c5-2716-f576-1df5-2f28ea69f0e8@gmail.com> Date: Mon, 9 Aug 2021 10:27:18 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <39d0fb0f-b248-bca4-2dac-df69e8d697b1@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Documentation/conf.py | 4 ++++ 1 file changed, 4 insertions(+) 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'] +=3D ''' \\newcommand{\\kerneldocEndTC}{\\endgroup} \\newcommand{\\kerneldocBeginKR}{% \\begingroup% + \\xeCJKDeclareCharClass{HalfLeft}{`=E2=80=9C,`=E2=80=98}% + \\xeCJKDeclareCharClass{HalfRight}{`=E2=80=9D,`=E2=80=99}% \\krmain% \\renewcommand{\\CJKrmdefault}{KRserif}% \\renewcommand{\\CJKsfdefault}{KRsans}% @@ -437,6 +439,8 @@ latex_elements['preamble'] +=3D ''' \\newcommand{\\kerneldocEndKR}{\\endgroup} \\newcommand{\\kerneldocBeginJP}{% \\begingroup% + \\xeCJKDeclareCharClass{HalfLeft}{`=E2=80=9C,`=E2=80=98}% + \\xeCJKDeclareCharClass{HalfRight}{`=E2=80=9D,`=E2=80=99}% \\jpmain% \\renewcommand{\\CJKrmdefault}{JPserif}% \\renewcommand{\\CJKsfdefault}{JPsans}% --=20 2.17.1