From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/16137 Path: news.gmane.org!.POSTED!not-for-mail From: Kolen Cheung Newsgroups: gmane.text.pandoc Subject: Re: Markdown, tables and CSV Date: Wed, 23 Nov 2016 02:52:37 -0800 (PST) Message-ID: <573694fd-9b0e-42a7-9ab2-d54376a1bde8@googlegroups.com> References: <047d7b86ebe83c062b05332eab9b@google.com> <20BF19CB-A2B0-4B19-A749-D750CDD89736@martinfenner.org> <78b88082-90cb-4ec8-ab45-9e2be24d6dc4@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_69_2022407048.1479898357324" X-Trace: blaine.gmane.org 1479898365 2430 195.159.176.226 (23 Nov 2016 10:52:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 23 Nov 2016 10:52:45 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCS252WXTEIBB5XJ2XAQKGQEH7HOPZA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Nov 23 11:52:37 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qk0-f189.google.com ([209.85.220.189]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9VAI-0007Qq-Oo for gtp-pandoc-discuss@m.gmane.org; Wed, 23 Nov 2016 11:52:35 +0100 Original-Received: by mail-qk0-f189.google.com with SMTP id n204sf3251838qke.1 for ; Wed, 23 Nov 2016 02:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:date:from:to: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=A+7521oQl0EuJ/0dKy4zzkG2wPsiqzAzVE0da+rVH6g=; b=uIHxw+rVuf9oHyqYy71FdXtjYFdMcsq7h+o93nCOCagxKMeKYrZRP1d+/x7pB4gids cPjnpdTIsxvLxfuG/28GR9Ur8H6MMZ+gjHeqtcY/jhDxo2/VbabirCVkqC1oR0O2WhMW 7cnIAUE0rkCqqfRgj/wL/h7NeQpEefSMrG6r8DGevb0kAjynBE7bHu+pdyQ3nY84OqbO fCHLXeX4RwSM9d431/TbeoFWZdHCy2pufdG+BAe4LveqivU44GlnDl6ms0nJIMz7bHsX Z2rG3hS4vqgQb8uxBsHMoxZJydGohrB1jQZ9T+FTXRZk2nuasz7QHNRCupQDKkoW9j5B rB0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to: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=A+7521oQl0EuJ/0dKy4zzkG2wPsiqzAzVE0da+rVH6g=; b=qZHyhHRB98OLVegBrMQBlWzjJnBQTB0Swxwk+STaZy/x3572YKhoWIWBOeieEHWy2X aT2eaNlLt17EyG9yb0G9zksmS5TnM/9C+SFhcJaqxDibZ9oRtOG0KxpGWF0es6fqfEMr w9p1WEm+2NU7TR/1pZmU5M20IXe4M8npIR0C4TlnwnqzA2PUeDRk4WqSlcrq353ONgkf L410ithyX7wiKqewMq8URZqDpF1lgjdH5eEWbYggjcQfyv4StUxFx6lbrD2n0hVwt4YK bRS31NibjvnQ5EWbfn+iLPfHSP02RMnjcyOcXITyf91BGYftDOLSkEEOOzjnrryr9P2P hpaQ== 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: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=A+7521oQl0EuJ/0dKy4zzkG2wPsiqzAzVE0da+rVH6g=; b=OIqB57QWfzf5hwY2NS4j22W+p6lDHyu2Kym4vmU5WarNU/2ZCLg6kqFxm0LPGXboPa 2sQdSsOny3x2nzGw/rY1i3Sk+I1OkxO+fmUMm1iqQS2Tnjdjjkt0WhdcV/9D2cniX313 XR/zAyniHp6AjCr1EUullbvg3r4Gwu8WtOCkoUJ7bt1Z6+5o/0dKwGxGa5pDWaOMAmFK wD4fvgp2WSpJY2Mst2Wz84yH/KBCQJ5Va19My2b8DEsrv4Y65/cYDchCc6bKC8Ne+1tB o5jHsUXQY/w3aeGfi/J1cewGOcQFcL8pXxngsj+LSVZmido7obfuvm396RkwH5/Idh6P Mxlg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AKaTC00Jn+h6MBOUYB75XHt0OEuSi2QZTtw2lj+1QoZvWe4GOQh5dS3iZB1HHiNOtoZPQQ== X-Received: by 10.157.11.248 with SMTP id 111mr238918oth.4.1479898358313; Wed, 23 Nov 2016 02:52:38 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.23.193 with SMTP id j59ls1124544otj.24.gmail; Wed, 23 Nov 2016 02:52:37 -0800 (PST) X-Received: by 10.157.17.3 with SMTP id g3mr237596ote.8.1479898357879; Wed, 23 Nov 2016 02:52:37 -0800 (PST) In-Reply-To: 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:16137 Archived-At: ------=_Part_69_2022407048.1479898357324 Content-Type: multipart/alternative; boundary="----=_Part_70_968922349.1479898357324" ------=_Part_70_968922349.1479898357324 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I setup my filter in ickc/pantable: CSV Tables in Markdown: Pandoc Filter= =20 for CSV Tables and called it pantable. I= =20 kind of want to break to pattern of pandoc-... since it is too cumbersome= =20 and Python doesn=E2=80=99t like -. In a sense it also emphasize pantable is= a=20 subset of pandoc, all about tables. For the meanwhile it only support CSV= =20 input. (But I=E2=80=99m thinking about adding .xlsx (seems trivial) and .ht= ml (less=20 trivial) input. The last one might seems redundant, but basically the idea= =20 is to use HTML to type tables when it is too complicated, but rather than= =20 being a raw HTML I want it be real pandoc Table element for other outputs.) I wrote extensive tests to make sure it works in cornering case. *One thing= =20 that could be controversial is error handling*. Basically for the metadata= =20 part, whenever it is invalid (e.g. header: first row while I expect boolean= =20 or yes/no), it will be overridden with sensible defaults. I think it is=20 kind of like pandoc=E2=80=99s spirit that =E2=80=9Cany random string is val= id markdown=E2=80=9D, so=20 I try to suppress and handle away all the errors. But I=E2=80=99m not sure = if it=20 will makes the error too difficult to be spotted. Please do give feedback if you have any. I will put it into real world use= =20 in my project heavily in the coming month. Thanks. =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/573694fd-9b0e-42a7-9ab2-d54376a1bde8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_70_968922349.1479898357324 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I setup my filter in ickc/pantable: CSV Tables in Markdown: Pandoc Filter for CSV Tables= and called it pantable. I kind of want to break to pattern of -. In a sense it also emphasize pantable is a subse= t of pandoc, all about tables. For the meanwhile it only support CSV input.= (But I=E2=80=99m thinking about adding .xlsx (seems tri= vial) and .html (less trivial) input. The last one migh= t seems redundant, but basically the idea is to use HTML to type tables whe= n it is too complicated, but rather than being a raw HTML I want it be real= pandoc Table element for other outputs.)

I wrote extensive tests to m= ake sure it works in cornering case. One thing that could be controvers= ial is error handling. Basically for the metadata part, whenever it is= invalid (e.g. header: first row while I expect boolea= n or yes/no), it will be overridden with sensible defaults. I think it is k= ind of like pandoc=E2=80=99s spirit that =E2=80=9Cany random string is vali= d markdown=E2=80=9D, so I try to suppress and handle away all the errors. B= ut I=E2=80=99m not sure if it will makes the error too difficult to be spot= ted.

Please do give feedback if y= ou have any. I will put it into real world use in my project heavily in the= coming month.

Thanks.

=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/573694fd-9b0e-42a7-9ab2-d54376a1bde8%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_70_968922349.1479898357324-- ------=_Part_69_2022407048.1479898357324--