Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1068567pxj; Fri, 21 May 2021 05:52:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyNoJSIl7mCT19h8q8pT0sa5X6ZjUQ5reXVIhJbnapB+ZlcRxlRLu9GsEnVOFp6QBPRaev X-Received: by 2002:a50:f744:: with SMTP id j4mr10949025edn.211.1621601555636; Fri, 21 May 2021 05:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621601555; cv=none; d=google.com; s=arc-20160816; b=JgiI8ac4LOGK3RDRQiZOKa+fW5fgX23Z5uevq7ygSpJJX9yjiSqJbwNL7PeIRUnZ7r Wc2xjSnbKyTMjj8ga3H6jdghre3LoFLIMmqKMFRCQKUbnYEmmdDfO0rOLUdaJ/oNrmT9 TAP9WAcj2F5VJagRhS0wzX8cLBxfZ9AkNCMcvGeiqqafIQIcopeBA2QnSa6xJqpVTm64 paOIalP7d7zwkkjgvrl3EPx7lNalvxl4MuUlcGuuhZDl8/ctCL+mABIV2/2Uz8P2evPc wo/jlwebqSgCiaP4oWiOWpxIlyJfrAZrxW62+8mTosQddsLcrSY+DR3f1kgXzhnz4xsV yPDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=+p2gPyQf0u4+0CZeB9NaXTaw7HBTdXnmZnVz9+Epsyg=; b=XYb8qW73eRBvNx5I/HqgAS5bUdSG6Gy7h+Nc5S2uCz+mrLyP1EO7ofNnvaxI+0n2hh POwib/e6Iiq4ZUb7KFjOVHsCga22yMhti6iNv5AhhFCHAeTv6j3lp3OstMsas/91GY8d kIa6SkYeEOYHUVoz/o+KiReX+lUQTIFVFNYQYmEpBN3nZlF33Nsd/0gKVXVXCy+NJRBf lFrOc3GoEH57eutdEjrjfA1WiJa5cOTX+rgLf2+bZ/xDpLkACaFWBtmuRZg46YQCGLRN S/o3cn93kA/AsoUJ0QTVUZhoV2LRG2VRtcpq2aUz32vd2yYvJEuc1W3ruREUUa/DtMyh AL2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CoeXlhYJ; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w6si3173369edd.217.2021.05.21.05.52.11; Fri, 21 May 2021 05:52:35 -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=@kernel.org header.s=k20201202 header.b=CoeXlhYJ; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231239AbhEUMVV (ORCPT + 99 others); Fri, 21 May 2021 08:21:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:53076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229958AbhEUMVU (ORCPT ); Fri, 21 May 2021 08:21:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AEF1F61132; Fri, 21 May 2021 12:19:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621599597; bh=Ge4IPmWEZZUCCXUNVa30jEpA3fN9ljQ4y981qrIQwyY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CoeXlhYJr8Q+S/iSwelDVNeJwGEX4j9QfEfgqwv/ia8+Nh3a4coK4V/iNoo8bd6no lfaoBUHEE0K7m5mM+u+DFvpxc0pp09W1bmy4TH7f7dWQvo1B7xTZfX2411XWWHEolU V0c6lfdtn50po7EGFL4v51Swrcd+uegQeUwT3WufQ++ntM5y6xGVJwFCnHwXbkBMtE Uwd6uPQXV7Wbi2fqiLXUXUNK4IiM33A8oKUV1GE7bD4dEfbFWC/9IEUCzepV7dAbSW 4nNgQZtejG/ZzhWoD1A0/6RVEgJdal7B3zSt8Zu3bWkwVuMFBCqxsTBP4nkjAuw8QA uvcuMFp6bqAJw== Date: Fri, 21 May 2021 14:19:52 +0200 From: Mauro Carvalho Chehab To: Akira Yokosawa Cc: Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] docs: sphinx-pre-install: Reword warning on installing cjk font Message-ID: <20210521141952.2c575cbe@coco.lan> In-Reply-To: <0c33f48f-150d-caa9-d18b-f1267f679f26@gmail.com> References: <20210521095442.33957ff3@coco.lan> <0c33f48f-150d-caa9-d18b-f1267f679f26@gmail.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, 21 May 2021 18:00:00 +0900 Akira Yokosawa escreveu: > Hi Mauro, > > On Fri, 21 May 2021 09:54:42 +0200, Mauro Carvalho Chehab wrote: > > HI Akira, > > > > Em Fri, 21 May 2021 16:14:19 +0900 > > Akira Yokosawa escreveu: > > > >> Installing a ckj font as recommended by the warning message causes > >> generated latex code to have: > >> > >> % This is needed for translations > >> \usepackage{xeCJK} > >> \setCJKmainfont{Noto Sans CJK SC} > >> > >> in its preamble even for an English document. > > > > Yes. The same LaTeX configuration is applied to all documents. > > > > While the standard Sphinx logic allows just one conf.py, there's > > a logic on Linux that allows a per-directory configuration. > > Perhaps it would be possible to set the font just for translations. > > > > Yet, this can't be easily done per-translation - Italian > > translation for instance doesn't need CJK fonts. > > Yes, the Italian part looks ugly with xeCJK. > > > > >> The package "xeCJK" changes wide characters' appearance including > >> apostrophe (single quote) and double quotes, and it changes line-break > >> behavior with regard to the boundary of narrow and wide characters. > >> > >> This greatly degrades readability of English PDFs typeset by xelatex. > > > > Hmm... could you give an example where it looks ugly? > > > > At least on the documents I use to check the PDF output, I was unable > > to see any big issue. > > Appended are screenshots from RCU.pdf built with and without xeCJK. > > They are built on Ubuntu Bionic based container with sphinx 2.4.4. > > I think you can see the difference of how apostrophes are rendered. > Line-break points are also affected by the widths of apostrophes. > > Can you spot the difference? Ok, now I understand what you're meaning. We need to double check what's wrong there, as it doesn't make much sense to have a "` " character instead of "`" on those places, nor to change the word's hyphenation logic. > > BTW, on current docs-next, wich the CJK font installed, "make pdfdocs" > stops while building s390.pdf. That's weird. > I needed to manually run "make latexdocs", then run > "latexmk -xelatex RCU.tex" under Documentation/output/latex/ to get > RCU.pdf. Well, you can pass some options to latexmk when building a pdf via an environment var (LATEXMKOPTS), like (untested): LATEXMKOPTS="-interaction=nonstopmode" make pdfdocs. or change it to interactive mode, in order to show what part of the s390.tex is causing the issue. Thanks, Mauro