Re: [NTG-context] Hyphenation again
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 Maier: 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 - ___ 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 ___
Re: [NTG-context] Hyphenation again
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 : 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. -- Rik ___ 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 ___
Re: [NTG-context] Hyphenation again
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 : > > 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 > ___ ___ 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 ___
Re: [NTG-context] Hyphenation again
Am 09.10.2020 um 16:49 schrieb Rik Kabel: Denis You have a hex 200b after ca below. On 10/9/2020 10:38, Denis Maier wrote: appli-cable Thanks, that was it. You shall never copy from a website ... You shall never copy from a website... etc. ___ 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 ___
Re: [NTG-context] hyphenation again (mkii)
Am 17.12.2007 um 14:54 schrieb Steffen Wolfrum: Hi, please have a look at the following minimal (4 text-lines): \hyphenation{Er-gän-zungs-lie-fe-rung} \showframe \starttext Text text text text text text text text text text text text text text text 26.\,Ergänzungslieferung% this should brake after Ergän- Text text text text text text text text text text text text text text text 26.|\,|Ergänzungslieferung% this does brake after Ergän- Text text text text text text text text text text text text text text text text 26.|\,|Ergänzungslieferung% this should NOT brake after 26. Text text text text text text text text text text text text text text text text 26.\,Ergänzungslieferung% this does NOT brake after 26. \stoptext I need a thinspace that prevents line-break between 26. and Ergänzungslieferung. On the other hand this thinspace shouldn't kill my hyphenation points (i.e. the word should stay breakable)! The tilde sign ~ would be perfect, it is just to wide: \hyphenation{ Er-gän-zungs-lie-fe-rung } \showframe \starttext Text text text text text text text text text text text text text text text 26.~Ergänzungslieferung% this should brake after Ergän- Text text text text text text text text text text text text text text text text 26.~Ergänzungslieferung% this should NOT brake after 26. Text text text text text text text text text text text text text text text text 26.\,Er-gänzungslieferung% this should NOT brake after 26. Text text text text text text text text text text text text text text text text 26.\,Er-gänzungslieferung% this should NOT brake after 26. \stoptext Is there something that is narrow as \, or \thinspace but behaves (see above) like ~ ??? Steffen ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hyphenation again (mkii) [solved]
Wolfgang knew the answer, and as the solution is so brilliant I don't want to be selfish about this treasure: \definetextmodediscretionary ThinSpace {\penalty\plustenthousand\hskip.166em\relax} \definetextmodediscretionary ThickSpace {\penalty\plustenthousand\hskip.277em\relax} ... and in situations like today is the 204.|ThinSpace|anniversary of the death of Johann Gottfried von Herder you will avoid an unintended line-break after 204. but will keep all hyphenation points in anniversary. And that's great. Cheers Johann Gottfried, btw!! Steffen Am 18.12.2007 um 11:05 schrieb Steffen Wolfrum: Am 17.12.2007 um 14:54 schrieb Steffen Wolfrum: Hi, please have a look at the following minimal (4 text-lines): \hyphenation{Er-gän-zungs-lie-fe-rung} \showframe \starttext Text text text text text text text text text text text text text text text 26.\,Ergänzungslieferung% this should brake after Ergän- Text text text text text text text text text text text text text text text 26.|\,|Ergänzungslieferung% this does brake after Ergän- Text text text text text text text text text text text text text text text text 26.|\,|Ergänzungslieferung% this should NOT brake after 26. Text text text text text text text text text text text text text text text text 26.\,Ergänzungslieferung% this does NOT brake after 26. \stoptext I need a thinspace that prevents line-break between 26. and Ergänzungslieferung. On the other hand this thinspace shouldn't kill my hyphenation points (i.e. the word should stay breakable)! The tilde sign ~ would be perfect, it is just to wide: \hyphenation{ Er-gän-zungs-lie-fe-rung } \showframe \starttext Text text text text text text text text text text text text text text text 26.~Ergänzungslieferung% this should brake after Ergän- Text text text text text text text text text text text text text text text text 26.~Ergänzungslieferung% this should NOT brake after 26. Text text text text text text text text text text text text text text text text 26.\,Er-gänzungslieferung% this should NOT brake after 26. Text text text text text text text text text text text text text text text text 26.\,Er-gänzungslieferung% this should NOT brake after 26. \stoptext Is there something that is narrow as \, or \thinspace but behaves (see above) like ~ ??? Steffen __ _ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hyphenation again (mkii)
Steffen Wolfrum wrote: On the other hand this thinspace shouldn't kill my hyphenation points (i.e. the word should stay breakable)! bla|~|bla should do that - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___