From: pmlists@free.fr (Peter Münster)
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: languagespecifics
Date: Sun, 06 Nov 2011 20:40:22 +0100 [thread overview]
Message-ID: <878vntxcnt.fsf@micropit.couberia.bzh> (raw)
In-Reply-To: <4EB673B6.9050403@wxs.nl> (Hans Hagen's message of "Sun, 06 Nov 2011 12:47:02 +0100")
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
\setcharacterspacing[frenchpunctuation]
% other French specific settings
\stopsetups
\startsetups not-french
\setcharacterspacing[reset]
% cancel other French specific settings
\stopsetups
\setuplanguage [all] [setups=not-french]
\setuplanguage [fr] [setups=french]
\mainlanguage [fr]
%% Document:
\usemodule[french]
\starttext
test: test\par
\start
\language[en]
test: test\par
\stop
test: test
\stoptext
--8<---------------cut here---------------end--------------->8---
--
Peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2011-11-06 19:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-04 9:11 languagespecifics Peter Münster
2011-11-04 13:29 ` languagespecifics Hans Hagen
2011-11-05 12:49 ` languagespecifics Peter Münster
2011-11-06 11:47 ` languagespecifics Hans Hagen
2011-11-06 19:40 ` Peter Münster [this message]
2011-11-06 19:49 ` languagespecifics Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878vntxcnt.fsf@micropit.couberia.bzh \
--to=pmlists@free.fr \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).