[NTG-context] mode dependend character handling
Mojca Miklavec
mojca.miklavec.lists at gmail.com
Sun Jan 15 00:02:24 CET 2006
Taco Hoekwater wrote:
> Henning Hraban Ramm wrote:
> >> \startencoding[ec]
> >> \startmode[swiss]
> >> \definecharacter ssharp {ss}
> >> \stopmode
> >> \stopencoding
> >> than the order of commands doesn't matter any more (but then the
> >> automatic conversion will only work for the ec encoding).
>
> mode processing is based on modes that are in effect
> at the execution time of the \startmode macro, not
> the typeset time. This would work:
>
> \enablemode[swiss]
> \startencoding[ec]
> \startmode[swiss]
> \definecharacter ssharp {ss}
> \stopmode
> \stopencoding
>
> but then it would be on always, since it effectively becomes
>
> \startencoding[ec]
> \definecharacter ssharp {ss}
> \stopencoding
>
> whereas without the \enablemode it becomes only:
>
> \startencoding[ec]
> \stopencoding
>
> which does nothing.
OK, thanks Taco. Now I understand the problem. I always compiled with or without
texexec --mode=swiss
which worked fine. If mixing modes within the same document is
required (\enablemode/\disablemode[swiss]), it fails of course (I
didn't think about it).
Mojca
More information about the ntg-context
mailing list