Hi, another weird thing: In this example I use \startexceptions to set hyphenation exceptions:
``` \mainlanguage[en]
\startexceptions[en]
appli-cable
obli-gated
\stopexceptions
\setuplayout[width=1cm]
\starttext
\currentmainlanguage
\currentlanguage
\hyphenatedword{applicable}
applicable
\hyphenatedword{obligated}
obligated
\stoptext
```
What am I missing?
Best,
Denis
Hi,
yet another strange thing: «ap-plic-»????
See code below, Steffen
\mainlanguage[en]
\startexceptions[en] appli-cable obli-gated \stopexceptions
\startexceptions[de] appli-cable obli-gated \stopexceptions
\startexceptions[it] appli-cable obli-gated \stopexceptions
\setuplayout[width=1cm]
\starttext
\currentmainlanguage
\currentlanguage
\hyphenatedword{applicable}
applicable
\hyphenatedword{obligated}
obligated
\blank
\language[de]
\currentmainlanguage
\currentlanguage
\hyphenatedword{applicable}
applicable
\hyphenatedword{obligated}
obligated
\blank
\mainlanguage[de]
\currentmainlanguage
\currentlanguage
\hyphenatedword{applicable}
applicable
\hyphenatedword{obligated}
obligated
\stoptext
Am 09.10.2020 um 16:38 schrieb Denis Maier denismaier@mailbox.org:
Hi, another weird thing: In this example I use \startexceptions to set hyphenation exceptions:
\mainlanguage[en] \startexceptions[en] appli-cable obli-gated \stopexceptions \setuplayout[width=1cm] \starttext \currentmainlanguage \currentlanguage \hyphenatedword{applicable} applicable \hyphenatedword{obligated} obligated \stoptext
What am I missing?
Best, Denis
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
On 6/6/2021 12:11, Steffen Wolfrum wrote:
Hi,
yet another strange thing: «ap-plic-»????
See code below, Steffen
\mainlanguage[en]
\startexceptions[en] appli-cable obli-gated \stopexceptions
\startexceptions[de] appli-cable obli-gated \stopexceptions
\startexceptions[it] appli-cable obli-gated \stopexceptions
\setuplayout[width=1cm]
\starttext
\currentmainlanguage
\currentlanguage
\hyphenatedword{applicable}
applicable
\hyphenatedword{obligated}
obligated
\blank
\language[de]
\currentmainlanguage
\currentlanguage
\hyphenatedword{applicable}
applicable
\hyphenatedword{obligated}
obligated
\blank
\mainlanguage[de]
\currentmainlanguage
\currentlanguage
\hyphenatedword{applicable}
applicable
\hyphenatedword{obligated}
obligated
\stoptext
Am 09.10.2020 um 16:38 schrieb Denis Maier denismaier@mailbox.org:
Hi, another weird thing: In this example I use \startexceptions to set hyphenation exceptions:
\mainlanguage[en] \startexceptions[en] appli-cable obli-gated \stopexceptions \setuplayout[width=1cm] \starttext \currentmainlanguage \currentlanguage \hyphenatedword{applicable} applicable \hyphenatedword{obligated} obligated \stoptext
What am I missing?
Best, Denis
When I edit this example with Vim, I see, in part:
\startexceptions[en] appli-ca<200b>ble obli-gated \stopexceptions
\startexceptions[de] appli-ca<200b>ble obli-gated \stopexceptions
\startexceptions[it] appli-ca<200b>ble obli-gated \stopexceptions
So it seems that the answer remains the same from when Denis posted a similar question a few months ago.
On 6/6/2021 6:29 PM, Rik Kabel wrote:
On 6/6/2021 12:11, Steffen Wolfrum wrote:
Hi,
yet another strange thing: «ap-plic-»????
See code below, Steffen
\mainlanguage[en]
\startexceptions[en] appli-cable obli-gated \stopexceptions
\startexceptions[de] appli-cable obli-gated \stopexceptions
\startexceptions[it] appli-cable obli-gated \stopexceptions
\setuplayout[width=1cm]
\starttext
\currentmainlanguage
\currentlanguage
\hyphenatedword{applicable}
applicable
\hyphenatedword{obligated}
obligated
\blank
\language[de]
\currentmainlanguage
\currentlanguage
\hyphenatedword{applicable}
applicable
\hyphenatedword{obligated}
obligated
\blank
\mainlanguage[de]
\currentmainlanguage
\currentlanguage
\hyphenatedword{applicable}
applicable
\hyphenatedword{obligated}
obligated
\stoptext
Am 09.10.2020 um 16:38 schrieb Denis Maierdenismaier@mailbox.org:
Hi, another weird thing: In this example I use \startexceptions to set hyphenation exceptions:
\mainlanguage[en] \startexceptions[en] appli-cable obli-gated \stopexceptions \setuplayout[width=1cm] \starttext \currentmainlanguage \currentlanguage \hyphenatedword{applicable} applicable \hyphenatedword{obligated} obligated \stoptext
What am I missing?
Best, Denis
When I edit this example with Vim, I see, in part:
\startexceptions[en] appli-ca<200b>ble obli-gated \stopexceptions \startexceptions[de] appli-ca<200b>ble obli-gated \stopexceptions \startexceptions[it] appli-ca<200b>ble obli-gated \stopexceptions
So it seems that the answer remains the same from when Denis posted a similar question a few months ago.
indeed, i just wasted an hour figuring out that there is some non letter in there; so there will never be a match (exception words get simplified to a key that is used in the lookup .. a \zwj or \zwnj can be used if needed but in the meantime there is a more sophisticated mechanism
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 -----------------------------------------------------------------