Just to add, 12% is definitely wrong because it does not end the
number, the number ends at a non-number. If you type
\catcode`\~=12%
3 sons
you will get an error that 123 is not allowed here. You should end it
either with a space or with a \relax.
Zdeněk Wagner
Bonjour,
thisi is mentioned somewhere in the documentation. The problem is that
the mapping is applied just before the text is output. However,
category of ~ is set to 13, which means that the character is active.
Thus first the active character is expanded to the nonbreakable space
and only then
>\catcode`\~=12%
changing catcodes in an environment looks wrong (the % after the 12 is
definitely wrong) if you change catcodes then the definition cannot work
in the argument of any command (for the same reasons that \verb does not
work in command arguments) . Leave ~ active but make it
Bonjour,
Using the velthuis tranliteration scheme to type devanagari texts, I
recently came accross some problem with ~n to produce ञ glyph.
In tabular like environment, the ~ returns to its non -break space
status and ~n is rendered as न
Here is a MWE: