Re: [NTG-context] shorthands for hyphens with \penalty, \allowbreak, breaking up ligatures etc.

2009-11-14 Thread Taco Hoekwater

Oliver Heins wrote:


Is there any context way to define these kind of shorthands?  (Babel
has the \decl...@shorthand internal command.)


None are predefined, but you can install your own operations into
context's || discretionary command.

Try this, I think it is ok:

\definetextmodediscretionary {-)}
  {\prewordbreak \discretionary{-)}{}{-)}\prewordbreak}

\definetextmodediscretionary {!-}
  {\hbox{-}}

\definetextmodediscretionary {ff}
  {f\discretionary{-}{}{}\kern.03em\prewordbreak f}

\starttext

(Kinder-)Armut -rat Auffassung

(Kinder|-)|Armut |!-|rat Au|ff|assung

\hsize 0pt

(Kinder-)Armut -rat Auffassung

(Kinder|-)|Armut |!-|rat Au|ff|assung

\stoptext

___
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
___


Re: [NTG-context] shorthands for hyphens with \penalty, \allowbreak, breaking up ligatures etc.

2009-11-14 Thread Wolfgang Schuster

Am 14.11.2009 um 11:45 schrieb Taco Hoekwater:

 (Kinder|-)|Armut |!-|rat Au|ff|assung

Auf|*|fassung

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
___