Difference between revisions of "No space before punctuation"

From Wiki
Jump to navigation Jump to search
Line 27: Line 27:
 
</pre>
 
</pre>
  
Proposed Solution (on kernel) / HH:  
+
HH - Proposed Solution (on kernel):  
  
 
<pre>
 
<pre>

Revision as of 22:18, 4 July 2005

< 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

HH - Proposed Solution (on kernel):

\appendtoks
  \enablelanguagespecifics[\currentlanguage]%
\to \everystarttext