From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49482 Path: news.gmane.org!not-for-mail From: "Thomas Floeren" Newsgroups: gmane.comp.tex.context Subject: Re: MkII synonyms additional space problem Date: Thu, 16 Apr 2009 15:44:42 +0200 Message-ID: <003301c9be99$7f4dab00$8614a8c0@boschung.local> References: <001e01c9be81$23390d90$8614a8c0@boschung.local> <5985AAF4-ADB0-4964-9E94-59EFD3B0BC9D@gmail.com> Reply-To: thomas.floeren@boschung.com, mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1239889613 29216 80.91.229.12 (16 Apr 2009 13:46:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Apr 2009 13:46:53 +0000 (UTC) To: "'Otared Kavian'" , "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 16 15:48:12 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1LuRwZ-0002LA-Bp for gctc-ntg-context-518@m.gmane.org; Thu, 16 Apr 2009 15:47:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 697331FB77; Thu, 16 Apr 2009 15:46:27 +0200 (CEST) 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 20241-06-2; Thu, 16 Apr 2009 15:45:46 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 47FC71FB49; Thu, 16 Apr 2009 15:45:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 449381FB39 for ; Thu, 16 Apr 2009 15:45:43 +0200 (CEST) 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 09094-02 for ; Thu, 16 Apr 2009 15:44:53 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id 612791FAD7 for ; Thu, 16 Apr 2009 15:44:53 +0200 (CEST) Original-Received: from smtp2.infomaniak.ch (smtp2.infomaniak.ch [84.16.68.90]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n3GDihQb002190 for ; Thu, 16 Apr 2009 15:44:44 +0200 Original-Received: from wma007 (17.1.90.85.cust.static.gepowernet.ch [85.90.1.17]) (authenticated bits=0) by smtp2.infomaniak.ch (8.14.2/8.14.2) with ESMTP id n3GDih9d003484; Thu, 16 Apr 2009 15:44:43 +0200 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <5985AAF4-ADB0-4964-9E94-59EFD3B0BC9D@gmail.com> Thread-Index: Acm+hIVp3XWS1nNoSjCuejYcjfuXVgAEoM0A X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Antivirus: Dr.Web (R) for Mail Servers on smtp2 host X-Antivirus-Code: 100000 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=84.16.68.90; country=CH; region=07; city=Carouge; latitude=46.1833; longitude=6.1333; http://maps.google.com/maps?q=46.1833,6.1333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 209574418 - 116610b15268 - 20090416 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:49482 Archived-At: Thanks for the phantom hint! I made a macro that I'll put at the beginning of each component file, after the chapter header: \def\synCorr{\vphantom{}\vskip-\lineheight} I think this will do it for the moment. Thanks and Greetings Thomas Otared Kavian scribbled on Thursday, April 16, 20= 09 1:14 PM: > Hi Thomas, > = > I tested your example: indeed in the latest mkii the problem you > mention appears (however it doesn't in the latest mkiv, nor in mkii > ConTeXt ver: 2009.01.18 14:39 MKII fmt: 2009.2.19 int: english/ > english). > = > A temporary solution (not in the spirit of ConTeXt though=85) is the > following: add a \vphantom before the first occurence of the synonim, > that is > \vphantom{\abs} > assuming that \abs is already defined: rewriting your example one > gets: = > = > \definesynonyms[testAbbrev][testAbbrevs][\infull] > %\setupsynonyms[testAbbrev][next=3D\autoinsertnextspace] > \testAbbrev[abs]{\sc abs}{Antiblockiersystem} > = > \starttext > This is a test.\vphantom{\abs} > Ausfall des \abs\ und \endgraf % +1 space > Ausfall des \abs\ und % OK > = > Ausfall des \infull{abs} (\abs) \endgraf %% same behavior > Ausfall des \infull{abs} (\abs) %% same behavior > = > \page > = > Ausfall des \abs\ und \endgraf % OK > Ausfall des \abs\ und % OK > = > \stoptext > = > Best regards: OK > = > = > On 16 avr. 09, at 12:50, Thomas Floeren wrote: > = >> = >> Hello, >> = >> I have a problem with synonyms in recent context betas: >> = >> At the first occurrence of a synonym in a document there is an >> additional horizontal white space in front of the synonym. >> = >> The space does not show up in further occurrences. >> = >> Minimal: >> = >> % coding: utf-8 >> \enableregime[utf] >> = >> \definesynonyms[testAbbrev][testAbbrevs][\infull] >> %\setupsynonyms[testAbbrev][next=3D\autoinsertnextspace] >> \testAbbrev[abs]{\sc abs}{Antiblockiersystem} >> = >> \starttext >> = >> Ausfall des \abs\ und \endgraf % +1 space >> Ausfall des \abs\ und % OK >> = >> %Ausfall des \infull{abs} (\abs) \endgraf %% same behavior >> %Ausfall des \infull{abs} (\abs) %% same behavior >> = >> \page >> = >> Ausfall des \abs\ und \endgraf % OK >> Ausfall des \abs\ und % OK >> = >> \stoptext >> = >> ConTeXt ver: 2009.04.15 12:15 MKII fmt: 2009.4.16 int: english/ >> english >> = >> Same thing with the version from 13.4.2009. >> contextlive (2009.03.06) however does not show the problem. >> = >> = >> Is there any solution around? >> = >> Thanks in advance >> = >> Thomas >> = >> ___________________________________________________________________________= ___ _____ >> If your question is of interest to others as well, please add an >> entry to the Wiki! >> = >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context webpage : >> http://www.pragma-ade.nl / http://tex.aanhet.net = >> archive : https://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ___________________________________________________________________________= ___ _____ ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________