Line lengths with polyglossia in Cantonese and Japanese ?
Ken Moffat
zarniwhoop at ntlworld.com
Fri May 31 20:45:39 CEST 2024
On Fri, May 31, 2024 at 03:44:46AM +0000, Werner LEMBERG wrote:
>
> > Background for CJKV languages: It is the job of the typesetting engine
> > to analyze the input characters and input soft line breaks, together
> > with some very small stretchable space, between all characters except
> > where this is not allowed (for example, right before punctuation
> > characters).
>
> Typo: ... and insert soft line breaks ...
>
>
> Werner
Thanks for prompting me in your initial reply to include an MWE. I
reduced the text to only the CJK examples and called it nojamin.tex
('noto japanese minimum'). Using xelatex
gave the same results as for the full file.
I then stripped the xetex command (nojalua.tex) and used lualatex.
None of the Han languages were formatted using lualatex.
The reports below are for
Cantonese using chinese variant=traditional,
Japanese using japanese,
Simplified Chinese using chinese variant=simplified,
Traditional Chinese using chinese variant=traditional
First, with xelatex (nojamin.tex) -
Overfull \hbox (155.0pt too wide) in paragraph at lines 108--110
[]\TU/NotoSerifCJKjp-Medium.otf(3)/m/n/10 人人生出嚟就係自由嘅,喺尊嚴同權利上一律平等。佢哋具有理性
同良心,而且應該
用兄弟間嘅關係嚟互相對待。[]
Overfull \hbox (504.20001pt too wide) in paragraph at lines 114--116
[]\TU/NotoSerifCJKjp-Medium.otf(4)/m/n/10 すべての人間は、生まれながらにして自由であり、かつ、尊厳と
権利とについて平
等である。人間は、理性と良心とを授けられており、互いに同胞の精神をもって行動しなければならない。[]
Overfull \hbox (3.45pt too wide) in paragraph at lines 126--128
[]\TU/NotoSerifCJKjp-Medium.otf(7)/m/n/10 人人生而自由,在尊严和权利上一律平等。他们赋有理性和良心, >并应以兄弟关系
[]
Overfull \hbox (5.0pt too wide) in paragraph at lines 132--134
[]\TU/NotoSerifCJKjp-Medium.otf(3)/m/n/10 人人生而自由,在尊嚴和權利上一律平等。他們賦有理性和良心,
並應以兄弟關[]
Second, with lualatex (nojalua.tex)
Overfull \hbox (155.0pt too wide) in paragraph at lines 19--21
\TU/NotoSerifCJKjp-Medium.otf(2)/m/n/10 人人生出嚟就係自由嘅,喺
尊嚴同權利上一律平等。佢哋具有理性同良心,而且應該用
兄弟間嘅關係嚟互相對待。
Overfull \hbox (504.20001pt too wide) in paragraph at lines 25--27
\TU/NotoSerifCJKjp-Medium.otf(3)/m/n/10 すべての人間は、生まれな
がらにして自由であり、かつ、尊厳と権利とについて平等
である。人間は、理性と良心とを授けられており、互いに
同胞の精神をもって行動しなければならない。
Overfull \hbox (73.45pt too wide) in paragraph at lines 37--39
\TU/NotoSerifCJKjp-Medium.otf(6)/m/n/10 人人生而自由,在尊严和权利
上一律平等。他们赋有理性和良心, 并应以兄弟关系的精神
相对待。
Overfull \hbox (85.0pt too wide) in paragraph at lines 43--45
\TU/NotoSerifCJKjp-Medium.otf(2)/m/n/10 人人生而自由,在尊嚴和權
利上一律平等。他們賦有理性和良心,並應以兄弟關係的精
神相對待。
So I now assume that I should stick with xelatex, both the SC and TC
results are "good enough" for me.
ĸen
--
When one person suffers from a delusion, it is called insanity.
When many people suffer from a delusion it is called a Religion.
-- Robert M. Pirsig, Zen and the Art of Motorcycle Maintenance.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nojamin.tex
Type: application/x-tex
Size: 1777 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex-live/attachments/20240531/fa113254/attachment.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nojalua.tex
Type: application/x-tex
Size: 1750 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex-live/attachments/20240531/fa113254/attachment-0001.tex>
More information about the tex-live
mailing list.