From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/15019 Path: news.gmane.org!not-for-mail From: "kurt.pfeifle via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Markdown, tables and CSV Date: Sun, 29 May 2016 08:59:49 -0700 (PDT) Message-ID: <001833c9-e40d-4079-ba79-c88c852780a5@googlegroups.com> References: <047d7b86ebe83c062b05332eab9b@google.com> <20BF19CB-A2B0-4B19-A749-D750CDD89736@martinfenner.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2468_1807037296.1464537589395" X-Trace: ger.gmane.org 1464537597 12572 80.91.229.3 (29 May 2016 15:59:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 May 2016 15:59:57 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDO5LOXQ2AARB5VDVS5AKGQEQT7ICPQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun May 29 17:59:53 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-io0-f189.google.com ([209.85.223.189]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b7383-0004JA-Lm for gtp-pandoc-discuss@m.gmane.org; Sun, 29 May 2016 17:59:52 +0200 Original-Received: by mail-io0-f189.google.com with SMTP id p194sf477514iod.0 for ; Sun, 29 May 2016 08:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; 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=EHrTPymJ+FQ3S8N5Eg2jFjeRdG4LkcB+BvzvkifJpQM=; b=Rm3VDuorHzCVV+2EVEnMsUI3U0H0DDVjreYIpeSPFPLzL/DmDfryacvvXO59+/mS7r ZK2fDDaEbwCisgveBpXpdP36HjVqHHCFK/k1JGAF5dSYbAkTIeCJiW5JKwkpw2DVkyby /WbmnF0pTIsN+A0JwlFZHHiPiVCMzL2WhIajCXeocCEzMGr94STx9sat3mMVloIfL2n1 jgMuu15jfnFSrX2jbNlP5qP66Zg2kwrCuZr7KC51ZIv3a7duBFrvKARlLLQbjWtK4j0F sljBqIwbKptj1ianiuFix5czq+SS+gL75WSOHiRO+C3WXRCx3SuMhb+o+T+/x9DiILho qdEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=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=EHrTPymJ+FQ3S8N5Eg2jFjeRdG4LkcB+BvzvkifJpQM=; b=W3D+d3xXKAjmfU/fL1SaFdrYUKTQYsQOZ1LGpcrLx4Z7fMKzK/T3CufEgovoYJ586Y Cy8DUxCXrp2MqmG/6bONPIH1iE2lPoITwOMPbo8K1SkQwvtLMpfhDfb3jnszg/y20/f/ YxEI2qoNSGsXnmQZ4JsCphelPIrqYadJ/z3gKWuOV9YVVkxlqI8q/PukwSFLhz+3qNcy 7IO4Ph7BZNoY5ji1jIuyfGwYktvaxvcEahu9nLjfaYMadeRJzVmhXS/e8NvcOAyHXqCT GojstEc+HIblW2dnsrFzpfIzXBbB/Q6QxaqUQhV1d3YFxv4bzpU4Y1ftVuwCoZ3u+OcF sh2A== X-Gm-Message-State: ALyK8tJGf2E9pnSp9jVbWBCzJdE08b5ZwedXtGQcXl2DtLazZClhNAWvfoqZ06xgURVM8Q== X-Received: by 10.157.39.1 with SMTP id r1mr306335ota.8.1464537590719; Sun, 29 May 2016 08:59:50 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.43.133 with SMTP id u5ls1292111ota.60.gmail; Sun, 29 May 2016 08:59:49 -0700 (PDT) X-Received: by 10.157.35.100 with SMTP id k33mr304779otd.6.1464537589922; Sun, 29 May 2016 08:59:49 -0700 (PDT) In-Reply-To: X-Original-Sender: kurt.pfeifle-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org X-Original-From: kurt.pfeifle-gM/Ye1E23mwN+BqQ9rBEUg@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:15019 Archived-At: ------=_Part_2468_1807037296.1464537589395 Content-Type: multipart/alternative; boundary="----=_Part_2469_1064862518.1464537589396" ------=_Part_2469_1064862518.1464537589396 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am Sonntag, 29. Mai 2016 14:45:35 UTC+2 schrieb mb21: @Kurt, pandoc-placetable works perfectly to convert csv to markdown table= =20 > syntax (and any other output format where pandoc supports generating=20 > tables):=20 > pandoc --filter pandoc-placetable -t markdown > > Sorry, I did not intend to mis-represent what pandoc-placetable currently= =20 can do and what it cannot. I know it can convert to Markdown tables. But (AFAIU) it can generate only= =20 one type of table: simple_table. However, with pandoc-csv2table I can generate simple_table, multiline_table= ,=20 pipe_table and grid_table types =E2=80=94 simply by adding it into the code= block=20 metadata: {.table header=3D"yes" type=3D"grid" ....}. I tried to get the same thing with pandoc --filter pandoc-placetable -t=20 markdown+multiline_tables, but it didn=E2=80=99t work. (Maybe I=E2=80=99m missing something =E2=80=94 then please tell me.) Cheers, Kurt On Saturday, May 21, 2016 at 7:03:57 PM UTC+2, kurt.p...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org=20 > wrote: >> >> Am Freitag, 20. Mai 2016 11:39:02 UTC+2 schrieb Martin Fenner: >> >> Dear group, >>> >>> The topic of CSV support in Pandoc has come up several times on this=20 >>> list, includes this thread from 2014: >>> https://groups.google.com/forum/#!topic/pandoc-discuss/kBdJU_JktzI >>> >>> Since last year I work for an organisation that frequently deals with= =20 >>> tabular data (and helped organize CSVconf earlier this month), and I ha= ve=20 >>> done some thinking on how CSV could fit into Pandoc. >>> >> Are you aware of these two Pandoc filters? >> >> - *pandoc-csv2table * ( >> https://github.com/baig/pandoc-csv2table)=20 >> - pandoc-placetable ( >> https://github.com/mb21/pandoc-placetable)=20 >> >> Both =E2=80=9Cabuse=E2=80=9D the fenced code block syntax, assign the cl= ass .table to=20 >> the block and allow inline CSV data as well as referencing an external C= SV=20 >> file. >> >> Personally, I still prefer to use *csv2table* (over the newer=20 >> *placetable*) because I can also use it to convert CSV to Markdown=20 >> tables (grid, simple and multiline) =E2=80=94 which *placetable=E2=80=9D= currently doesn=E2=80=99t=20 >> do because it works differently (AFAIU): >> >> - placetable converts CSV to Pandoc=E2=80=99s native format directly= =20 >> - csv2table converts CSV to Markdown first.=20 >> >> =E2=80=8B >> > =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/001833c9-e40d-4079-ba79-c88c852780a5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_2469_1064862518.1464537589396 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Am Sonntag, 29. Mai 2016 14:45:35 U= TC+2 schrieb mb21:

@Kurt, pandoc-placetable works perfectly to convert csv to markdown tabl= e syntax (and any other output format where pandoc supports generating tabl= es):=C2=A0
pandoc --filter pandoc-placetable -t markdown

=

Sorry, I did not intend to mis-r= epresent what pandoc-placetable currently can do and what it cannot.

I know it can convert to Markdow= n tables. But (AFAIU) it can generate only one type of table: simple_table.
However, with pandoc-csv2table I can generate simple_table
, multiline_table, pipe_table and grid_table types =E2=80=94 simply by adding it into the code blo= ck metadata: {.table header=3D&quo= t;yes" type=3D"grid" ....}.

I tried to get the same thing wi= th pandoc --filter pandoc-placetab= le -t markdown+multiline_tables, but it didn=E2=80=99t work.

(Maybe I=E2=80=99m missing somet= hing =E2=80=94 then please tell me.)

Cheers, Kurt

On Saturday, May 21, 2016 at 7:03:57 PM UTC+2, kurt.p...@googlemail.c= om wrote:
=

Am Freitag, 20. Mai 2016 11:39:02 U= TC+2 schrieb Martin Fenner:

Dear group,
=
The topic of CSV support in Pandoc has come up several times= on this list, includes this thread from 2014:

Since last year I work = for an organisation that frequently deals with tabular data (and helped org= anize CSVconf earlier this month), and I have done some thinking on how CSV= could fit into Pandoc.

Are you aware of these two Pandoc f= ilters?

Both =E2=80=9Cabuse=E2=80=9D the fe= nced code block syntax, assign the class .table to = the block and allow inline CSV data as well as referencing an external CSV = file.

Personally, I still prefer to use <= em>csv2table (over the newer placetable) because I can also u= se it to convert CSV to Markdown tables (grid, simple and multiline) =E2=80= =94 which *placetable=E2=80=9D currently doesn=E2=80=99t do because it work= s differently (AFAIU):

  • placetable converts CSV to Pandoc=E2=80=99s = native format directly
  • csv2table converts CSV to Markdown first.
=E2=80=8B
=

=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/001833c9-e40d-4079-ba79-c88c852780a5%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_2469_1064862518.1464537589396-- ------=_Part_2468_1807037296.1464537589395--