ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* hyphenation again (mkii)
@ 2007-12-17 13:54 Steffen Wolfrum
  2007-12-17 21:28 ` Hans Hagen
  2007-12-18 10:05 ` Steffen Wolfrum
  0 siblings, 2 replies; 4+ messages in thread
From: Steffen Wolfrum @ 2007-12-17 13:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

please have a look at the following minimal (4 text-lines):


\hyphenation{Er-gän-zungs-lie-fe-rung}
\showframe

\starttext

Text text text text text text text text text text text text text text  
text 26.\,Ergänzungslieferung% this should brake after Ergän-

Text text text text text text text text text text text text text text  
text 26.|\,|Ergänzungslieferung% this does brake after Ergän-

Text text text text text text text text text text text text text text  
text text 26.|\,|Ergänzungslieferung% this should NOT brake after 26.

Text text text text text text text text text text text text text text  
text text 26.\,Ergänzungslieferung% this does NOT brake after 26.

\stoptext


I need a thinspace that prevents line-break between "26." and  
"Ergänzungslieferung".
On the other hand this thinspace shouldn't kill my hyphenation points  
(i.e. the word should stay breakable)!

Any idea?


Thanks,

Steffen
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: hyphenation again (mkii)
  2007-12-17 13:54 hyphenation again (mkii) Steffen Wolfrum
@ 2007-12-17 21:28 ` Hans Hagen
  2007-12-18 10:05 ` Steffen Wolfrum
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2007-12-17 21:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Steffen Wolfrum wrote:

> On the other hand this thinspace shouldn't kill my hyphenation points  
> (i.e. the word should stay breakable)!

bla|~|bla should do that

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: hyphenation again (mkii)
  2007-12-17 13:54 hyphenation again (mkii) Steffen Wolfrum
  2007-12-17 21:28 ` Hans Hagen
@ 2007-12-18 10:05 ` Steffen Wolfrum
  2007-12-18 11:12   ` hyphenation again (mkii) [solved] Steffen Wolfrum
  1 sibling, 1 reply; 4+ messages in thread
From: Steffen Wolfrum @ 2007-12-18 10:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 17.12.2007 um 14:54 schrieb Steffen Wolfrum:

> Hi,
>
> please have a look at the following minimal (4 text-lines):
>
>
> \hyphenation{Er-gän-zungs-lie-fe-rung}
> \showframe
>
> \starttext
>
> Text text text text text text text text text text text text text text
> text 26.\,Ergänzungslieferung% this should brake after Ergän-
>
> Text text text text text text text text text text text text text text
> text 26.|\,|Ergänzungslieferung% this does brake after Ergän-
>
> Text text text text text text text text text text text text text text
> text text 26.|\,|Ergänzungslieferung% this should NOT brake after 26.
>
> Text text text text text text text text text text text text text text
> text text 26.\,Ergänzungslieferung% this does NOT brake after 26.
>
> \stoptext
>
>
> I need a thinspace that prevents line-break between "26." and
> "Ergänzungslieferung".
> On the other hand this thinspace shouldn't kill my hyphenation points
> (i.e. the word should stay breakable)!


The tilde sign "~" would be perfect, it is just to wide:

\hyphenation{
Er-gän-zungs-lie-fe-rung
}
\showframe
\starttext

Text text text text text text text text text text text text text text  
text 26.~Ergänzungslieferung% this should brake after Ergän-

Text text text text text text text text text text text text text text  
text text 26.~Ergänzungslieferung% this should NOT brake after 26.

Text text text text text text text text text text text text text text  
text text 26.\,Er-gänzungslieferung% this should NOT brake after 26.

Text text text text text text text text text text text text text text  
text text 26.\,Er-gänzungslieferung% this should NOT brake after 26.

\stoptext


Is there something that is narrow as \, or \thinspace but behaves  
(see above) like ~ ???

Steffen
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: hyphenation again (mkii) [solved]
  2007-12-18 10:05 ` Steffen Wolfrum
@ 2007-12-18 11:12   ` Steffen Wolfrum
  0 siblings, 0 replies; 4+ messages in thread
From: Steffen Wolfrum @ 2007-12-18 11:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang knew the answer, and as the solution is so brilliant I don't  
want to be selfish about this treasure:

\definetextmodediscretionary ThinSpace
   {\penalty\plustenthousand\hskip.166em\relax}

\definetextmodediscretionary ThickSpace
   {\penalty\plustenthousand\hskip.277em\relax}

... and in situations like "today is the 204.|ThinSpace|anniversary  
of the death of Johann Gottfried von Herder" you will avoid an  
unintended line-break after "204." but will keep all hyphenation  
points in "anniversary". And that's great.

Cheers Johann Gottfried, btw!!

Steffen



Am 18.12.2007 um 11:05 schrieb Steffen Wolfrum:

>
> Am 17.12.2007 um 14:54 schrieb Steffen Wolfrum:
>
>> Hi,
>>
>> please have a look at the following minimal (4 text-lines):
>>
>>
>> \hyphenation{Er-gän-zungs-lie-fe-rung}
>> \showframe
>>
>> \starttext
>>
>> Text text text text text text text text text text text text text text
>> text 26.\,Ergänzungslieferung% this should brake after Ergän-
>>
>> Text text text text text text text text text text text text text text
>> text 26.|\,|Ergänzungslieferung% this does brake after Ergän-
>>
>> Text text text text text text text text text text text text text text
>> text text 26.|\,|Ergänzungslieferung% this should NOT brake after 26.
>>
>> Text text text text text text text text text text text text text text
>> text text 26.\,Ergänzungslieferung% this does NOT brake after 26.
>>
>> \stoptext
>>
>>
>> I need a thinspace that prevents line-break between "26." and
>> "Ergänzungslieferung".
>> On the other hand this thinspace shouldn't kill my hyphenation points
>> (i.e. the word should stay breakable)!
>
>
> The tilde sign "~" would be perfect, it is just to wide:
>
> \hyphenation{
> Er-gän-zungs-lie-fe-rung
> }
> \showframe
> \starttext
>
> Text text text text text text text text text text text text text text
> text 26.~Ergänzungslieferung% this should brake after Ergän-
>
> Text text text text text text text text text text text text text text
> text text 26.~Ergänzungslieferung% this should NOT brake after 26.
>
> Text text text text text text text text text text text text text text
> text text 26.\,Er-gänzungslieferung% this should NOT brake after 26.
>
> Text text text text text text text text text text text text text text
> text text 26.\,Er-gänzungslieferung% this should NOT brake after 26.
>
> \stoptext
>
>
> Is there something that is narrow as \, or \thinspace but behaves
> (see above) like ~ ???
>
> Steffen
> ______________________________________________________________________ 
> _____________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ______________________________________________________________________ 
> _____________

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-12-18 11:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-17 13:54 hyphenation again (mkii) Steffen Wolfrum
2007-12-17 21:28 ` Hans Hagen
2007-12-18 10:05 ` Steffen Wolfrum
2007-12-18 11:12   ` hyphenation again (mkii) [solved] Steffen Wolfrum

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