All of lore.kernel.org
 help / color / mirror / Atom feed
From: Akira Yokosawa <akiyks@gmail.com>
To: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: "Wu X.C." <bobwxc@email.cn>, Jonathan Corbet <corbet@lwn.net>,
	SeongJae Park <sj38.park@gmail.com>,
	linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
	Akira Yokosawa <akiyks@gmail.com>
Subject: Re: [RFC PATCH 0/3] docs: pdfdocs: Improve alignment of CJK ascii-art
Date: Sat, 26 Jun 2021 11:32:29 +0900	[thread overview]
Message-ID: <0cfd8dfb-b304-4073-973c-930a93d19a17@gmail.com> (raw)
In-Reply-To: <20210625201113.337b3ecd@coco.lan>

On Fri, 25 Jun 2021 20:11:13 +0200, Mauro Carvalho Chehab wrote:
> Em Fri, 25 Jun 2021 20:32:47 +0900
> Akira Yokosawa <akiyks@gmail.com> escreveu:
> 
>> On Fri, 25 Jun 2021 12:24:23 +0200, Mauro Carvalho Chehab wrote:
>>> Em Fri, 25 Jun 2021 18:22:26 +0900
>>> Akira Yokosawa <akiyks@gmail.com> escreveu:
>>>   
>>>> On Fri, 25 Jun 2021 09:50:59 +0200, Mauro Carvalho Chehab wrote:  
>> [...]
>>>>
>>>> One minor problem might be that the Sarasa font needs manual
>>>> download (and install).
>>>>
>>>>         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.  
>>
>> Existence of "Sarasa Mono SC" can be checked by the command:
>>
>>     fc-list | grep "Sarasa Mono SC," | grep "style=Regular" | wc -l
>>
>> If the result is *not* "0", you have the font somewhere in your
>> fontconfig path.
>>
>> I think this is portable across distros.
>> Wouldn't this suffice for sphinx-pre-install?
> 
> No. The sphinx-pre-install tool generate a list of commands
> needed to install the pre-reqs on a given distro.
> 
> For instance, if you run on opensuse without texlive, it would
> print:
> 
> 
> 	# ./scripts/sphinx-pre-install 
> 	Detected OS: openSUSE Tumbleweed 20210515.
> 	Sphinx version: 3.5.4
> 
> 	Warning: better to also install "latexmk".
> ...
> 	Warning: better to also install "xelatex".
> 	You should run:
> 
> 	sudo zypper install --no-recommends texlive-latexmk-bin texlive-amscls texlive-amsfonts texlive-amsmath texlive-anyfontsize texlive-babel-english texlive-capt-of texlive-caption texlive-cmap texlive-colortbl texlive-courier texlive-dvips texlive-ec texlive-eqparbox texlive-euenc texlive-fancybox texlive-fancyvrb texlive-float texlive-fncychap texlive-framed texlive-helvetic texlive-luatex85 texlive-makeindex texlive-mdwtools texlive-metafont texlive-metapost texlive-multirow texlive-needspace texlive-oberdiek texlive-palatino texlive-parskip texlive-polyglossia texlive-preview texlive-psnfss texlive-tabulary texlive-threeparttable texlive-times texlive-titlesec texlive-tools texlive-ucs texlive-upquote texlive-wrapfig texlive-zapfchan texlive-zapfding texlive-xetex-bin
> 
> The same command, when executed on a different distro will
> print a different set of packages and commands.

I see...

So let's forget Unifont and "Sarasa Mono" for the time being.

By adding some custom configuration of fontconfig, "Noto Sans Mono
CJK SC" can be made an alias of "Sarasa Mono", "Unifont", or whatever
alternative font one wants to try.

An alternative *true* monospace font is just a nice-to-have for
those who concern PDF of Korean translation, and as I have said
earlier, it has another major issue of white spaces being ignored
by xeCJK.

I'll do a v2 along this line.

        Thanks, Akira

> 
> Thanks,
> Mauro
> 

      reply	other threads:[~2021-06-26  2:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-24 12:06 [RFC PATCH 0/3] docs: pdfdocs: Improve alignment of CJK ascii-art Akira Yokosawa
2021-06-24 12:08 ` [RFC PATCH 1/3] docs: pdfdocs: Refactor config for CJK document Akira Yokosawa
2021-06-24 12:11 ` [RFC PATCH 2/3] docs: pdfdocs: Add font settings for CJK ascii-art Akira Yokosawa
2021-06-24 12:14 ` [RFC PATCH 3/3] docs: ko_KR: Use white spaces behind CJK characters in ascii-art Akira Yokosawa
2021-06-24 12:59 ` [RFC PATCH 0/3] docs: pdfdocs: Improve alignment of CJK ascii-art Mauro Carvalho Chehab
2021-06-25  6:55 ` Wu X.C.
2021-06-25  7:50   ` Mauro Carvalho Chehab
2021-06-25  9:22     ` Akira Yokosawa
2021-06-25 10:24       ` Mauro Carvalho Chehab
2021-06-25 11:32         ` Akira Yokosawa
2021-06-25 17:17           ` Wu X.C.
2021-06-25 18:11           ` Mauro Carvalho Chehab
2021-06-26  2:32             ` Akira Yokosawa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0cfd8dfb-b304-4073-973c-930a93d19a17@gmail.com \
    --to=akiyks@gmail.com \
    --cc=bobwxc@email.cn \
    --cc=corbet@lwn.net \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=sj38.park@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.