ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas Floeren" <thomas.floeren@boschung.com>
To: "'Otared Kavian'" <otared@gmail.com>,
	"'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: MkII synonyms additional space problem
Date: Thu, 16 Apr 2009 15:44:42 +0200	[thread overview]
Message-ID: <003301c9be99$7f4dab00$8614a8c0@boschung.local> (raw)
In-Reply-To: <5985AAF4-ADB0-4964-9E94-59EFD3B0BC9D@gmail.com>

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{<all synonym macros go here>}\vskip-\lineheight}

I think this will do it for the moment.

Thanks and Greetings
Thomas



Otared Kavian <mailto:otared@gmail.com> scribbled on Thursday, April 16, 2009
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…) 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=\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=\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 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
___________________________________________________________________________________


  reply	other threads:[~2009-04-16 13:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-16 10:50 Thomas Floeren
2009-04-16 11:14 ` Otared Kavian
2009-04-16 13:44   ` Thomas Floeren [this message]
2009-04-16 14:05     ` Hans Hagen
2009-04-16 18:35       ` Thomas Floeren
2009-04-16 20:34         ` Hans Hagen
2009-04-16 19:29       ` Thomas Floeren

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='003301c9be99$7f4dab00$8614a8c0@boschung.local' \
    --to=thomas.floeren@boschung.com \
    --cc=ntg-context@ntg.nl \
    --cc=otared@gmail.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).