[NTG-context] \autoinsertedspace fails
Rik Kabel
ConTeXt at rik.users.panix.com
Wed Jan 4 23:10:58 CET 2023
No change with the latest (2023.01.04).
Is this a problem with what I am doing, or a bug?
--
Rik
On 2022-12-29 19:12, Rik Kabel via ntg-context wrote:
>
> Happy New Year all!
>
> Following up on the problem with \autoinsertnextspace
> (https://mailman.ntg.nl/pipermail/ntg-context/2022/107111.html) and
> the new \autoinsertedspace that came from that report, I see that
> there is still a problem, or perhaps a problem again after it was
> previously repaired.
>
> The following code, run under the latest (and recent previous)
> version, produces an incorrect result, with no space inserted where
> expected in many cases. As the first examples after \starttext show,
> the problem appears to be with \autoinsertedspace, but perhaps I am
> using it incorrectly in the macro as well.
>
> \starttexdefinition unexpanded BD
> Â \dodoublegroupempty
> Â \doBD
> \stoptexdefinition
>
> \starttexdefinition doBD #1#2
> Â Â \removeunwantedspaces\ % insert a space
> Â Â (
> Â Â \ifsecondargument
> Â Â Â Â Â Â #1|â|#2
> Â Â \else\iffirstargument
> Â Â Â Â Â Â #1â
> Â Â \else
> Â Â Â Â Â Â {\red I NEED A DATE OR DATES!}
> Â Â \fi\fi
> Â Â )
> Â Â \autoinsertedspace
> \stoptexdefinition
>
> \tt
>
> \starttext
> This\autoinsertedspace fails unexpectedly with autoinsertedspace.\par
> This\autoinsertedspace \emph{fails unexpectedly} with
> autoinsertedspace.\par
> This\autoinsertnextspace works with autoinsertnextspace.\par
> This\autoinsertnextspace \emph{fails} as expected with
> autoinsertnextspace.\par
> Saussure\BD{1857}{1913} works.\par
> Saussure \BD{1857}{1913} \emph{works}.\par
> Saussure \BD{1857}{1913}. Works.\par
> Chomsky\BD{1928} fails with LMTX, works with MkIV.\par
> Chomsky \BD{1928} \emph{fails with LMTX, works with MkIV}.\par
> Chomsky \BD{1928}. Works.\par
> \BD blah\par
> \contextversion\ \texenginename
> \stoptext
>
>
> --
> Rik
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist :ntg-context at ntg.nl /https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage :https://www.pragma-ade.nl /http://context.aanhet.net
> archive :https://bitbucket.org/phg/context-mirror/commits/
> wiki :https://contextgarden.net
> ___________________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20230104/dbdce265/attachment.htm>
More information about the ntg-context
mailing list