From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25373 invoked from network); 5 Nov 2023 13:00:31 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 5 Nov 2023 13:00:31 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 7FC9948373F for ; Sun, 5 Nov 2023 13:58:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NknboJ1cp5z1 for ; Sun, 5 Nov 2023 13:58:32 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id E868B483996 for ; Sun, 5 Nov 2023 13:57:40 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id DFD31483734 for ; Sun, 5 Nov 2023 13:56:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jzvNiu93FyQF for ; Sun, 5 Nov 2023 13:56:52 +0100 (CET) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 74DD8483732 for ; Sun, 5 Nov 2023 13:56:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.es; s=s31663417; t=1699189012; x=1699793812; i=oinos@gmx.es; bh=Nsrde5V54y7lbCC7IdM6qrYMEwXLFnUcVAZEUs1Szkc=; h=X-UI-Sender-Class:Date:From:Subject:To; b=F4GQzRBez+qQSss/gjNGiJOFVSVXaVV1Ouh2TV5J7Q/6A9YxeyyzxlI+vColhKi/ KtoKM6t1Dk+GJmJaiXModNh1EFt3F/SjI9S2saGsQAWJ2l9GVzUvBidh9rAtRRGCj XKLeFFZHRl51nfQGexGbauG9oUA8uxzeqFl2MwFblX8zWb65NWhWWF6zEYLGDR2Uc hE9eFSJJnymEimIGViCMbnBWYZmC9axwQmEJ/gKEkViFJoB34xYRWdqqX66d91ckO JbH7jD15su6C4smTiv3Udb6Mt5DzWXedMxJJGm0cvoDSnkUDMx3uLsGJKXNErqXl6 XL6dfvgy74k4VGIRfQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.1.101] ([90.166.58.189]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MI5UN-1rAv5g3UFr-00F9FC for ; Sun, 05 Nov 2023 13:56:51 +0100 Message-ID: <3fea5631-1466-69c5-e2fe-be95e0599786@gmx.es> Date: Sun, 5 Nov 2023 13:56:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US To: ConTeXt users X-Provags-ID: V03:K1:IpsZtcXv47I8A2m6bub+unUJxcvOCg3yDDOU4wpwAf7MsS80OoB /lS5G562c7JS6YnUlCqt9Xlm9PCi6H9ubLSocVrZu7Z2A4ba22VXORCIAFHgmyzOmfpUnRA 38484lK/yahM06gEpdPPO9DSo7bS3wQL8qABsIqI7O6MSB18ZZ+j76GErto1rNUq8YBkU+U ikb4PtUHAR9Me09SCaZaQ== UI-OutboundReport: notjunk:1;M01:P0:l8JKnIdSTH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Hash: UKRM76TV2TSBWVFFRTIQQGJO2BKIESGW X-MailFrom: oinos@gmx.es X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] command to process CSV file (database module) List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Pablo Rodriguez via ntg-context Cc: Pablo Rodriguez Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Dear list, These are the following first four lines of a CSV file: ,, "About \LuaTeX\ and \ConTeXt","about.pdf","https://www.pragma-ade.com/general/manuals/about.pdf" "l2r, r2l: A Few Tips","bidi.pdf","https://www.pragma-ade.com/general/manuals/bidi.pdf" "Flowcharts","charts-mkiv.pdf", Faking a command such as \cA, \cB and \cC (for contents of columns A, B or C) I would like to create a source document with an enumeration that contains: \doiftext{\cB} {\item {\em\cA}\attachment[file=\cB]% \doiftext{\cC}{ (also available at \cC)}.} I would like to do that with the "database" module. So far I have adapted the itemize environment, but I don't get the contents for items right: \usemodule[database] \starttext \def\ItemContents#1#2#3{\doiftext{#2} {\item {\em #1}\attachment[file=#2]% \doiftext{#3}{ (also available at #3)}.}} \defineseparatedlist [test] [separator={,}, % tab quotechar={"}, % tab before={\startitemize[n]},after={\stopitemize}, first={\ItemContents},last={.}, left={\{},right={\}}] \processdatabasefile[test][context-documents.csv] \stoptext I get an error about an unexpected symbol near "\" in the line of "\processdatabasefile". Could anyone enlighten me about what I am missing here? Many thanks for your help, Pablo ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________