From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/15011 Path: news.gmane.org!not-for-mail From: Frank Colcord Newsgroups: gmane.text.pandoc Subject: Re: Markdown, tables and CSV Date: Fri, 27 May 2016 03:24:33 -0700 (PDT) Message-ID: References: <047d7b86ebe83c062b05332eab9b@google.com> <20BF19CB-A2B0-4B19-A749-D750CDD89736@martinfenner.org> <1463766905.1918988.613990665.6CD67781@webmail.messagingengine.com> <471daa3c-e2ec-4445-b4fd-44e5c8a3fd6b@googlegroups.com> <1464330807.2727387.620260561.2CC32090@webmail.messagingengine.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_157_1673565874.1464344673563" X-Trace: ger.gmane.org 1464344679 18641 80.91.229.3 (27 May 2016 10:24:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 May 2016 10:24:39 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCC2DANPWIHBBYWAUC5AKGQEA5UQNJA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri May 27 12:24:39 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk0-f59.google.com ([209.85.213.59]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b6EwV-0003NH-F1 for gtp-pandoc-discuss@m.gmane.org; Fri, 27 May 2016 12:24:35 +0200 Original-Received: by mail-vk0-f59.google.com with SMTP id r140sf33861114vkf.1 for ; Fri, 27 May 2016 03:24:35 -0700 (PDT) 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=f+jB5jDQDFKvQ0dwHjfNRwFl++5Al305FiUS+8qEuaA=; b=a8vDIVM1JJI6/Rmp0rX9Y/1PSxK1eIHv0kll3qcZtv6c8DwFUmpsjwMZFzlGXqExBM NMDi1mCvzOV+ddsX95lkExAIUElkn5vexGtTfIx+bD76RQLYZuQAykXgYVMrI5jAXyeb b7FtDe3h31u/3TxTjdCqys0+0ZvAwtmF5RBB6tU+dzbSPsRB7B9kS5nMR1UJQBePwsiB 52YhiTitk9NoX02hoingYlJVLJAbjOdWLVNj01wRCSV2fv63z1E0C71HfvXOnCaUsHSP /xnzX5F+95TRHOGadWClzjaF1o7HLhOHM4In0qRsZ1RpbDZqjppNklth0NfI2vg1h2gl HMNg== 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=f+jB5jDQDFKvQ0dwHjfNRwFl++5Al305FiUS+8qEuaA=; b=lHK6Xap22tztkvZvcc1pL7/TxubKs6jlRuEVIrkWewi9bs3V2Ln2VkCj0dqznj0/bX ynDIzrR/RvOYK+YpLimNlf/tv8Yuju20QvFn/q7Q/05YVLT0udXgNnuvXdUZ9dHaqlhm w8/11TH6JKaqH474ciQ6ZFAVEcc8MM9Rx5Gops0v0ryhh71AM2mXj4B4yNHs3seuK9Zb kEdZKX6r8ezGjODivnhtCGnAvuEkV7brMdCAD5mdw+hLnJN+hJyC0o8F6YRd9X1pxRTQ DUtkwm3CjXSDUKoNqV0DdCDrTJqVaxJFqDwl99ccumX9SQQqnMHvPallrIRq2siMRssH +v+w== 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=f+jB5jDQDFKvQ0dwHjfNRwFl++5Al305FiUS+8qEuaA=; b=KUrHwXqiw7io87eXUzrhJntotAeScEqdZ6uhsU1uXst0RvEVD7+ATeDHYI9gIONWCu uY1cZPPSzx8nvuxazvJqaFUX8pF4GIElvM9LDZCYeIhokUZGwXohLUx10AC+puCn9v13 ljBGo6KnOuIw5GhoOWWwFKu78JU3APtlWO632oYWNKklqwp9xUmxjGDqHnn57t4+YC61 YwttjXKI/8SuZwfWXjpgiQbjFMrPEQYwWUEgn2+iAy96eOnG92lTbFamvuExOMeMcCFx L0AY97VkMHBfK31eC5fTyezu+JJ2xYfuPrbuKBJB4eP/II8H0dKD7ZfyQrySm2khlta5 Am/Q== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ALyK8tKO1IwxY8V3VGttx3g2bHQjTt7M9uUud177HzFmgbq1Ky3CH0Tsl2pwDHzD91yMhw== X-Received: by 10.157.46.199 with SMTP id w65mr203183ota.10.1464344674758; Fri, 27 May 2016 03:24:34 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.36.197 with SMTP id z63ls1010106ota.61.gmail; Fri, 27 May 2016 03:24:34 -0700 (PDT) X-Received: by 10.157.24.88 with SMTP id t24mr202618ott.18.1464344674195; Fri, 27 May 2016 03:24:34 -0700 (PDT) In-Reply-To: <1464330807.2727387.620260561.2CC32090-2RFepEojUI2N1INw9kWLP6GC3tUn3ZHUQQ4Iyu8u01E@public.gmane.org> X-Original-Sender: fcolcord-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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:15011 Archived-At: ------=_Part_157_1673565874.1464344673563 Content-Type: multipart/alternative; boundary="----=_Part_158_1854534450.1464344673563" ------=_Part_158_1854534450.1464344673563 Content-Type: text/plain; charset=UTF-8 What's the script you use to turn a csv into readable table in markdown? the reason I liked this format: ![Table name](./tables/table.csv) was that I could edit the csv files in my spreadsheet processor and keep them as tables in the pdf I generated. This lets me sort items, add columns, move columns around very easily, using a tool built for that job. If someone else has a better format, that's great. Using a script is less great. On Friday, May 27, 2016 at 7:33:32 AM UTC+1, jgabriele wrote: > > On Thu, May 26, 2016, at 07:48 AM, Frank Colcord wrote: > > {snip} > I've handled the csv in previous projects by changing the delimiters when > saving a spreadsheet so the delimiters are pandoc friendly. > > > I too have done the same thing in the past. LibreOffice can easily change > the column delimiter in a csv file (from commas to pipes, and back again). > But, in the end, even if you only want to copypaste the table into your .md > file and not edit it, it still looks crummy when reading it in plain text. > If I'm going to go through the (albeit small) hassle of converting csv to > use pipes so I can paste it into my .md file, it's just as easy to use a > script to convert the csv into a pandoc-markdown -formatted table, and > paste that in instead. That way, my doc still is readable as plain text --- > you just need to remember that it's generated content, and so if you want > to make changes, do them in the csv. > > Because of how easy it is to do that, I'd be inclined to say that Pandoc > could do without introducing extra syntax for automatic rendering of raw > pasted-in csv data. > > -- John > > -- 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 email 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/e1ffce2d-9cc0-4367-a652-a46fa5c141a6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_158_1854534450.1464344673563 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
What's the script you use to turn a csv into readable = table in markdown?

