From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31860 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: \definetype breaks down --- Date: Tue, 14 Nov 2006 13:54:38 -0500 (EST) Message-ID: References: <455A0EA0.5090606@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1163530524 5442 80.91.229.2 (14 Nov 2006 18:55:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2006 18:55:24 +0000 (UTC) Cc: Taco Hoekwater Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 14 19:55:19 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gk3Qy-00058f-Rg for gctc-ntg-context-518@m.gmane.org; Tue, 14 Nov 2006 19:55:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8C6311FE57; Tue, 14 Nov 2006 19:54:49 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02860-09-4; Tue, 14 Nov 2006 19:54:40 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AE70C1FE4E; Tue, 14 Nov 2006 19:54:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5D5441FE27 for ; Tue, 14 Nov 2006 19:54:38 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02860-09-3 for ; Tue, 14 Nov 2006 19:54:30 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with SMTP id 190621FE4E for ; Tue, 14 Nov 2006 19:54:29 +0100 (CET) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hackers.mr.itd.umich.edu ID 455A10EE.5BD0B.17724 ; 14 Nov 2006 13:54:38 -0500 Original-To: mailing list for ConTeXt users In-Reply-To: <455A0EA0.5090606@wxs.nl> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31860 Archived-At: 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