From: Aditya Mahajan <adityam@umich.edu>
Cc: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: \definetype breaks down ---
Date: Tue, 14 Nov 2006 13:54:38 -0500 (EST) [thread overview]
Message-ID: <Pine.WNT.4.63.0611141351190.1620@nqvgln> (raw)
In-Reply-To: <455A0EA0.5090606@wxs.nl>
On Tue, 14 Nov 2006, Hans Hagen wrote:
> Aditya Mahajan wrote:
>> Hi Hans,
>>
>> I just noticed a bug with the type mechanism. It breaks down the
>> kerning for ---. Minimal example:
>>
>> \definetype[typeTEX][option=tex]
>>
>> \starttext
>> \typeTEX|\example|. this---breaks---down.
>> \stoptext
>>
>> Any workarounds?
>>
>>
> taco, is \noligatures global? i.e. how do we turn on ligatures then?
>
>
> \def\verbatimfont{\redoconvertfont\dosetfontattribute{\currenttypingclass\currenttyping}\c!style\normalnoligatures\font}%
Adding \verbatimfont to mktype seems to do the trick.
\unprotect
\def\mktype#1% was \dotype
{\bgroup
\verbatimfont%<----------Added
\resumecoloraftergroup % a problem is that we can still be in color
mode, tricky hack
\strut % new, enables leading space in \type { abc } at par start
\let\currenttypingclass\??ty
\edef\currenttyping{#1}%
\catcode`\<=\@@other
\catcode`\>=\@@other
\futurelet\next\dodotype}
\protect
\setuptype[option=TEX]
\definetype[typeTEX][option=tex]
\starttext
\type{\example}. this---breaks---down.
\typeTEX{\example}. this---breaks---down.
\stoptext
Aditya
next prev parent reply other threads:[~2006-11-14 18:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-14 18:10 Aditya Mahajan
2006-11-14 18:37 ` Aditya Mahajan
2006-11-14 18:44 ` Hans Hagen
2006-11-14 18:47 ` Taco Hoekwater
2006-11-14 18:54 ` Aditya Mahajan [this message]
2006-11-14 19:08 ` Hans Hagen
2006-11-14 19:14 ` Hans Hagen
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=Pine.WNT.4.63.0611141351190.1620@nqvgln \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
--cc=taco@elvenkind.com \
/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).