At 04:47 PM 7/7/01 +0200, Eckhart Guth�hrlein wrote:
>At 09:11 06.07.2001 +0000, you wrote:
>
>>Hans' solution is probably the best. But there really is no way to disable 
>>ligatures without side-effects (you loose hyphenation)
>
>I looked into babel.sty and germanb.ldf how the shorthand "| is 
>implemented. The following (stolen) definition allows me to prevent a 
>ligature while allowing hyphenation at this place as well as before and 
>afterwards in the same word. (With cmr, babel's choice of .03em looks good, 
>I think.)
>
>\def\nolig{\nobreak\discretionary{-}{}{\kern.03em}\nobreak\hskip\z@skip} % 
>(after changing the catcode of @)
>
>Is there any problem with that definition? If not, I would suggest 
>including a similar command in ConTeXt, since ligatures in words like 
>"Auflage" or "hinauffliegen" have to be corrected.

You german guys love shortcuts so much  ... 

\starttext

\definetextmodediscretionary :
  {\prewordbreak\kern.25em:\space\ignorespaces}

\definetextmodediscretionary ;
  {\prewordbreak\kern.25em:\space\ignorespaces}

\definetextmodediscretionary *
  {\prewordbreak\discretionary{-}{}{\kern.05em}\postwordbreak}

\startlanguagespecifics[de]
  \installcompoundcharacter "| {|*|}
\stoplanguagespecifics

\de \hyphenatedword{hinauff|*|liegen} \hyphenatedword{hinauff"|liegen}

\stoptext

i think that the : and ; are handy for french and we can still abuse the *
for the ligature killer (btw, this one is like |~|). I think that .05 is
better than .03 

this only works with the version i uploaded saturday [the definable
discretionaries were needed for GB's speech module]

Hans

PS. Tobias, it this okay? If so, i'll move it into the lang modules. 
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------

Reply via email to