Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1489392pxy; Mon, 2 Aug 2021 03:00:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzihWzf33IGaEi+e0sKch3PZ9w7YkvBMFj7KQb0zYQW3FquCc8jeRZFBUbwLxaXlkHXkn0x X-Received: by 2002:a6b:5b0a:: with SMTP id v10mr751252ioh.103.1627898404148; Mon, 02 Aug 2021 03:00:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627898404; cv=none; d=google.com; s=arc-20160816; b=zaoseGpBTj6jL2wJi+xLeZrO96ieC3bBKkFQUYXq1iqbA0di+foUXtX3pi7ucpcHo8 yrkeWd6VlxdkOX3GOaGD1cA/2U8f9FYHlQoNNUrtjchMj2VMP7zUyE+zIaycqige+3c9 3kMBcyQYP5JopceQnQaPfSMRXI67zWTZsFMwBsoi+FOG4bPnFvcVzpfspMVilYXghVj2 QYNR/fvG6XG4xRGKfexm8H4zpUUPvhI+eVUyTCJpqVD+PsTCDbWDY2iNb+dYqbEMnlAs OGk55QluzV5xwAbBJTyWhl7Kl3Pu6RhDHzIHM28frGznzIF095u3IXLRgcDemkuculHq JHlw== 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=jxfTFqLhtIlxiaNew08jchvdKl6M0DzpVExA2LcES3Q=; b=joqdqLuCe3+vNoohyfgvPfQ/Is9nLS3oPM1VgK/JwSI3qnsPhkiPSfRSo3D1D7xoh3 /1/W7e2IAJUMbDeIbjED4zr7w4SS9FUun4iGB/z6N5OK3GPBkhXKuBd2y6Kshth/K92l fgPtGtSfD7CEU4ojm5IviJH8CQo4xe2S1wMG23d1vnlZwFSlceNFz4D+sL8FCFR30DgC dvvdpfseLEbe/+qK8G/uEXhHokfmZ+E7AoCfzLYwavTXVlftjtdHm8VD2AFkiJBnhvYr dEoWftRBcUc86epCAEIJU8JXxpvRnvf7YrdWkiqwgdtPKxeT4x0I8oZRdQfuovLRLeEC L6ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WEqY5zs9; 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 c14si13119372ilq.3.2021.08.02.02.59.52; Mon, 02 Aug 2021 03:00:04 -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=WEqY5zs9; 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 S233069AbhHBJ7T (ORCPT + 99 others); Mon, 2 Aug 2021 05:59:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233184AbhHBJ7Q (ORCPT ); Mon, 2 Aug 2021 05:59:16 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0092C06175F; Mon, 2 Aug 2021 02:59:05 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id u2so10781068plg.10; Mon, 02 Aug 2021 02:59:05 -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=jxfTFqLhtIlxiaNew08jchvdKl6M0DzpVExA2LcES3Q=; b=WEqY5zs9FM3pLA5nkaxQZ98jHoCDSZ0kuut0FuB7sWeVY74erN2kZd8MyR8KEnUIFZ Mqw2b2s89F8qo8BPoHO8FIE3Y7H2xIJQuzgxRlDRFjX8x4FWfJV4OF5NCjBEfEzOW20i j8Hu9BBbIEapVLt9J2FIMZ1xllhJN9Qy1zxApoRrs4vLf432pnlNG2YZXUwlxikqO8Js DwdOtHVMbiehP/5NepyUcuYSQTFrIH3M4v+POmyREVIeh7jCqUAHijc+DzObBxqVpPC0 SURn9ceC0v6xqkGEWLyJCKyXZHa18ANrr0N67I45ltUCLUTcpHm9xsI42ei3offb6S6N Wg4w== 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=jxfTFqLhtIlxiaNew08jchvdKl6M0DzpVExA2LcES3Q=; b=TZBUtEL/zpIL52YvUv0sUKVrY1hJ/XBjgO3t6a8/W+Hlc6oZ0BJS5A/iPDGEQWNPBW BggDIk6jyTPlQp2u4ZJKivXW2BxQFffifFqR3hE/HodmfFCBaN9PyQyAhJGjgKJ9d/d1 rCWwRvsKye/S0pMZi4zhfNKnteIYTj0dobuImvIjqmTb9iWMEo9thUHtqSgOXygq1WAg MlNO/Fh4XDHb4nMQAu+5DGUcqq35xWAL2Aklpo2W/59cwX880vGvfO28/saoFxZgSa1d 3H9rDSwU565hZv7SoywDQdnDARMv5S65Vtm3Q4dKLwI1Q0iJGik4cwVqY7w1+9g5ut6A zJPw== X-Gm-Message-State: AOAM532zKxmS4FPamQ98cAH5A1TLq4icn9lXlM5YMLNZoD6NzsUlqBRo gxKaIiStrGd54cw1fa245JI= X-Received: by 2002:a63:c14a:: with SMTP id p10mr1003167pgi.311.1627898345493; Mon, 02 Aug 2021 02:59:05 -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 n33sm12448088pgm.55.2021.08.02.02.59.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Aug 2021 02:59:05 -0700 (PDT) Subject: [PATCH v3 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: From: Akira Yokosawa Message-ID: <710d146e-dab1-4782-6332-8d10bf362178@gmail.com> Date: Mon, 2 Aug 2021 18:59:02 +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: 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 c4813e51dbc9..846d57eba57c 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -425,6 +425,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}% @@ -434,6 +436,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