From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32861 Path: news.gmane.org!not-for-mail From: Michal Kvasnicka Newsgroups: gmane.comp.tex.context Subject: Module `database' and UTF8? Date: Sat, 20 Jan 2007 20:47:12 +0100 Message-ID: <45B271C0.7020903@econ.muni.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1169320042 436 80.91.229.12 (20 Jan 2007 19:07:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 20 Jan 2007 19:07:22 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 20 20:07:19 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1H8LYb-0003xH-Rp for gctc-ntg-context-518@m.gmane.org; Sat, 20 Jan 2007 20:07:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6D2D420013; Sat, 20 Jan 2007 20:02:35 +0100 (CET) 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 19215-02-6; Sat, 20 Jan 2007 20:02:29 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5C1702000D; Sat, 20 Jan 2007 20:02:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 277B32000D for ; Sat, 20 Jan 2007 20:02:25 +0100 (CET) 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 19215-02-5 for ; Sat, 20 Jan 2007 20:02:20 +0100 (CET) Original-Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by ronja.ntg.nl (Postfix) with ESMTP id 07FD71FFFB for ; Sat, 20 Jan 2007 20:02:20 +0100 (CET) Original-Received: from merkur.econ.muni.cz (merkur.econ.muni.cz [147.251.189.10]) by tirith.ics.muni.cz (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id l0KJ71he032051 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 20 Jan 2007 20:07:02 +0100 Original-Received: from [192.168.0.6] (localhost [127.0.0.1]) by merkur.econ.muni.cz (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id l0KJ717o005867 for ; Sat, 20 Jan 2007 20:07:01 +0100 User-Agent: Thunderbird 1.5.0.7 (X11/20060911) Original-To: mailing list for ConTeXt users X-Muni-Spam-TestIP: 147.251.189.10 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:32861 Archived-At: Good evening. I apologize that I bother you now so much with my own problems but I have to rewrite some of my macros right now for some reason. I found there is a great `database' module. I tried it with ConTeXt version 2007.01.12 15:56, perl TeXExec 5.4.3, and pdfetex 1.40.1 under SuSE Linux 10.1. I use input encoding regime utf8, and fonts in ec-lm encoding. I set it this way: \defineseparatedlist[CSV] [separator=3Dtab,%{,}, %quotechar=3D{"}, before=3D\bTABLE, after=3D\eTABLE, first=3D\bTR, last=3D\eTR, left=3D\bTD, right=3D\eTD] And call it with \processseparatedfile[CSV][file.csv]. It works well with words without accents. If there is an accented letter in the file.csv, it failes with this error message: ! Argument of \utftwouniglph has an extra }. \par } \dodoprocessseplist #1#2 ->\edef \!!stringa {#1} \ifx \edef@relax \!!stringa ... P=D8=CDJMY leden =FAnor b=F8ezen duben kv=ECten =E8erven = =E8ervenec srpe... \doprocessseplist ...elax ->\dodoprocessseplist #1 \relax \relax \relax \end \doprocessseparatedfileline ...plist \line \relax \else \expanded {\processq... ... Can you help me to make it work? Many thanks. Yours Michal Kvasnicka