MkII synonyms additional space problem
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
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 ___________________________________________________________________________________
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
_____
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 -----------------------------------------------------------------
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 ___________________________________________________________________________________
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 -----------------------------------------------------------------
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 ___________________________________________________________________________________
participants (4)
-
Hans Hagen
-
Otared Kavian
-
Thomas Floeren
-
Thomas Floeren