From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4977 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: two questions Date: Mon, 09 Jul 2001 00:57:09 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010709005709.0133a260@server-1> References: <3B4580AC.6050405@elvenkind.com> <3.0.6.32.20010705231055.010c9e50@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035395602 30304 80.91.224.250 (23 Oct 2002 17:53:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:53:22 +0000 (UTC) Cc: ConTeXt mailing list , burnus@net-b.de Original-To: Eckhart =?iso-8859-1?Q?Guth=F6hrlein?= In-Reply-To: <5.1.0.14.0.20010707163657.00a9aaf0@public.uni-hamburg.de> Xref: main.gmane.org gmane.comp.tex.context:4977 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4977 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 | pragma@wxs.nl 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 -------------------------------------------------------------------------