ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ConTeXt mailing list <ntg-context@ntg.nl>, burnus@net-b.de
Subject: Re: two questions
Date: Mon, 09 Jul 2001 00:57:09 +0200	[thread overview]
Message-ID: <3.0.6.32.20010709005709.0133a260@server-1> (raw)
In-Reply-To: <5.1.0.14.0.20010707163657.00a9aaf0@public.uni-hamburg.de>

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
-------------------------------------------------------------------------


  reply	other threads:[~2001-07-08 22:57 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-05 12:03 Eckhart Guthöhrlein
2001-07-05 21:10 ` Hans Hagen
2001-07-06  9:11   ` Taco Hoekwater
2001-07-06  7:57     ` maartenwisse
2001-07-07 14:47     ` Eckhart Guthöhrlein
2001-07-08 22:57       ` Hans Hagen [this message]
2001-07-09  7:58       ` Taco Hoekwater
2001-07-09  8:48         ` Hans Hagen
2001-07-10  9:17           ` Taco Hoekwater
2002-07-08  7:27 Two questions scarsoluigi
2002-07-12 16:41 ` Hans Hagen
2003-02-06 17:13 two questions Tasos Drosopoulos
2003-02-06 17:31 ` Idris S Hamid
2003-02-06 17:35 ` Hans Hagen
2003-02-06 19:56 ` Willi Egger
2003-02-07  7:26   ` Gour
2003-02-07  9:32     ` Hans Hagen
2003-02-08 20:08     ` Willi Egger
2007-11-06  7:07 Dalyoung Jeong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3.0.6.32.20010709005709.0133a260@server-1 \
    --to=pragma@wxs.nl \
    --cc=burnus@net-b.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).