From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58614 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: mistake in lang-cjk.mkiv Date: Sun, 09 May 2010 12:02:34 +0200 Message-ID: <4BE6883A.8010409@wxs.nl> References: <9F07F3B3F61C4284851A95415329B969@PustaPC> <4BE323A4.1050304@wxs.nl> <4BE676A6.50305@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1273399370 12495 80.91.229.12 (9 May 2010 10:02:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 9 May 2010 10:02:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun May 09 12:02:49 2010 connect(): No such file or directory 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 1OB3LV-0004j5-3Z for gctc-ntg-context-518@m.gmane.org; Sun, 09 May 2010 12:02:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 18C5DC9CB5; Sun, 9 May 2010 12:02:48 +0200 (CEST) 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 Wseu5hxzZE1i; Sun, 9 May 2010 12:02:45 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7092DC9BB4; Sun, 9 May 2010 12:02:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DBFCEC9BB4 for ; Sun, 9 May 2010 12:02:43 +0200 (CEST) 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 alZfYrrs3gp2 for ; Sun, 9 May 2010 12:02:41 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (sc-162.r-213-125-29.schoolconnect.nu [213.125.29.162]) by balder.ntg.nl (Postfix) with ESMTP id AFED9C9BAE for ; Sun, 9 May 2010 12:02:41 +0200 (CEST) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.3e) with ESMTP id 442-1713362 for multiple; Sun, 09 May 2010 12:02:32 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 In-Reply-To: <4BE676A6.50305@googlemail.com> X-Authenticated-User: hagen@controller-9 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:58614 Archived-At: On 9-5-2010 10:47, Wolfgang Schuster wrote: > Am 06.05.10 22:16, schrieb Hans Hagen: >>> Also I would like to ask if file lang-spe.mkii have some equivalent >>> in MkIV and where the language specifics are defined (in which file)? >>> Or is it treated in enco files? >> >> in mkiv we don't have (want) language specifics ... why do yoi need them? > > languagespecifics are not needed but we need a method to load language > dependend setups, e.g. for french you can have in lang-ger > > \startsetups [fr] [punctuation] > > \setcharacterspacing[frenchpunctuation] > > \stopsetups > > \startsetups [fr] [itemize] > > \setupitemize[symbol=2] > > \stopsetups > > and in your document you can load them with > > \setuplanguage[fr][setups={punctuation,itemize}] > > or > > \enablelanguagesetups[punctuation,itemize] indeed setups is the way to go \enablelanguagesetups is somewhat tricky as we then also want to disable them selectively which boils down to either tagging them all internally or let lua deal with sets in which case we need some optimization to prevent redundant calls also, we need the reverse actions then i.e. for german we want to disable the punctuation \startsetups [fr] [punctuation:reset] \resetcharacterspacing \stopsetups and for style changes that's quite some extra code (and adding an extra level of language hashes to each mechanism is also no solution) so, we might distinguish between 'mainlanguage' and local 'language' \startlanguagesetups [fr:punctuation:set] % local language \setcharacterspacing[frenchpunctuation] \stopsetups \startlanguagesetups [fr:punctuation:reset] % local language \resetcharacterspacing \stopsetups \startlanguagesetups [fr:itemize] % mainlanguage \setupitemize[symbol=2] \stopsetups or so ... needs bit of thinking Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________