Am 29.11.2012 um 13:12 schrieb H. Özoguz
Hi,
in the following example I use \setbreakpoints[compound], I understood, that word-breaking would be made (or preferred) at hyphens.
There could be a perfect line break at the hyphen of "-CC", but there is no break, and instead the complete word "AA-BB-CC" is printed, then partially in the margin.
\setbreakpoints[compound]
\showframe
\version[temporary]
\starttext
.......................................................................................................................AA-BB-CC. And the next sentence.
\stoptext
Why that does not work?
It comes from the settings for hyphen, when you look at the definition \definebreakpoint [compound] [-] [nleft=3,nright=3,type=1] you can see it needs at least three characters at the left and right before a line break is inserted, When you change the settings to \definebreakpoint [compound] [-] [nleft=2,nright=2] a linebreak is inserted after the hyphen. You can also change the values only for a certain language when you add “language=…” to \definebreakpoint. Wolfgang