* \setupbreakpoints[compound] does not work?
@ 2012-11-29 12:12 "H. Özoguz"
2012-11-29 14:48 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: "H. Özoguz" @ 2012-11-29 12:12 UTC (permalink / raw)
To: ntg-context
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?
Huseyin
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: \setupbreakpoints[compound] does not work?
2012-11-29 12:12 \setupbreakpoints[compound] does not work? "H. Özoguz"
@ 2012-11-29 14:48 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2012-11-29 14:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 29.11.2012 um 13:12 schrieb H. Özoguz <h.oezoguz@mmnetz.de>:
> 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
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-29 14:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-29 12:12 \setupbreakpoints[compound] does not work? "H. Özoguz"
2012-11-29 14:48 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).