From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95064 Path: news.gmane.org!not-for-mail From: cryo shock Newsgroups: gmane.comp.tex.context Subject: Re: How can I create a table from a CSV file? Date: Tue, 31 May 2016 17:42:06 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4342598342239062760==" X-Trace: ger.gmane.org 1464709362 18397 80.91.229.3 (31 May 2016 15:42:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 May 2016 15:42:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 31 17:42:28 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b7loJ-00043l-LY for gctc-ntg-context-518@m.gmane.org; Tue, 31 May 2016 17:42:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 540DCE8AB; Tue, 31 May 2016 17:42:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dNtxsucPevbm; Tue, 31 May 2016 17:42:19 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 852DCE8AC; Tue, 31 May 2016 17:42:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EC68BE8AA for ; Tue, 31 May 2016 17:42:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y5MMdr-0-9dN for ; Tue, 31 May 2016 17:42:18 +0200 (CEST) Original-Received: from mail-vk0-f49.google.com (mail-vk0-f49.google.com [209.85.213.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E67EEE896 for ; Tue, 31 May 2016 17:42:07 +0200 (CEST) Original-Received: by mail-vk0-f49.google.com with SMTP id r140so266109822vkf.0 for ; Tue, 31 May 2016 08:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=sdAoaAVE6PlUOw/nV7nRJFOfQqfg3nHx/mDjsq7im38=; b=TQfdIKjl6cmDvT14yUSP2x8pi30HVUQ2MmybqLtxmKa6x6WI+6zdo85ZGyt7/XYiZw DNid1PKk5YG2th+qQwFZYyZObzuN/pZPfLL0/QlbddgJQdZolAak5UnERTprFBjKtqwY Fuwg73HUqXSDHd5dc/CC8bmydeHcF2Sbq4pLzQWDvsLbESez1jfB4eWRZebsRXvo+Tmg uQ7iPIIrllAPjQtrvgPkys23DDsBwU/mTVNzyZBWdnMqHTPvdyLTbD0wlZqfkkTHgRzg yuBF1dUyPDCpZFMCHJWu9PQwC7rJ5kG/76KEXbZSDtQto8OeQlqHtIVaVy8/NPItTvsw 5r6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=sdAoaAVE6PlUOw/nV7nRJFOfQqfg3nHx/mDjsq7im38=; b=JFEAqsrC/SzF4w+CM13JeHF8PKQAa13yE8R9eM6T8G6pZ39ifEKVLdjDQT5AwMkNOb Yh3+dQOg/trJsijKL4hep6X/MwHhAOpIM00iLzROQ1ooRdnuwQLsLxmz6FqHqVP9MTV+ iYFdVD+ARQ9R6dMX2msQAml2hNfFtcbNtOKe9gU8gPWiGLImx2Px3q7TBlxectQ44y7B +n1+GhbIf8sl1sft3Qyt58FOVQ+5LU4znUl4ecEq/nus+qm9zObWXvC7IO91Sw/CuzXg iuHW8w3fsa1lHeMBDueg0xKxplM2aqnVLGmeVLu5+HopGV/e5NKGwcvkNClJbZAKaj+8 2OwQ== X-Gm-Message-State: ALyK8tKdV76pcpv49zsp8AeiFp25ZnSntLF1oB1VvJkIWWvo6LvPwuAkm8K0d5RHHEn2yDfHppUO1gG5iuCnoQ== X-Received: by 10.31.99.133 with SMTP id x127mr14310679vkb.146.1464709326336; Tue, 31 May 2016 08:42:06 -0700 (PDT) Original-Received: by 10.176.69.164 with HTTP; Tue, 31 May 2016 08:42:06 -0700 (PDT) Original-Received: by 10.176.69.164 with HTTP; Tue, 31 May 2016 08:42:06 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95064 Archived-At: --===============4342598342239062760== Content-Type: multipart/alternative; boundary=94eb2c07ccfc187b7305342537de --94eb2c07ccfc187b7305342537de Content-Type: text/plain; charset=UTF-8 I see, so I forgot to load the module in the beginning. Thanks a lot Hans. I have two more questions if you allow. First: is there a reliable source with all modules listed? Maybe even with an explanation what they are used for? Because the wiki doesn't mention the database module for example. Neither is it listed at modules.contextgarden. And second, how exactly should a user use the *.mkiv files? The way I see it is, that comments are within those files which give information on usage. But am I right that those in fact are like source or data files for context and that, fully understandable, you don't have the time to code CTX and update the manual, so that you comment in those source files on how to use CTX? I hope that you don't get my second question the wrong way Hans. But I am not a native english speaker, so the sense sometimes might seem other as meant. What I am trying to do is to understand how you work so that me and others understand how to use CTX as efficiently as possible. Furthermore I can't thank you enough for sharing CTX with us. Imho it is much more logical than LaTeX for example and if CTX was no more, I don't think I would start using LTX anymore but would go back to Writer or even Word instead. ;-) I wish you all the best. Greetings, Sebastian Am 31.05.2016 12:25 schrieb "Hans Hagen" : > > > \usemodule[database] > > \starttext > > \defineseparatedlist > [test] > [separator=space, % tab > before=\bTABLE,after=\eTABLE, > first=\bTR,last=\eTR, > left=\bTD,right=\eTD] > > \processdatabasefile[test][csv.csv] > > \stoptext > > see m-database.mkiv for more examples > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | 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 > ___________________________________________________________________________________ --94eb2c07ccfc187b7305342537de Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I see, so I forgot to load the module in the beginning. Than= ks a lot Hans.
I have two more questions if you allow.

