From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115609 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?b?6buE5aSN6ZuEIHZpYSBudGctY29udGV4dA==?= Newsgroups: gmane.comp.tex.context Subject: Re: Can't no break between a close punctuation and a open punctuation Date: Tue, 2 Aug 2022 22:08:30 +0800 Message-ID: References: <2fd0db42-28aa-4036-545c-85376c3132e8@freedom.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8765958818874979854==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20131"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?B?6buE5aSN6ZuE?= To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 02 16:09:24 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIsaK-000506-CE for gctc-ntg-context-518@m.gmane-mx.org; Tue, 02 Aug 2022 16:09:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AD0E028A735; Tue, 2 Aug 2022 16:08:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dBrp3ZYxBiNe; Tue, 2 Aug 2022 16:08:48 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2ED9D28A736; Tue, 2 Aug 2022 16:08:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 26CA828A735 for ; Tue, 2 Aug 2022 16:08:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H7RTImYNNw0B for ; Tue, 2 Aug 2022 16:08:45 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.175; helo=mail-yw1-f175.google.com; envelope-from=aahuaang@gmail.com; receiver= Original-Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 7C14928A645 for ; Tue, 2 Aug 2022 16:08:45 +0200 (CEST) Original-Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-31f56c42ab5so141601227b3.10 for ; Tue, 02 Aug 2022 07:08:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=WKtUFI+2cjuNy1rA4b/cbpju4Z2TcPPu6PdejLDk1K4=; b=l1vUrKPfQHn3+23QvKAR+o/MsT1NwaLBbQ55Q0zXDGt7mZG2yTIiqx/Yft3W2jYWbA 02cHYmo0TM0FR/jdIr5V7j062SQ0ZH/tStznSoHOAgdFfL0jjxjhbAIW6lqFBnO4Gvlh lk1OUFFEhJ4ubP0GHU64S5486X+RxNkYj4H9MyLKJRlr+EttxKmb1Waod54mfz67S0Kl Xxj3qYdRugxHrZPcN8CckQNWIrMrRRPEWgGkojdW/z47fnOE0rLumosRHz9u8h9xdxDq pzM1BRV58bMMt584QgBErqA6F/fh5mTui9eEdweAglmhrj38eIewBziemVoUXICMVZqJ 6r7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=WKtUFI+2cjuNy1rA4b/cbpju4Z2TcPPu6PdejLDk1K4=; b=GqRhXFOa/6YTzbGS5UBuiT9iTMnM+WF+ES/+pGpyNt/dN0xdSW9EuiQ2wz24+EQuS/ bpgehiwPvUTenOHn1FgOyeelZz8mud7fkdC3rBFI8Kx1NVelUXGQApUh9pU+eGz/v1+z gw8KOrwc9kSG7dlFoCk4yB8xciqI/Tx/miMzQLZei37RTnpo/okX1ep1HqGyPtnyNAnj goZRAGiztLGBE+iAFC6/esZk4s8bi48uml8S8gDZsD5KT12+XhpGp+Tz7U8H7eSbAqVm FxeoMTAIxmtVip2LM4IMVLMexzkoExCDntxxJlw43GW/o6xwumpd+FsRo1mM4DfUIggI EDzw== X-Gm-Message-State: ACgBeo1Qa4hG2dpXtr0qwvJfyCJ8e7wIQ3dk/vjHthC6B6l7U2CMTtig 5sLGvHkBihDj5lAi9EO0RFVqGeNiXrdcdvZwIWvxpSvTYds= X-Google-Smtp-Source: AA6agR6VRyY4kPL3pY8VsKQlEIUPHO1lwpsuw9J6Pp/jEjlzFqraHveIgH6zhKS7l/HMwqK4Q5gpokBxWzIc1+eIZuc= X-Received: by 2002:a81:6c12:0:b0:31f:5fd2:cbca with SMTP id h18-20020a816c12000000b0031f5fd2cbcamr18183519ywc.21.1659449321531; Tue, 02 Aug 2022 07:08:41 -0700 (PDT) In-Reply-To: <2fd0db42-28aa-4036-545c-85376c3132e8@freedom.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:115609 Archived-At: --===============8765958818874979854== Content-Type: multipart/alternative; boundary="000000000000552d9605e542a7fe" --000000000000552d9605e542a7fe Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > > Dear Hans, > > > > I found that ConTeXt injected two infinity penalties between a close > > punctuation and a open punctuation, for example between `=E2=80=9D` and= `=E2=80=9C`, or > > between `=EF=BC=9A` and `=E2=80=9C`, so can not break at these places, = as showed in > > following doc. But actually, we may sometimes need to do so. Please not= e > > 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 =3D { > jami_initial =3D nobreak_shrink_break_stretch, > korean =3D nobreak_autoshrink_break_stretch, > chinese =3D stretch_break, -- nobreak_autoshrink_break_stre= tch, > hiragana =3D stretch_break, -- nobreak_autoshrink_break_stre= tch, > katakana =3D stretch_break, -- nobreak_autoshrink_break_stre= tch, > half_width_open =3D > nobreak_autoshrink_break_stretch_nobreak_autoshrink, > half_width_open =3D stretch_break, > half_width_close =3D nobreak_autoshrink_nobreak_stretch, > full_width_open =3D nobreak_autoshrink_break_stretch_nobreak_shrink= , > full_width_close =3D nobreak_autoshrink_nobreak_stretch, > full_width_punct =3D nobreak_autoshrink_nobreak_stretch, > hyphen =3D nobreak_autoshrink_break_stretch, > non_starter =3D nobreak_autoshrink_break_stretch, > other =3D nobreak_autoshrink_break_stretch, > } > > Thanks to your guidance, I solved the problem. And I would like to look into some other related issues that I have doubts about and get back to you together. So I need some more time. > > 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]) > Sorry, when you say ` that file for windows 10+`, which one are you referring to? to scrp-cjk.lua?( yes, I will upgrade it.) or to my lmtx doc for testing?(It work fine in my Windows 10.) or to type-imp-mscore.mkiv? (It work fine in my Windows 10, and no mingliu.ttc in it.) Thanks. Huang Fusyong(=E9=BB=84=E5=A4=8D= =E9=9B=84) ---------------------------------------------------------------------------= ---------------------------- If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ---------------------------------------------------------------------------= ---------------------------- --000000000000552d9605e542a7fe Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Dear Hans,
>
> I found that ConTeXt injected two infinity penalties between a close <= br> > punctuation and a open punctuation, for example between `=E2=80=9D` an= d `=E2=80=9C`, or
> between `=EF=BC=9A` and `=E2=80=9C`, so can not break at these places,= as showed in
> following doc. But actually, we may sometimes need to do so. Please no= te
> that there is no space around full width punctuations in Chinese docum= ent.