the reason I liked this format:
=
![Table name](./tables/table.csv)

was that I = could edit the csv files in my spreadsheet processor and keep them as table= s in the pdf I generated.
This lets me sort items, add columns, m= ove columns around very easily, using a tool built for that job.
=
If someone else has a better format, that's great.
=

Using a script is less great.

On Friday, May 27,= 2016 at 7:33:32 AM UTC+1, jgabriele wrote:
On Thu, May 26, 2016, at 07:48 AM, Fr= ank Colcord wrote:
{snip}
I've handled the csv in previous projects by changing the delimite= rs when saving a spreadsheet so the delimiters are pandoc friendly.
=C2=A0
I too have done the same thing in the past= . LibreOffice can easily change the column delimiter in a csv file (from co= mmas to pipes, and back again). But, in the end, even if you only want to c= opypaste the table into your .md file and not edit it, it still looks crumm= y when reading it in plain text. If I'm going to go through the (albeit= small) hassle of converting csv to use pipes so I can paste it into my .md= file, it's just as easy to use a script to convert the csv into a pand= oc-markdown -formatted table, and paste that in instead. That way, my doc s= till is readable as plain text --- you just need to remember that it's = generated content, and so if you want to make changes, do them in the csv.<= br>
=C2=A0
Because of how easy it is to do that, I= 9;d be inclined to say that Pandoc could do without introducing extra synta= x for automatic rendering of raw pasted-in csv data.
=C2=A0
-- John
=C2=A0

--
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/e1ffce2d-9cc0-4367-a652-a46fa5c141a6%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_158_1854534450.1464344673563-- ------=_Part_157_1673565874.1464344673563--