[NTG-context] languagespecifics

Peter Münster pmlists at free.fr
Sun Nov 6 20:40:22 CET 2011

On Sun, Nov 06 2011, Hans Hagen wrote:

> the reset issue is the reason why there is no mechanism yet ... your example
> is an an indication of this: it would reset globally set spacing
> on the other hand, when you switch language, it will normally happen grouped
> so settings are local then

Requiring grouping is good, but it would not solve this specific case:
the mainlanguage is a global setting.

Something like "\setuplanguage[all, !fr][setups=not-french]" would help,
that means setups for all languages but French. Or just \setuplanguage[all][...].

Test file:

--8<---------------cut here---------------start------------->8---
%% Future t-french.tex:
\startsetups french
  % other French specific settings
\startsetups not-french
  % cancel other French specific settings
\setuplanguage [all] [setups=not-french]
\setuplanguage [fr]  [setups=french]
\mainlanguage  [fr]

%% Document:
test: test\par
  test: test\par
test: test
--8<---------------cut here---------------end--------------->8---


More information about the ntg-context mailing list