14 Nov
2009
14 Nov
'09
10:45 a.m.
Oliver Heins wrote:
Is there any context way to define these kind of shorthands? (Babel has the \declare@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