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
___