hyphenation problem using |-| in composed words -- bug?
Hi, when using |-| in a word as a non exclusive dash, this produces wrong hyphenation. For example, the word »longer-word-to-be-hyphenated« should be hyphenated e.g. like this: longer- word- to- be- hy- phen- ated but actually it is hyphenated like this: longer -word -to -be -hy- phen- ated Using || instead of |-| works like expected, so using it in combination with \setuphyphenmark[sign=normal] could be considered a workaround. Sadly, that produces the same bad result. :-( Here's a minimal example: %\setuphyphenmark[sign=normal] \starttext \hsize 1em longer|-|word|-|to|-|be|-|hyphenated longer||word||to||be||hyphenated \stoptext TIA, olli -- Oliver Heins heins@sopos.org http://oliverheins.net/ http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8 http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827 1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827 Please avoid sending me Word or PowerPoint attachments: http://www.gnu.org/philosophy/no-word-attachments.html
To comment on myself:
Oliver Heins
Hi,
when using |-| in a word as a non exclusive dash, this produces wrong hyphenation.
[...]
longer -word -to -be -hy- phen- ated
This is a workaround: \definetextmodediscretionary {-} {\prewordbreak\discretionary{\hbox{-}}{}{\hbox{-}}\prewordbreak} However, \setuphyphenmark[sign=normal] still does not work correctly. Regards, olli -- Oliver Heins heins@sopos.org http://oliverheins.net/ http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8 http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827 1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827 Please avoid sending me Word or PowerPoint attachments: http://www.gnu.org/philosophy/no-word-attachments.html
Hi olli, Oliver Heins wrote:
To comment on myself:
Oliver Heins
writes: Hi,
when using |-| in a word as a non exclusive dash, this produces wrong hyphenation.
Verified. Same problems here, in both mkii and mkiv. Best wishes, Taco
participants (2)
-
Oliver Heins
-
Taco Hoekwater