From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24057 Path: news.gmane.org!not-for-mail From: Adam Lindsay Newsgroups: gmane.comp.tex.context Subject: Re: extra space after variant Date: Fri, 02 Dec 2005 18:48:09 +0000 Message-ID: <439096E9.8080003@comp.lancs.ac.uk> References: <403A1895-626A-4617-94A7-784685A4765D@science.uva.nl> <439052AD.8020000@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133549400 1642 80.91.229.2 (2 Dec 2005 18:50:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Dec 2005 18:50:00 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 02 19:49:51 2005 Return-path: 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 1EiFwc-0002Z9-9o for gctc-ntg-context-518@m.gmane.org; Fri, 02 Dec 2005 19:47:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D2C711291E; Fri, 2 Dec 2005 19:47:41 +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 18835-02-3; Fri, 2 Dec 2005 19:47:37 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D4DCB128D9; Fri, 2 Dec 2005 19:47:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5AFE4128D9 for ; Fri, 2 Dec 2005 19:47:37 +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 18835-02-2 for ; Fri, 2 Dec 2005 19:47:36 +0100 (CET) Original-Received: from mail.comp.lancs.ac.uk (mail.comp.lancs.ac.uk [148.88.3.45]) by ronja.ntg.nl (Postfix) with ESMTP id 55F811286A for ; Fri, 2 Dec 2005 19:47:36 +0100 (CET) Original-Received: from [194.80.37.193] (localhost [127.0.0.1]) by mail.comp.lancs.ac.uk (8.12.10/8.12.10) with ESMTP id jB2IlaPY025959 for ; Fri, 2 Dec 2005 18:47:36 GMT User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <439052AD.8020000@wxs.nl> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:24057 Archived-At: Hans Hagen wrote: > Hans van der Meer wrote: > >> When I code: >> abc {\variant[xyz] pqr} >> I find extra space typeset between "abc" and "pqr". >> >> This extra space is absent when I code >> abc {\variant[xyz]pqr} >> Thus the space in the source between ] and pqr makes a difference in >> the result. >> >> Clearly visible in: >> abc {\variant[xyz] pqr} abc {\variant[xyz]pqr}\crlf >> abc {\Var[xyz]pqr} abc {\Var[xyz] pqr}\crlf >> >> I would think that this should not happen. >> >> The whitespace goes away by inserting an \ignorespaces in the variant- >> definition. >> \def\variant[#1]% slow >> {\dosetscaledfont >> \expanded{\definedfont >> [\truefontname{\fontstringA\fontstylesuffix\fontvariant >> \fontstringA{#1}} >> at \scaledfont]}\ignorespaces} >> >> >> Still using version 2005-11-14, forget this if already corrected in >> the latest version of the 30th. > > > before we do that ... do others agree (taco, adam ...)? > > we don't want compatibility issues -) > > btw, a better sulution is to use \ignoreimplicitspaces: > > \def\ignoreimplicitspaces > {\doifnextcharelse\relax\relax\relax} > > abc {x\variant[xyz]\space pqr} abc {\variant[xyz]pqr}\crlf > abc {\variant[xyz]\space pqr} abc {\variant[xyz]pqr}\crlf > abc {\variant[xyz] pqr} abc {\variant[xyz]pqr}\crlf > abc {\variant[xyz]{x} pqr} abc {\variant[xyz]pqr}\crlf > > otherwise you run into problems with macros that want to insert a space > explicitly I like it, because the implementation bug was a bit annoying to me sometimes. Also, thanks for the fix for adapting sizes, back a few months. It means that the EC Companion/TS1 support can now become feasible. Shall I try to nudge that forward again? The biggest issue is probably in typescripts and font synonyms -- should they directly support Berry names, seeing as that's where people will be getting these TS1 fonts? adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-