you can try this in scrp-cjk.lua (remake the format)

local chinese_8 =3D {
=C2=A0 =C2=A0 =C2=A0jami_initial=C2=A0 =C2=A0 =C2=A0=3D nobreak_shrink_brea= k_stretch,
=C2=A0 =C2=A0 =C2=A0korean=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D nobr= eak_autoshrink_break_stretch,
=C2=A0 =C2=A0 =C2=A0chinese=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D stretch_b= reak, -- nobreak_autoshrink_break_stretch,
=C2=A0 =C2=A0 =C2=A0hiragana=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D stretch_b= reak, -- nobreak_autoshrink_break_stretch,
=C2=A0 =C2=A0 =C2=A0katakana=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D stretch_b= reak, -- nobreak_autoshrink_break_stretch,
=C2=A0 =C2=A0 =C2=A0half_width_open=C2=A0 =3D nobreak_autoshrink_break_stre= tch_nobreak_autoshrink,
half_width_open=C2=A0 =3D stretch_break,
=C2=A0 =C2=A0 =C2=A0half_width_close =3D nobreak_autoshrink_nobreak_stretch= ,
=C2=A0 =C2=A0 =C2=A0full_width_open=C2=A0 =3D nobreak_autoshrink_break_stre= tch_nobreak_shrink,
=C2=A0 =C2=A0 =C2=A0full_width_close =3D nobreak_autoshrink_nobreak_stretch= ,
=C2=A0 =C2=A0 =C2=A0full_width_punct =3D nobreak_autoshrink_nobreak_stretch= ,
=C2=A0 =C2=A0 =C2=A0hyphen=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D nobr= eak_autoshrink_break_stretch,
=C2=A0 =C2=A0 =C2=A0non_starter=C2=A0 =C2=A0 =C2=A0 =3D nobreak_autoshrink_= break_stretch,
=C2=A0 =C2=A0 =C2=A0other=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D nobr= eak_autoshrink_break_stretch,
}

=C2=A0
Thanks to your guidance, I solv= ed the problem. And=C2=A0I would like to look into some other related issue= s that I have doubts about and get back to you together. So I need some mor= e time.
=C2=A0
> doc for example:
>
> ```lmtx
> \setscript[hanzi]
> \usetypescriptfile[mscore]
> \usebodyfont =C2=A0 [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])

Sorry, when you say ` that file for windows 10+`, which one are you referring to? to scrp-cjk.lua= ?( yes, I will upgrade it.) or to my lmtx doc for testing?(It work fine in = my Windows 10.) or to=C2=A0type-imp-mscore.mkiv? (It work fine in my Window= s 10, and no mingliu.ttc in it.)

Thanks.
=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 Huang Fusyong(=E9=BB=84=E5=A4=8D=E9=9B=84)
----= ---------------------------------------------------------------------------= ------------------------
If your question is of interest to other= s as well, please add an entry to the Wiki!
= ---------------------------------------------------------------------------= ----------------------------
--000000000000552d9605e542a7fe-- --===============8765958818874979854== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============8765958818874979854==--