Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1007181pxv; Fri, 25 Jun 2021 03:26:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzjo9DQqWcQEDh6l8Derjd8rUdNS4m1xsjH8xEpEJZ0OQAcMHFA8VnRD+RSpF8V70w5CvS X-Received: by 2002:a5d:948a:: with SMTP id v10mr8016231ioj.37.1624616783396; Fri, 25 Jun 2021 03:26:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624616783; cv=none; d=google.com; s=arc-20160816; b=gKKryivZB0sJ1UmCAaRR1PCGFsBlXIgH4sqqgI3xLWNEjLURWBaTPlrBVs2XXqENdF m5cP2lkNKsqAsM6nLng18zzzyLERFtdjUhhwBPAbGey2KksML7ZHQr/CG92rfhRjZfLX sR0Q3+a/QksxNQ2FocSiFUMjTsD7pZhcBZ5mnBbyi4O7ohOY5KxwddEVyIQL+w01Sj9T KtUxiTerCx0IVTJVe5TjoA3bqctk15KojkvItwLCndagFF64h+4yvjqkj3PSydoDx/OK WG/gol38zbk4rYI8LHlpO7b2tHb5lPOuBZ/GpuZc64TXi4RDeMK0lrYkW1AJXcJtV/kh ZQEw== 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=YTu7zpf2aZCb5ClIh8RpEbt63bMyd3YZ5B9GXYvg40E=; b=kxjoVqT+PPemeELDGwS6Nb+COKkepXc3J+BBuqB2yAcm7vGb2g1zGfO9F8Js/uAbCS OyDcYiDCA51V+ytov6YkuibhzgXEeBJr5OgtkEXX7sPa3oK0mvdCK2rEhbFEnfPpRYi3 4T6QGcBY9A6tafEdY47+esQP0z+vRKm4WHnuq54URVolFomcA0v1JePb+th0i9mcun5D rvT3ybp+DR62xabh3O7j6ybhgolu4rVPue925jKewMXg8mNxFJjTk9UuoV7tRU5+AaPJ SB3d5Ox5HK2gfBskp7NN0F/frv472iazxyi5QFafk1AV+4AdLLH5PPptqKura5VqvsRC F49A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AOMvPMSG; 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 k40si7479901jav.33.2021.06.25.03.26.10; Fri, 25 Jun 2021 03:26:23 -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=AOMvPMSG; 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 S231235AbhFYK0z (ORCPT + 99 others); Fri, 25 Jun 2021 06:26:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:45232 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230415AbhFYK0s (ORCPT ); Fri, 25 Jun 2021 06:26:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2EF7A6143A; Fri, 25 Jun 2021 10:24:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624616668; bh=JOa2aODdvv5nC4XSkenIOmeGwvK4PewRAGSrpjXeLM0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=AOMvPMSGDWnxWfbU8uTMmCA5dgJIm1k2JHo9sF411sSHSvSTn4g84b/ZpyGbyVPcj gzJX8da29H7/szVsel2p1h+I7rtOsoVyyefCqLD2sb7wBPwh9FRlFbbqI7iYS9iOFc 1xntmeKZMC1prvDYVpEXF7L018msd/qea6yRYVccrdac4l52UWyGgwya7eQl00Br7Y THL7OHInjROnrnB5pEWmCgWNPuVLrqBI1KmoUmKLFSiyXFnOKTVTn9qm3m5fWOk9oK OYyHOu346xZDQiD3+AhCKLYKQjDsNg1mxsrjU4IwewBFw0qYnp3CFpmeYKUzdeL+t9 y7pb8affg5tqw== Date: Fri, 25 Jun 2021 12:24:23 +0200 From: Mauro Carvalho Chehab To: Akira Yokosawa Cc: "Wu X.C." , Jonathan Corbet , SeongJae Park , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/3] docs: pdfdocs: Improve alignment of CJK ascii-art Message-ID: <20210625122423.4435c5e9@coco.lan> In-Reply-To: References: <386938dc-6290-239c-4b4f-c6153f3d98c5@gmail.com> <20210625065524.GA11219@bobwxc.top> <20210625095059.7f97fd62@coco.lan> 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=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, 25 Jun 2021 18:22:26 +0900 Akira Yokosawa escreveu: > On Fri, 25 Jun 2021 09:50:59 +0200, Mauro Carvalho Chehab wrote: > > Em Fri, 25 Jun 2021 14:55:24 +0800 > > "Wu X.C." escreveu: > > =20 > >> On Thu, Jun 24, 2021 at 09:06:59PM +0900, Akira Yokosawa wrote: =20 > >>> Subject: [RFC PATCH 0/3] docs: pdfdocs: Improve alignment of CJK asci= i-art > >>> > >>> Hi all, =20 > >> > >> Hi Akira, > >> =20 > >>> > >>> This is another attempt to improve translations' pdf output. > >>> I see there is a mismatch in the font choice for CJK documents, which > >>> causes poor-looking ascii-art where CJK characters and Latin letters > >>> are mixed used. > >>> > >>> One of noticeable examples of such ascii-art can be found in > >>> Korean translation of memory-barriers.txt. > >>> > >>> Hence the author of Korean translation of memory-barriers.txt is > >>> in the CC list. > >>> > >>> At first, I thought the issue could be fixed by simply selecting > >>> "Noto Sans Mono CJK SC" as both of monofont and CJKmonofont. > >>> It fixed the mis-alignment in the Chinese translation, but failed > >>> in the Korean translation. > >>> > >>> It turns out that Hangul characters in "Noto Sans Mono CJK SC" > >>> are slightly narrower than Chinese and Japanese counterparts. > >>> I have no idea why the so-called "mono" font has non-uniform > >>> character widths. > >>> > >>> GNU Unifont is an alternative monospace font which covers > >>> almost all Unicode codepoints. > >>> However, due to its bitmap-font nature, the resulting document > >>> might not be acceptable to Korean readers, I guess. =20 > >> > >> OK, it works. > >> > >> But I still want to say that the display effect of Unifont is really > >> not good. Unifont's lattice is too small, and only one size. > >> http://fars.ee/QA1k.jpg http://fars.ee/GAAv.jpg > >> Looks like computers 20 years ago, LOL :) > >> > >> It there any chance to use other fonts, like *Sarasa Mono* ? > >> =E7=AD=89=E8=B7=9D=E6=9B= =B4=E7=B4=97=E9=BB=91=E9=AB=94 > >> Looks more beautifull http://fars.ee/DTT6.jpg > >> But I guess not many people installed it. =20 >=20 > Thank you for the nice suggestion. > Yes, Hangul characters in "Sarasa Mono" have the same widths. >=20 > >=20 > > Does Sarasa mono looks nice for Japanese, Chinese and Korean > > (plus latin)? =20 >=20 > Yes, I tested "Sarasa Mono SC" and it covers all CJK fonts. > The SC variant has Simple Chinese glyph where other languages > have their own preferred glyph, but that is same in "Noto Sans > Mono SC". >=20 > Currently, there is no verbatim/literal blocks in the Japanese > translation, so I tested with only a short Japanese sentence. >=20 > I'll post a v2 which uses "Sarasa Mono SC" instead of Unifont. >=20 > >=20 > > If so, I guess it shouldn't be a problem to use it, as the > > ./scripts/sphinx-pre-install can be patched to recommend > > its install. =20 >=20 > One minor problem might be that the Sarasa font needs manual > download (and install). >=20 > Thanks, Akira If this is not yet packaged as part of texlive packages on distros, this won't be a minor issue, as we'll need to find procedures and test it for all distros supported by the script. Thanks, Mauro