[NTG-context] Can't no break between a close punctuation and a open punctuation
Hans Hagen
j.hagen at freedom.nl
Tue Aug 2 10:36:53 CEST 2022
On 8/2/2022 9:06 AM, 黄复雄 via ntg-context wrote:
> I sent this email four days ago and it may not have been delivered?
> ---------------------------------------------------------------------------------------
>
> Dear Hans,
>
> I found that ConTeXt injected two infinity penalties between a close
> punctuation and a open punctuation, for example between `”` and `“`, or
> between `:` and `“`, so can not break at these places, as showed in
> following doc. But actually, we may sometimes need to do so. Please note
> that there is no space around full width punctuations in Chinese document.
you can try this in scrp-cjk.lua (remake the format)
local chinese_8 = {
jami_initial = nobreak_shrink_break_stretch,
korean = nobreak_autoshrink_break_stretch,
chinese = stretch_break, -- nobreak_autoshrink_break_stretch,
hiragana = stretch_break, -- nobreak_autoshrink_break_stretch,
katakana = stretch_break, -- nobreak_autoshrink_break_stretch,
half_width_open = nobreak_autoshrink_break_stretch_nobreak_autoshrink,
half_width_open = stretch_break,
half_width_close = nobreak_autoshrink_nobreak_stretch,
full_width_open = nobreak_autoshrink_break_stretch_nobreak_shrink,
full_width_close = nobreak_autoshrink_nobreak_stretch,
full_width_punct = nobreak_autoshrink_nobreak_stretch,
hyphen = nobreak_autoshrink_break_stretch,
non_starter = nobreak_autoshrink_break_stretch,
other = nobreak_autoshrink_break_stretch,
}
> doc for example:
>
> ```lmtx
> \setscript[hanzi]
> \usetypescriptfile[mscore]
> \usebodyfont [mschinese,20pt]
can you upgrade the chiese section in that file for windows 10+ as the
old fonts are gone
(i tested with \definedfont[file:mingliu.ttc*chinese @ 10pt])
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
More information about the ntg-context
mailing list