From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/16224 Path: news.gmane.org!.POSTED!not-for-mail From: Kolen Cheung Newsgroups: gmane.text.pandoc Subject: Re: Markdown, tables and CSV Date: Tue, 29 Nov 2016 14:13:17 -0800 (PST) Message-ID: References: <047d7b86ebe83c062b05332eab9b@google.com> <20BF19CB-A2B0-4B19-A749-D750CDD89736@martinfenner.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2713_922423009.1480457598018" X-Trace: blaine.gmane.org 1480457604 9469 195.159.176.226 (29 Nov 2016 22:13:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2016 22:13:24 +0000 (UTC) Cc: mf-+Z+QprJ1jbpwFuiNLMe2Ig@public.gmane.org To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCS252WXTEIBB7X267AQKGQEV57323I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Nov 29 23:13:18 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ua0-f189.google.com ([209.85.217.189]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cBqeJ-00016q-CL for gtp-pandoc-discuss@m.gmane.org; Tue, 29 Nov 2016 23:13:15 +0100 Original-Received: by mail-ua0-f189.google.com with SMTP id 51sf18299597uai.0 for ; Tue, 29 Nov 2016 14:13:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=D1PVvT3pFUH0haUCWDZlbOWPHwGKo7T0ARX+Zwn1BEA=; b=zDdcbG5/M2mKOG3J+UlcqKv8bROwyf0ChU1plwfLnqd0Qkk4/e0pP9AWFJsUGV2th1 xyg5O1mRDqpHCiFnXCWKG6Q9B72agw3jjFbAp220tW4rdTrCL8/lc5ErB6UQZ0eYap7X juZNth90RbLb1DjhR9O/sXFiBBB5pZ8lRFwrSfUi8DSog4t7e4TV+NmbOdhn1tECVjEY RwvG7VUXYd7tkJ3js1+yPmTX12h7c3iLpLYzSUmADeAqSPdRdZngXK2ojixPG2eF9bdk AYHpoogLvwj1xgTGBDiX/xZAp4XltUQ6y6l1aZku4U/nFj7NXkx+OayqU55s3CdpLscO 3wng== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=D1PVvT3pFUH0haUCWDZlbOWPHwGKo7T0ARX+Zwn1BEA=; b=W0em7uGTapj25Zxcroa5X8pStQI2oVE1pOf+M0mkK/nEMqpMAfP/M4//8ftXyG+g2r 2whk+vd8Z+oM4hqhqKpPuOBW+41J4613E10/TMueSyu9D5qZ+Hd5hk5NVte5MvBmPS2/ 6Ns/a1VsRJk53jeO7/muhBpra6xvb7XvLMVz+4rs0TUagIZTDCeuHDtuR/O9aqvSkG0J syaGMJ8ydKloB35aFyjxtxEDrRccLiwG/gT8+DZ9KRLF+rKqGc6if101SPFSXga5HMpn ROI4RNh414tJONjGN889hLEqK0ATwg/mI5t564tOxrWQfUpay2ygaAxirJcn/CoipT22 sHYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=D1PVvT3pFUH0haUCWDZlbOWPHwGKo7T0ARX+Zwn1BEA=; b=WeDB0fZIMFEa/UZU/8ukDLBaqoNXz6kiS2FRLAaJXkz6CLXwEwKbvsec5Dp2xOpN5t W7TSCiHSyemyA3IxkpVy4W22pHDRqmJyrgMJzjSNL5OqLZxbZYdTKN850tEt01Xpvnqg tR1PD9FH74phtPIxh0e0CEDttb8GXn2/o/qnrMoOSi/oLfSOtoZUNas0JMVTkGUQ+mTB aeLDH0lQdLawOBFNEpe6N8GSaNXYMAOA5ZlHd+jyS0//Jq5RRDXO3L/brrslptIatVlN jv+08rIEgQiDzGD1QcEOBmBINhKGiqtSumBb0PnQyd8J66TUsmwE1zLEV4T0CXxEnTsQ XWhw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AKaTC03xs7Yh2aotCjw19qfqYVfHtBiiO757y1pIKQlxvOkPtdXokcdIThIy7jpmIXQcMA== X-Received: by 10.157.37.59 with SMTP id k56mr1406715otb.3.1480457599058; Tue, 29 Nov 2016 14:13:19 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.53.52 with SMTP id o49ls13357975otc.18.gmail; Tue, 29 Nov 2016 14:13:18 -0800 (PST) X-Received: by 10.157.35.87 with SMTP id k23mr1403734otd.13.1480457598640; Tue, 29 Nov 2016 14:13:18 -0800 (PST) In-Reply-To: <20BF19CB-A2B0-4B19-A749-D750CDD89736-+Z+QprJ1jbpwFuiNLMe2Ig@public.gmane.org> X-Original-Sender: christian.kolen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:16224 Archived-At: ------=_Part_2713_922423009.1480457598018 Content-Type: multipart/alternative; boundary="----=_Part_2714_1583278003.1480457598018" ------=_Part_2714_1583278003.1480457598018 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I wrote another =E2=80=9Cinteresting=E2=80=9D filter base on the same idea,= but in reverse: pantable/pantable2csv.py=20 at master =C2=B7 ickc/pantable=20 . It= =20 converts all tables in pandoc to a YAML-CodeBlock-styled CSV table defined= =20 in pantable. Effectively, it adds a =E2=80=9CCSV Writer=E2=80=9D, where pantable is kind= of =E2=80=9CCSV Reader=E2=80=9D. I can kind of achieve idempotence here, but only at [image: P^3 =3D P^2], n= ot [image:=20 P^2 =3D P] (it=E2=80=99s from pandoc though). Basically it captures all inf= o from=20 pandoc=E2=80=99s AST, so the conversion pantable2csv did should be =E2=80= =9Clossless=E2=80=9D. These are at least important to me because I can safely jump between the 2= =20 formats (native pandoc table and csv table in code-block) without worrying= =20 too much. I could jump to csv for edit (more low-level, e.g. width control)= =20 and jump back to pandoc tables for better readability. =E2=80=8B --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/a668593c-b4f2-4f57-909b-3f16dfb40990%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_2714_1583278003.1480457598018 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hi,

I wrote another =E2=80=9Cint= eresting=E2=80=9D filter base on the same idea, but in reverse: pant= able/pantable2csv.py at master =C2=B7 ickc/pantable. It converts all ta= bles in pandoc to a YAML-CodeBlock-styled CSV table defined in pantable.

Effectively, it adds a =E2= =80=9CCSV Writer=E2=80=9D, where pantable is kind of =E2=80=9CCSV Reader=E2= =80=9D.

I can kind of achieve idempo= tence here, but only at 3D"P^3, not 3D"P^2 (it=E2=80=99s from p= andoc though). Basically it captures all info from pandoc=E2=80=99s AST, so= the conversion pantable2csv did should be =E2=80=9Clossless=E2=80=9D.

These are at least important= to me because I can safely jump between the 2 formats (native pandoc table= and csv table in code-block) without worrying too much. I could jump to cs= v for edit (more low-level, e.g. width control) and jump back to pandoc tab= les for better readability.

=E2=80=8B

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/a668593c-b4f2-4f57-909b-3f16dfb40990%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_2714_1583278003.1480457598018-- ------=_Part_2713_922423009.1480457598018--