From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116347 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Steffen Wolfrum via ntg-context Newsgroups: gmane.comp.tex.context Subject: Fwd: Hyphenation in multi-language projects Date: Mon, 24 Oct 2022 15:08:14 +0200 Message-ID: <9FE46047-E88F-4323-8848-EDC0AF01E178@st.estfiles.de> References: <62902e59-4e5b-7b7b-3ca7-54008803c6f6@gmx.es> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Content-Type: multipart/mixed; boundary="===============4058830787563101290==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="331"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Steffen Wolfrum To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 24 15:07:48 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 1omxBE-000APK-7b for gctc-ntg-context-518@m.gmane-mx.org; Mon, 24 Oct 2022 15:07:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 238A02A47AB; Mon, 24 Oct 2022 15:07:11 +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 CPVqwf16WRSb; Mon, 24 Oct 2022 15:07:06 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BD51D2A47B0; Mon, 24 Oct 2022 15:07:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EDB812A47AB for ; Mon, 24 Oct 2022 15:07:05 +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 TVfp0b0v03Fg for ; Mon, 24 Oct 2022 15:07:03 +0200 (CEST) Received-SPF: Pass (helo) identity=helo; client-ip=80.67.18.15; helo=smtprelay03.ispgateway.de; envelope-from=context@st.estfiles.de; receiver= Original-Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.18.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id F2DBD2A47A4 for ; Mon, 24 Oct 2022 15:07:02 +0200 (CEST) Original-Received: from [92.75.179.24] (helo=mbp13.fritz.box) by smtprelay03.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1omxAK-0007z2-Q8; Mon, 24 Oct 2022 15:06:52 +0200 X-Mailer: Apple Mail (2.3445.104.21) X-Df-Sender: NDMxOTAz 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:116347 Archived-At: --===============4058830787563101290== Content-Type: multipart/alternative; boundary="Apple-Mail=_614C8555-EF0A-4B50-8646-59B9C45FC388" --Apple-Mail=_614C8555-EF0A-4B50-8646-59B9C45FC388 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Anfang der weitergeleiteten Nachricht: >=20 > Von: Pablo Rodriguez via ntg-context > > Betreff: Aw: [NTG-context] Hyphenation in multi-language projects > Datum: 14. September 2022 um 19:40:53 MESZ > An: Denis Maier via ntg-context > > Kopie: Pablo Rodriguez > > Antwort an: mailing list for ConTeXt users > >=20 > On 9/14/22 16:54, Denis Maier via ntg-context wrote: >>> [...] >>> Isn=E2=80=99t there a way to list exceptions that will work in *all* >>> languages? >>=20 >> I thought that \hyphenation would work like that, or \startexceptions >> without a language code. Apparently that's not the case. >=20 > \hyphenation only works for the given language: >=20 > \hyphenation{macOS} > \starttext > \startTEXpage[offset=3D1em] > \currentlanguage: > \hyphenatedword{macOS} >=20 > \startlanguage[fr] > \currentlanguage: > \hyphenatedword{macOS} > \stoplanguage > \stopTEXpage > \stoptext >=20 > But I=E2=80=99d say that \registerhyphenationexception[macOS] was > language-independent for me some time ago. (Now it seems to work like > \hyphenation.) >=20 > In any case, \registerhyphenationexception seems to have issues with > ligatures: >=20 > \setuphyphenation[method=3Dtraditional] > \registerhyphenationexception[steff-en macOS] > \registerhyphenationexception[it][steff-en macOS] >=20 > \starttext > \startTEXpage[offset=3D1em] > \currentlanguage: > \hyphenatedword{steffen macOS} >=20 > \startlanguage[it] > \currentlanguage: > \hyphenatedword{steffen macOS} > \stoplanguage > \stopTEXpage > \stoptext >=20 > If there isn=E2=80=99t a command to add language-indepented = hyphenation > exceptions or patterns, one for proper names (for people, products or > companies) would be really useful. >=20 > Just in case Hans or other wizard may take a look at this, >=20 > Pablo Hans, is there any news regarding Pablos wish? Steffen --Apple-Mail=_614C8555-EF0A-4B50-8646-59B9C45FC388 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8


Anfang der weitergeleiteten Nachricht:

Von: = Pablo Rodriguez via ntg-context = <ntg-context@ntg.nl>
Betreff: = Aw: [NTG-context] = Hyphenation in multi-language projects
Datum: = 14. September 2022 um 19:40:53 = MESZ
An: = Denis Maier via ntg-context = <ntg-context@ntg.nl>
Kopie: = Pablo Rodriguez <oinos@gmx.es>
Antwort = an: mailing list for = ConTeXt users <ntg-context@ntg.nl>

On 9/14/22 16:54, Denis Maier = via ntg-context wrote:
[...]
Isn=E2=80=99t there a way to list exceptions that will work = in *all*
languages?

I thought that \hyphenation would work like that, or = \startexceptions
without a language code. Apparently = that's not the case.

\hyphenation only works for the given language:

 \hyphenation{macOS}
=  \starttext
 \startTEXpage[offset=3D1em]
 \currentlanguage:
=  \hyphenatedword{macOS}

=  \startlanguage[fr]
 \currentlanguage:
 \hyphenatedword{macOS}
=  \stoplanguage
 \stopTEXpage
=  \stoptext

But I=E2=80=99d say that = \registerhyphenationexception[macOS] was
language-independent for me some time ago. (Now it seems to = work like
\hyphenation.)

In = any case, \registerhyphenationexception seems to have issues with
ligatures:

=  \setuphyphenation[method=3Dtraditional]
=  \registerhyphenationexception[steff-en macOS]
=  \registerhyphenationexception[it][steff-en macOS]

 \starttext
=  \startTEXpage[offset=3D1em]
=  \currentlanguage:
 \hyphenatedword{steffen = macOS}

 \startlanguage[it]
 \currentlanguage:
=  \hyphenatedword{steffen macOS}
=  \stoplanguage
 \stopTEXpage
=  \stoptext

If there isn=E2=80=99t a = command to add language-indepented hyphenation
exceptions = or patterns, one for proper names (for people, products or
companies) would be really useful.

Just in case Hans or other wizard may take a look at this,

Pablo

Hans, is there any news regarding Pablos wish?

Steffen

= --Apple-Mail=_614C8555-EF0A-4B50-8646-59B9C45FC388-- --===============4058830787563101290== 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== --===============4058830787563101290==--