From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/15013 Path: news.gmane.org!not-for-mail From: John Gabriele Newsgroups: gmane.text.pandoc Subject: Re: Markdown, tables and CSV Date: Fri, 27 May 2016 10:02:33 -0400 Message-ID: <1464357753.647857.620578913.08BC7804@webmail.messagingengine.com> 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/alternative; boundary="_----------=_14643577536478571"; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1464357775 3138 80.91.229.3 (27 May 2016 14:02:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 May 2016 14:02:55 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJ3XKWUQQDBB7NGUG5AKGQE2SPOI7A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri May 27 16:02:41 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-it0-f56.google.com ([209.85.214.56]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b6ILW-0005lS-Ha for gtp-pandoc-discuss@m.gmane.org; Fri, 27 May 2016 16:02:38 +0200 Original-Received: by mail-it0-f56.google.com with SMTP id e62sf12915745ita.1 for ; Fri, 27 May 2016 07:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:message-id:from:to:mime-version:content-transfer-encoding :in-reply-to:references:subject:date:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=eS7j7eC9+f8DGUK+8kGZmthywJju/lrRXC31HB2Ut1I=; b=ejvKJSSvoLFUYj8i5KGNo67POBlWFLqGcnmfxkvXpJH6ZJRCw5SLH9l8GZVCUam4xa DlLdec9SRo4tUKNaKFYDYGAcXSGTkrLBFqb/eBe1lhaGkMp/NLuKIi3DmA/omWrdQ3Xn q4oYlyZBuCMPxIJ5JT6o4pM5acavaDSSoylOfV8UcfitimDWE8/ir6s5hyjeAJxoP39q 8XWr32+rl3xRUDaN/OFbh0Wgcj3XRWVAgw+bYqlSgeN5AUSQRg4bboRwomT7D/IrmcVh Snr+sMulrGpo1Kl3nzDBKdfn2WUjg+SxRaAF2ZEOP0u8g/HjefG2SG40nYjYFpon3HGI IRnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:message-id:from:to:mime-version :content-transfer-encoding:in-reply-to:references:subject:date :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=eS7j7eC9+f8DGUK+8kGZmthywJju/lrRXC31HB2Ut1I=; b=ANTdxO6ZjBbriaGOX1pRjssBmPXSj73+yB9IiHej15cy0Z0UL8GFvujn++ko3hIZBz 7YH9HiYUNqKed18DsR7i9rqvo6yysEeFNWwSx0vP+HxduP/xYP6TqCCsrKnktpa0zyuu ydckOlroFsAege7k0CidJhqRIq+Nfyu+13Qls1fQQprKZfdEO63L2DgjIICc1XZLo11X FPX9tBh0G2qQE6ElXJHnhiHn2k/UDoAPkX4ZHoatqhyVQK+TINDBL0snOpUF1qOULMWf PW6Fvh4uU/wRP4IdeogCrFMJ7wlJLsy168MAqd7SdHlz7xyagIZaTOiFyHXioHKK+3iX Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ALyK8tIQzLX1C7EnpteqFuLfXQRfdfwai50D/qKH5+x+wW+WCia5unfxCaN3UrmGoR6Kew== X-Received: by 10.140.91.37 with SMTP id y34mr664439qgd.0.1464357757744; Fri, 27 May 2016 07:02:37 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.93.84 with SMTP id c78ls2662662qge.26.gmail; Fri, 27 May 2016 07:02:37 -0700 (PDT) X-Received: by 10.129.94.69 with SMTP id s66mr10006290ywb.44.1464357757255; Fri, 27 May 2016 07:02:37 -0700 (PDT) Original-Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com. [66.111.4.27]) by gmr-mx.google.com with ESMTPS id tp10si4383165pac.2.2016.05.27.07.02.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 May 2016 07:02:37 -0700 (PDT) Received-SPF: pass (google.com: domain of jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.27 as permitted sender) client-ip=66.111.4.27; Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id EEC5A20BA9 for ; Fri, 27 May 2016 10:02:33 -0400 (EDT) Original-Received: from web1 ([10.202.2.211]) by compute5.internal (MEProxy); Fri, 27 May 2016 10:02:33 -0400 Original-Received: by mailuser.nyi.internal (Postfix, from userid 99) id C513F6A1D5; Fri, 27 May 2016 10:02:33 -0400 (EDT) X-Sasl-Enc: 3zBy+0Ybuqk5IPGce2ljAmgupRqBMyQxJBWxE2XTkR6i 1464357753 X-Mailer: MessagingEngine.com Webmail Interface - ajax-b882aaad In-Reply-To: X-Original-Sender: jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@fastmail.fm; dkim=pass header.i=@messagingengine.com; spf=pass (google.com: domain of jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.27 as permitted sender) smtp.mailfrom=jgabriele-97jfqw80gc6171pxa8y+qA@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:15013 Archived-At: This is a multi-part message in MIME format. --_----------=_14643577536478571 Content-Type: text/plain; charset=UTF-8 On Fri, May 27, 2016, at 06:24 AM, Frank Colcord wrote: > What's the script you use to turn a csv into readable table in > markdown? Here's one I wrote: . > 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. Oh, absolutely. I like that too. My most recent comment was specifically about copypasting blocks of csv content directly into your .md file, and having Pandoc treat that specially and render it as a table. -- John > > 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/1464357753.647857.620578913.08BC7804%40webmail.messagingengine.com. For more options, visit https://groups.google.com/d/optout. --_----------=_14643577536478571 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8
On Fri, May 27, 2016, at 06:24 AM, = Frank Colcord wrote:
What's the script you use to turn a csv into readable table in markdown?<= br>
 
Here's one I wrote: <https://github.com/uvtc/csv2md>.
 
the reason I liked this for= mat:
![Table name](./tables/table.csv)
 
was that I could edit the csv files in my spreadsheet processor and ke= ep 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.
 
Oh, absolutely. I like that too. My most = recent comment was specifically about copypasting blocks of csv content dir= ectly into your .md file, and having Pandoc treat that specially and render= it as a table.
 
-- John
 
 
 
On Friday, May 27, 2016 at 7:33:32 AM UTC= +1, jgabriele wrote:
On Thu, May 26, 2016, at 07:48 AM, Fran= k Colcord wrote:
{snip}
I've handled the csv in previous projects by changing the delimiters w= hen saving a spreadsheet so the delimiters are pandoc friendly.
 
I too have done the same thing in the pas= t. LibreOffice can easily change the column delimiter in a csv file (from c= ommas 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 crum= my when reading it in plain text. If I'm going to go through the (albeit sm= all) hassle of converting csv to use pipes so I can paste it into my .md fi= le, it's just as easy to use a script to convert the csv into a pandoc-mark= down -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 c= ontent, 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 f= or automatic rendering of raw pasted-in csv data.
 
-- John
 
 

--
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.go= ogle.com/d/msgid/pandoc-discuss/1464357753.647857.620578913.08BC7804%40webm= ail.messagingengine.com.
For more options, visit http= s://groups.google.com/d/optout.
--_----------=_14643577536478571--