Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3594257pxv; Mon, 19 Jul 2021 04:17:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHXvWswvcmyYiAjJzzIicjKl1O1igZf+KuM7wEiCBc2KBngQ9Knz6e+VhuazUXotLRRRI7 X-Received: by 2002:a17:906:4e85:: with SMTP id v5mr26749597eju.67.1626693441808; Mon, 19 Jul 2021 04:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626693441; cv=none; d=google.com; s=arc-20160816; b=1DRDuoCxHKjAC1e+5DWj+skzBSXm/MWvFa287DUov7ei7kbTXDlNms8aXHZwvTRarA m0oCAh7J0RvGb1P6t4BD9IOVIqeOx8+e2V1sVfUc76VCEEhRFqhQivmXZD/BDZeK02W+ OXqj1N6sgGkzFcIJUgy6xwLdZFq47+isB1tzPZ2piGY8ycG0uCotfo0+e6c/ZjcEzox/ WaVDckI2jfXCF54pFaQZhM4snF7LjGn8/Tizbcd2kCkvTWyS39rBhIBwUsdL8RMBhnLH HMU+ADND5ehDtUM3w++U9qpkDVqhT6fmhuqaFusDqevwjO0SiIROnDNV93BM0oPeLdCy wq9w== 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=Xm5kZ9iiuiXOod5i9iz4p0syanKjvZYe/iVvk7lSJJU=; b=C9WHQsacTl6mfroNpSrjw7r6p6g6SREW5aEHslCWh/31+gLEeHj+L0GtJlKQplxWVZ Lg5fBur+dBqUoWZo7AsNaQ9hu9NZ5eIbchVDtvMb7KphCOGxCpymNgKqx2zWKDC2/Thr lUjmkKmRfHicvKO5gLCD1LlXKVTcJwVAMGi9qfIAHbSIUTgIbDZnBOeFW0ll+1FrdotA 2sgCpRy8yZX7RmDf0QIrzdXblz6neqLXD2RFSOBefkgvSVVlYzwQa7F58qacMJO1TkRx 6RO7elpQ2tpRkM/GdVyi630hshtBjj+bgxL95bE0jMTrnB/lZ8E4rf/xkyDYP8R/udcE +Y1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tqSrk1wi; 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 y21si20058128edv.562.2021.07.19.04.16.58; Mon, 19 Jul 2021 04:17:21 -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=tqSrk1wi; 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 S236319AbhGSKfK (ORCPT + 99 others); Mon, 19 Jul 2021 06:35:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235999AbhGSKfJ (ORCPT ); Mon, 19 Jul 2021 06:35:09 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EA91C061574; Mon, 19 Jul 2021 03:26:03 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id p9so11232231pjl.3; Mon, 19 Jul 2021 04:15:48 -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=Xm5kZ9iiuiXOod5i9iz4p0syanKjvZYe/iVvk7lSJJU=; b=tqSrk1wiPDewm905DKY02ogzus7JCRYQy/0QA0RnUWEvuCqs7N22tdUMyUkdYRgWvg u8QycD8mOTdXPVmRajiZ4+w6jkFMX6BuhIN/k0PJJtLwSdGdI2p3G66EL4hS6ZMmntIW wfvwNrzHfWtai7K9W2oUzO61or2IDl/QCkLKdqop88GN04ZKd+uDC+PZ/SH9tNZZ55wo GFKjtMLYFJvcxh9vXeYKUcvs1w7yDi6DB2Oicz56QrvVcSBao37pkjBwcbVaJ8Jz9R9b BdPoIm75nuWUqIYOb56RmgjStrgMnzwHKG0Vx13JSMb3U7lBKI40PGUCXHC1eEw44ihr S/QQ== 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=Xm5kZ9iiuiXOod5i9iz4p0syanKjvZYe/iVvk7lSJJU=; b=pMaxBetdDYu1ANu6UVcxhuEjZFqWHgpBIT60P+ayJtGkZXQW/2wXKkhIirK1J9Hvaz bkzrFelDnVJc83/r4pgBC0iKCvWv1P/NgWDbHd8J/kGomm1Z/Sz2Ed+K3lvYAQKgLNuR +wcLF0muzqpLrGFoSKYI5+UFfHuU63rJkm+ItivZ008Jne8I8Ga63pmA5k8QVvnFe4mp fQskxd/P4wmCh2QejZZblU6hkmaCIropIOi/wIcVNIHrIf0zQnOZfLHEbIQ5z9wKuKBv +WfcNBoiwgZ16tHejCY1z2b2niMJTD2BejxLKF6+zJeZplqnDZv/3FtiLTr+53yWviiw Awrg== X-Gm-Message-State: AOAM533Wi0PxENtyxn6FWKF5ClUVyVsrbcEX2E7nvxGgEuPsIxHPm6di Lt4/d3mKRU5tpridjq2ua4k= X-Received: by 2002:a17:90b:ed2:: with SMTP id gz18mr29398587pjb.184.1626693348315; Mon, 19 Jul 2021 04:15:48 -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 e30sm22640597pga.63.2021.07.19.04.15.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Jul 2021 04:15:48 -0700 (PDT) Subject: [RFC PATCH v2 5/7] docs: pdfdocs: Teach xeCJK the width of quotation marks To: Jonathan Corbet , Mauro Carvalho Chehab , "Wu X.C." , SeongJae Park Cc: Hu Haowen , Shinwoo Lee , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Akira Yokosawa References: <20ff8a65-6a5c-c062-fe1a-0f5c5ddc813c@gmail.com> From: Akira Yokosawa Message-ID: <16d212cc-de0a-9259-6564-ce7431ed1f44@gmail.com> Date: Mon, 19 Jul 2021 20:15:45 +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: <20ff8a65-6a5c-c062-fe1a-0f5c5ddc813c@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 "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 --- 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'] +=3D ''' \\newcommand{\\kerneldocEndSC}{\\endgroup} \\newcommand{\\kerneldocBeginKR}{% \\begingroup% + \\xeCJKDeclareCharClass{HalfLeft}{`=E2=80=9C,`=E2=80=98}% + \\xeCJKDeclareCharClass{HalfRight}{`=E2=80=9D,`=E2=80=99}% \\krserif% \\renewcommand{\\CJKrmdefault}{KRserif}% \\renewcommand{\\CJKsfdefault}{KRsans}% @@ -393,6 +395,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}% \\jpserif% \\renewcommand{\\CJKrmdefault}{JPserif}% \\renewcommand{\\CJKsfdefault}{JPsans}% --=20 2.17.1