From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21544 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Basic question on Unicode and ConTeXt Date: Fri, 22 Jul 2005 14:05:07 +0200 Message-ID: <42E0E0F3.8070606@wxs.nl> References: <6faad9f005071511431a61fa1f@mail.gmail.com> <42DAB916.6000000@wxs.nl> <6faad9f005071813263c3109a1@mail.gmail.com> <42DC250C.8010500@wxs.nl> <6faad9f005071816115514e6ba@mail.gmail.com> <42DCB49D.5020209@wxs.nl> <42DEB5AC.8000806@creutzig.de> <6faad9f005072017524f914147@mail.gmail.com> <42E0D8C0.2080700@creutzig.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1122034157 12127 80.91.229.2 (22 Jul 2005 12:09:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Jul 2005 12:09:17 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 22 14:09:16 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DvwKk-0006DI-5r for gctc-ntg-context-518@m.gmane.org; Fri, 22 Jul 2005 14:08:54 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E6E031278D; Fri, 22 Jul 2005 14:08:53 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29876-02; Fri, 22 Jul 2005 14:08:53 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E1A9F127E0; Fri, 22 Jul 2005 14:04:38 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1ED34127E0 for ; Fri, 22 Jul 2005 14:04:37 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29650-05 for ; Fri, 22 Jul 2005 14:04:36 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 3F64B127C0 for ; Fri, 22 Jul 2005 14:04:36 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j6MC4XWp021852 for ; Fri, 22 Jul 2005 14:04:33 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 15AC424C5E; Fri, 22 Jul 2005 13:20:38 +0200 (CEST) Original-Received: from [10.100.1.52] (unknown [10.100.1.52]) by server-1.pragma-net.nl (Postfix) with ESMTP id E082E24C5C for ; Fri, 22 Jul 2005 11:20:36 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <42E0D8C0.2080700@creutzig.de> X-Virus-Scanned: ClamAV 0.86.1/987/Thu Jul 21 16:57:41 2005 on mailrelay01 X-Virus-Status: Clean X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21544 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21544 Christopher Creutzig wrote: > conv = Iconv.new("UTF-16", "ISO-8859-2") > 255.times { |i| puts lookup[conv.iconv("%c" % i)] } > > to get the whole list, assuming we've filled the lookup hash first. an alternative is to use the tcx files but that is kind of messy so we need a utf-8 hash (can be loaded from unic-* files) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------