No space before punctuation

From Wiki
Revision as of 09:59, 21 July 2004 by Patrick Gundlach (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

< Bugs and workarounds

Problem: If we switch to french in an environment file:

\startenvironment env
\useencoding[ffr]
\mainlanguage[fr]
\stopenvironment

Then, there is no space before ; and :

\environment env
\starttext
bla: bla? bla! bla; bla.
\stoptext

Workaround: Put this at the end of the environment:

\unprotect
\def\reactivateLostActivations{\catcode`:=\@@active
  \catcode`;=\@@active}
\appendtoks\reactivateLostActivations\to\everystarttext
\protect