* MkII synonyms additional space problem
@ 2009-04-16 10:50 Thomas Floeren
2009-04-16 11:14 ` Otared Kavian
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Floeren @ 2009-04-16 10:50 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: MkII synonyms additional space problem
2009-04-16 10:50 MkII synonyms additional space problem Thomas Floeren
@ 2009-04-16 11:14 ` Otared Kavian
2009-04-16 13:44 ` Thomas Floeren
0 siblings, 1 reply; 7+ messages in thread
From: Otared Kavian @ 2009-04-16 11:14 UTC (permalink / raw)
To: thomas.floeren, mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: MkII synonyms additional space problem
2009-04-16 11:14 ` Otared Kavian
@ 2009-04-16 13:44 ` Thomas Floeren
2009-04-16 14:05 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Floeren @ 2009-04-16 13:44 UTC (permalink / raw)
To: 'Otared Kavian', 'mailing list for ConTeXt users'
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: MkII synonyms additional space problem
2009-04-16 13:44 ` Thomas Floeren
@ 2009-04-16 14:05 ` Hans Hagen
2009-04-16 18:35 ` Thomas Floeren
2009-04-16 19:29 ` Thomas Floeren
0 siblings, 2 replies; 7+ messages in thread
From: Hans Hagen @ 2009-04-16 14:05 UTC (permalink / raw)
To: thomas.floeren, mailing list for ConTeXt users; +Cc: 'Otared Kavian'
Thomas Floeren wrote:
> 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.
it's fixed in the beta
-----------------------------------------------------------------
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: MkII synonyms additional space problem
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
1 sibling, 1 reply; 7+ messages in thread
From: Thomas Floeren @ 2009-04-16 18:35 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: 'Otared Kavian'
This is really great.
Thanks!
I'm aware that actually the MkII probs must be a paine in the ass, as
youre quite heavily working on the MkIV.
I will change to MkIV as soon as possible, but for the moment I have
to produce and I have a deadline (30.4.), so MkII is my choice ;) Hope
you understand this.
Greetings
and Thanks for the great support on this list.
Thomas
On Apr 16, 2009, at 16:05 , Hans Hagen wrote:
> Thomas Floeren wrote:
>> 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.
>
> it's fixed in the beta
>
> -----------------------------------------------------------------
> 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
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: MkII synonyms additional space problem
2009-04-16 14:05 ` Hans Hagen
2009-04-16 18:35 ` Thomas Floeren
@ 2009-04-16 19:29 ` Thomas Floeren
1 sibling, 0 replies; 7+ messages in thread
From: Thomas Floeren @ 2009-04-16 19:29 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: 'Otared Kavian'
This is great!
Thanks for having it integrated into the beta.
And generally spoken a thousand thanks (ok, maybe a few hundreds) to
all the contributing people on this list, which has become my primary
source of ... thinking further. :)
and of course of information of any kind:)
Greets
Tomas
> Thomas Floeren wrote:
>> 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.
>
> it's fixed in the beta
>
> -----------------------------------------------------------------
> 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
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: MkII synonyms additional space problem
2009-04-16 18:35 ` Thomas Floeren
@ 2009-04-16 20:34 ` Hans Hagen
0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2009-04-16 20:34 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: 'Otared Kavian'
Thomas Floeren wrote:
> This is really great.
> Thanks!
>
> I'm aware that actually the MkII probs must be a paine in the ass, as
> youre quite heavily working on the MkIV.
actually the space was introduced recently when i removed the mkiv code
some files come as .tex .mkii and mkiv where the later two hook into the
first one
however, since we split the code base more drastically some of these are
kind of reverted e.g. core-syn.mkii/mkiv was removed and the mkii code
merged back in core-syn.tex; in mkiv synonyms are managed differently
and part of the strc-* modules
> I will change to MkIV as soon as possible, but for the moment I have to
> produce and I have a deadline (30.4.), so MkII is my choice ;) Hope you
> understand this.
no problem; mkii will be around for a long time
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-04-16 20:34 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-16 10:50 MkII synonyms additional space problem Thomas Floeren
2009-04-16 11:14 ` Otared Kavian
2009-04-16 13:44 ` Thomas Floeren
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
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).