Composed words: a simple way without a global replacement to |-|?
![](https://secure.gravatar.com/avatar/02a476cdfdfea19af9c2be1be1571d7d.jpg?s=120&d=mm&r=g)
Dear list, today I was reviewing the hyphenation and stumbled on the composed word problem, as explained at http://wiki.contextgarden.net/Composed_words and in the ref-manual. Now, the trivial question sounds: is there a way to say to TeX "hey, consider the hyphen inside words a good breakpoint"? If not, I'm going to do a global replacement of ([a-z])-([a-z]) to $1|-|$2 , but somehow I feel I'm doing this wrong (because this will harm to the readability of the source). Any idea? Thanks in advance. -- Marco
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 27.11.2010 um 16:35 schrieb Marco Pessotto:
Dear list,
today I was reviewing the hyphenation and stumbled on the composed word problem, as explained at http://wiki.contextgarden.net/Composed_words and in the ref-manual.
Now, the trivial question sounds: is there a way to say to TeX "hey, consider the hyphen inside words a good breakpoint"?
For MkIV you can add „\setbreakpoints[compound]“ to your document. Wolfgang
![](https://secure.gravatar.com/avatar/02a476cdfdfea19af9c2be1be1571d7d.jpg?s=120&d=mm&r=g)
Wolfgang Schuster
Am 27.11.2010 um 16:35 schrieb Marco Pessotto:
Dear list,
today I was reviewing the hyphenation and stumbled on the composed word problem, as explained at http://wiki.contextgarden.net/Composed_words and in the ref-manual.
Now, the trivial question sounds: is there a way to say to TeX "hey, consider the hyphen inside words a good breakpoint"?
For MkIV you can add „\setbreakpoints[compound]“ to your document.
Thanks a lot, you saved my day. I've added the solution to http://wiki.contextgarden.net/Composed_words -- Marco
participants (3)
-
Marco
-
Marco Pessotto
-
Wolfgang Schuster