From: Hans Hagen <pragma@wxs.nl>
Subject: Re: \definetype breaks down ---
Date: Tue, 14 Nov 2006 19:08:02 +0000 [thread overview]
Message-ID: <455A1412.9000703@wxs.nl> (raw)
In-Reply-To: <Pine.WNT.4.63.0611141351190.1620@nqvgln>
Aditya Mahajan wrote:
> 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
>
>
ok, i'll fix that (is a side effect of mkiv code split-off)
the fact that the noligatures is global meant that the in this case non
verbatim font was affected;
Hans
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
next prev parent reply other threads:[~2006-11-14 19:08 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
2006-11-14 19:08 ` Hans Hagen [this message]
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=455A1412.9000703@wxs.nl \
--to=pragma@wxs.nl \
--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).