From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1254 Path: main.gmane.org!not-for-mail From: Karsten Tinnefeld Newsgroups: gmane.comp.tex.context Subject: Re: Expand cont-ger.tex Date: Mon, 15 Nov 1999 19:34:11 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <199911151834.TAA13046@goedel.cs.uni-dortmund.de> 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 1035392084 31147 80.91.224.250 (23 Oct 2002 16:54:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:54:44 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:1254 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1254 > >These shorthands seem to be the only ones from german/babel not > >implemented in cont-ger - why? > > Since I don't use latex, I just implemented what tobias told me to > implement. BTW, the shortcut mechanism is available for other purposes > too, just take a look at supp-lan.tex My first impression is that a few and may be the most important breakpoint issues are met. > >"- allow hyphenation here, but do not disallow elsewhere, as \" > > || My typo, sorry: "- contrasts to \- and does not produce anything when not at a line break. || always produces a hyphen glyph. > > does, used in OT1 encoded text containing e.g. umlauts > >"" insert \discretionary{}{}{} (empty breakpoint) here, > > used after solidi (/) > > |/| |)| |(| Ahem, I meant only the solidus, not the parens. Taking the german.sty example, I want Ein"~/""Ausgang to become Ein-/¦Ausgang (the ¦ indicating the only breakpoint). > || |-| |~| |--| |hello world| The active vertical bar trick seems to be rather flexible, but I am not yet sure if I can do a simple mapping that supports all features (deepingly hidden in quite some texts). I'll try to dig into supp-lan.tex later, 'though it does not seem to have typesettable docs. In case you're interested, germanb.dtx in babel provides English documentation to what I was talking about. Something like this may be right, but it produces a lot of errors (I inserted before \starttext, maybe just catcode problems: \installcompoundcharacter "- {\prewordbreak\discretionary{-}{}{}\postwordbreak} \installcompoundcharacter "" {\prewordbreak\allowbreak\postwordbreak} \installcompoundcharacter "| {\prewordbreak\discretionary{-}{}{\thinspace}\postwordbreak} \installcompoundcharacter "~ {\hbox{\compoundhyphen}} \installcompoundcharacter "= {\prewordbreak\hbox{\compoundhyphen}\allowbreak\postwordbreak} Karsten -- Karsten Tinnefeld tinnefeld@ls2.cs.uni-dortmund.de Fachbereich Informatik, Lehrstuhl 2 T +49 231 755-4737 Universität Dortmund, D-44221 Dortmund, Deutschland F +49 231 755-2047