From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64702 Path: news.gmane.org!not-for-mail From: Arthur Reutenauer Newsgroups: gmane.comp.tex.context Subject: Re: Problem with encoding Date: Tue, 21 Dec 2010 11:11:33 +0100 Message-ID: <20101221101133.GJ29474@phare.normalesup.org> References: 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 1292926309 28234 80.91.229.12 (21 Dec 2010 10:11:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2010 10:11:49 +0000 (UTC) To: Mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 21 11:11:44 2010 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 1PUzC3-0006XK-G9 for gctc-ntg-context-518@m.gmane.org; Tue, 21 Dec 2010 11:11:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CC148CA920; Tue, 21 Dec 2010 11:11:42 +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 MRFB7mR99fs5; Tue, 21 Dec 2010 11:11:40 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E8C56CA90C; Tue, 21 Dec 2010 11:11:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F1823CA90C for ; Tue, 21 Dec 2010 11:11:37 +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 iUyxgKgUi6Z4 for ; Tue, 21 Dec 2010 11:11:35 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 53CC8CA907 for ; Tue, 21 Dec 2010 11:11:35 +0100 (CET) Original-Received: from nef2.ens.fr (nef2.ens.fr [129.199.96.40]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oBLABYWg028138 for ; Tue, 21 Dec 2010 11:11:34 +0100 Original-Received: from phare.normalesup.org (phare.normalesup.org [129.199.129.80]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id oBLABXpH020612 for ; Tue, 21 Dec 2010 11:11:34 +0100 (CET) X-Envelope-To: Original-Received: by phare.normalesup.org (Postfix, from userid 1008) id E61CBBC254; Tue, 21 Dec 2010 11:11:33 +0100 (CET) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.1.4 (nef2.ens.fr [129.199.96.32]); Tue, 21 Dec 2010 11:11:34 +0100 (CET) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.199.96.40; country=FR; region=A8; city=Paris; latitude=48.8667; longitude=2.3333; http://maps.google.com/maps?q=48.8667,2.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rDJKbyvy - 446dade8fd5a - 20101221 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:64702 Archived-At: > BTW: What is the difference what the COUNTRY code and the LANGUAGE code affects? In your case, you should use a language code since you want to set a language. ConTeXt has used different sets of codes in the past, but we now try to follow IETF recommendation "Tag for Identifying Languages" (http://tools.ietf.org/html/bcp47), because it's the only one that can be precise enough for our needs (at least among the tagging systems I know of). For example, you can distinguish between British English and American English by appending a country code to the language code (hence "en-gb" and "en-us", respectively). Using a country code to identify a language is generally a bad idea and should be discouraged, since that's not what they're meant for, and it can lead to confusion: for example, you could use the code "uk" to identify English as spoken in the United Kingdom, but that's actually the language code for Ukrainian, which has been an actual problem for ConTeXt in the post (in addition to that, "uk" is not even the proper language code for the United Kingdom: it's "gb", as written above; the reason why "uk" is used as a DNS top-level domain is not clear and has lead, alas, to even more confusion). The authorities that decide upon language and country codes are different committees of the ISO; the ISO standard for language codes is ISO 639 (with different parts), and the one for country codes is ISO 3166 (again, with different parts; the two-letter codes of ISO 3166-1 are generally rather well-known because they're the ones being used for DNS top-level domains -- with some exceptions, see above). Arthur ___________________________________________________________________________________ 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 ___________________________________________________________________________________