First: is there a reliable source with all modules listed? M= aybe even with an explanation what they are used for? Because the wiki does= n't mention the database module for example. Neither is it listed at mo= dules.contextgarden.

And second, how exactly should a user use the *.mkiv files? = The way I see it is, that comments are within those files which give inform= ation on usage. But am I right that those in fact are like source or data f= iles for context and that, fully understandable, you don't have the tim= e to code CTX and update the manual, so that you comment in those source fi= les on how to use CTX?

I hope that you don't get my second question the wrong w= ay Hans. But I am not a native english speaker, so the sense sometimes migh= t seem other as meant.
What I am trying to do is to understand how you work so that me and others = understand how to use CTX as efficiently as possible.

Furthermore I can't thank you enough for sharing CTX wit= h us. Imho it is much more logical than LaTeX for example and if CTX was no= more, I don't think I would start using LTX anymore but would go back = to Writer or even Word instead. ;-)

I wish you all the best. Greetings, Sebastian

Am 31.05.2016 12:25 schrieb "Hans Hagen" <pragma@wxs.nl>:
>
>
> \usemodule[database]
>
> \starttext
>
> \defineseparatedlist
> =C2=A0 [test]
> =C2=A0 [separator=3Dspace, % tab
> =C2=A0 =C2=A0before=3D\bTABLE,after=3D\eTABLE,
> =C2=A0 =C2=A0first=3D\bTR,last=3D\eTR,
> =C2=A0 =C2=A0left=3D\bTD,right=3D\eTD]
>
> \processdatabasefile[test][csv.csv]
>
> \stoptext
>
> see m-database.mkiv for more examples
>
>
> -----------------------------------------------------------------
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 Hans Hagen | PRAGMA ADE
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 806= 1 GH Hasselt | The Netherlands
> =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | 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.n= tg.nl/mailman/listinfo/ntg-context
> webpage=C2=A0 : http://www.pragma= -ade.nl / http://tex.aanhet.net > archive=C2=A0 : http://foundry.supelec.fr/projects/contextrev/
> wiki=C2=A0 =C2=A0 =C2=A0: http://= contextgarden.net
> ______________________________________________________________________= _____________

--94eb2c07ccfc187b7305342537de-- --===============4342598342239062760== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============4342598342239062760==--