ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Hyphenation of composed words
@ 2010-04-16 14:46 Marco
  2010-04-16 21:33 ` Hans Hagen
  2010-04-19  5:57 ` Thomas Floeren
  0 siblings, 2 replies; 12+ messages in thread
From: Marco @ 2010-04-16 14:46 UTC (permalink / raw)
  To: ntg-context

Hi,

I've yet another hyphenation problem. I cannot get proper hyphenation in
composed words. Take this MWE:

\setuplayout [width=1.5cm]
\starttext

composed-word\par	% not hyphenated, as expected
composed||word\par	% wrong: hyphenated, but an en-dash is used,
			% not a hyphen, so [sign=wide] seems to be the default
composed|-|word\blank	% wrong: hyphenated, but the hyphen is at the start of
			% the next line

\setuphyphenmark [sign=normal]	% For hyphenation a hyphen is used,
				% not an endash
composed-word\par	% not hyphenated, as expected
composed||word\par	% wrong: hyphen is at the start of the next line
composed|-|word		% wrong: hyphen is at the start of the next line
\blank[2*line]

\setbreakpoints [compound]	% my workaround
composed-word\par	% correct hyphenation behaviour with hyphen

\stoptext

I hope with the comments the problem is clear. At first the default value for
»sign« is wrong. It has to be »normal«. But with »normal« I cannot get the
hyphen at the end of the line, instead it always appeares at the beginning of
the next line.

The workaround works but has the disadvantage that everything is hyphenated,
everywhere. I prevent this at the moment by using bars:
|not-a-composed-word|

Thanks in advance
Marco


___________________________________________________________________________________
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] 12+ messages in thread

end of thread, other threads:[~2010-05-10 15:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-16 14:46 Hyphenation of composed words Marco
2010-04-16 21:33 ` Hans Hagen
2010-04-16 22:16   ` Marco
2010-05-09 19:34   ` Marco
2010-05-10  3:25     ` Wolfgang Schuster
2010-05-10  5:27       ` Marco
2010-05-10  8:12         ` Hans Hagen
2010-05-10 15:26           ` Marco
2010-05-10  8:17         ` Thomas Floeren
2010-05-10 15:54           ` Marco
2010-04-19  5:57 ` Thomas Floeren
2010-04-19 18:37   ` Marco

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).