From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72208 Path: news.gmane.org!not-for-mail From: pmlists@free.fr (Peter =?utf-8?Q?M=C3=BCnster?=) Newsgroups: gmane.comp.tex.context Subject: Re: languagespecifics Date: Sun, 06 Nov 2011 20:40:22 +0100 Message-ID: <878vntxcnt.fsf@micropit.couberia.bzh> References: <87wrbg5k1p.fsf@micropit.couberia.bzh> <4EB3E8AB.6070303@wxs.nl> <87vcqyag3u.fsf@micropit.couberia.bzh> <4EB673B6.9050403@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1320608446 16214 80.91.229.12 (6 Nov 2011 19:40:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Nov 2011 19:40:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 06 20:40:42 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RN8a9-00034f-92 for gctc-ntg-context-518@m.gmane.org; Sun, 06 Nov 2011 20:40:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3DEBECB0BD; Sun, 6 Nov 2011 20:40:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Ivnk+9NMX+Gu; Sun, 6 Nov 2011 20:40:37 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 85CF0CB083; Sun, 6 Nov 2011 20:40:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C4212CB083 for ; Sun, 6 Nov 2011 20:40:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6P2QrIeHHSd1 for ; Sun, 6 Nov 2011 20:40:24 +0100 (CET) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id B0213CA680 for ; Sun, 6 Nov 2011 20:40:24 +0100 (CET) Original-Received: from smtp.smtpout.orange.fr (smtp04.smtpout.orange.fr [80.12.242.126]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pA6JeNgI010308 for ; Sun, 6 Nov 2011 20:40:23 +0100 Original-Received: from micropit.couberia.bzh ([2.2.79.137]) by mwinf5d59 with ME id tvgN1h00A2xl4aA03vgNjM; Sun, 06 Nov 2011 20:40:23 +0100 Original-Received: by micropit.couberia.bzh (Postfix, from userid 1000) id 4BCAD500653; Sun, 6 Nov 2011 20:40:22 +0100 (CET) In-Reply-To: <4EB673B6.9050403@wxs.nl> (Hans Hagen's message of "Sun, 06 Nov 2011 12:47:02 +0100") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux) X-Bayes-Prob: 0.0415 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.12.242.126; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04FRTEnMc - b56db4f8f87b - 20111106 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:72208 Archived-At: 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 ___________________________________________________________________________________