From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/15015 Path: news.gmane.org!not-for-mail From: D L Newsgroups: gmane.text.pandoc Subject: Re: Markdown, tables and CSV Date: Fri, 27 May 2016 12:50:53 -0700 (PDT) Message-ID: <89d4b3da-8a90-43a1-8edf-998a77e002dc@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_1145_483975288.1464378654085" X-Trace: ger.gmane.org 1464378668 17596 80.91.229.3 (27 May 2016 19:51:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 May 2016 19:51:08 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC3LLYX4XEDRBHWKUK5AKGQEABQTQXA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri May 27 21:50:56 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ig0-f183.google.com ([209.85.213.183]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b6Nma-0004yx-0j for gtp-pandoc-discuss@m.gmane.org; Fri, 27 May 2016 21:50:56 +0200 Original-Received: by mail-ig0-f183.google.com with SMTP id lp2sf916636igb.0 for ; Fri, 27 May 2016 12:50:55 -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=8oENWSj0hDQAOf6H7fL1PXwMBAgXgtZeCMHd0xGbzjA=; b=PncUjINaBR7vsixlSS//zCZD/oVQrNKWKnKLueDyn4EQSFhPCDc5h8cAh1LRot8VsM G5er+wWVt7sUNy0ib+SFMkfhOAvrpcSWf35p9BsHrUr7vIelGVwJTUYYbDaP30wHhVp+ SPz5fhRKxGnXe0+0a5PokU5EXjaWdh7Uns/1ahG8x1DaxQIQjDWmFskesOmHOm+mu7Lz kB/g2fKEuC+E7Or8l3mBko9ZeG2Fwjecj11mPiiCh2hyNXdrmQdXRH30DpWR3AzmsTOR aRO+4WQSMt2hN+bfpAujB29X1nqzsZyEMZ6s+uICPLxHSdY4rhrQii4vyzPMxK0a+Uux C5DA== 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=8oENWSj0hDQAOf6H7fL1PXwMBAgXgtZeCMHd0xGbzjA=; b=jW3nSSOjuzSs6cAnw9HsH3On4mS7l0ILpuFpAP/RycMyyNQUf7Kg1eKd8tsK+JYLJ6 0DjFg56J6qVgijFHeCJc5e8wPikZnUfexOtm7qaL4hzOi+Go3g4N8wo7gXjA81766rJu gW+DkRJFm6Vtu60TXGDAhrsjVA/WmdNnVRd0VuKf1//itpImbwCjX6acdZ3HDWOIb2FU +mjikozac/hyuE03kkzRAA3MszTp0JM+kdBLUrtjsri04ctlm4wQAEiLp5Bix7zRKJmf sAB36sdiqngbhrR3WsCQ2/JBtGeTV6j7T0dKsIBSJ5aRY/NFoD4ZKDvkuK/2UpfzZzw4 eUIA== 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=8oENWSj0hDQAOf6H7fL1PXwMBAgXgtZeCMHd0xGbzjA=; b=fijUo+7Mw9EGF9F7AaYg5x43YFSrCREyVbpz6PQ8wvw/CCYqFCDU4Y+9Fu0TBXOL9q FLMTvu+bnPcxKirWyKkVSFJPoMD1RLoCzmcBe1wMKdRioASTwp7ZGyEdZ3BZPWGlQHQu DFpSZYtYIyvG6KTzERSrcYwNloin/khOC3rjnWm7uuskosBg1I8Fs0zbb2mBpi4S3T6h /Sj5kBRMjE2dtZQxnWDhzDwued7JbIVdcdtUIRtllOCtCg3JlIl2y2ELZPBWz3foo5GM dC02nv7n+L1jfM9ozPe9p+kzWfczSns3ca/R/qm7gc28gFdJD2X3GNYgW8KjiNZUSbv7 dMWw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ALyK8tLR6qDiIpOv1H5PDV3GOqZDfB442aefnEKV5S30+5njvohsM1ZFQqLEUe04jUbuXQ== X-Received: by 10.157.37.179 with SMTP id q48mr248745ota.9.1464378655168; Fri, 27 May 2016 12:50:55 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.16.57 with SMTP id h54ls1018630ote.90.gmail; Fri, 27 May 2016 12:50:54 -0700 (PDT) X-Received: by 10.157.8.248 with SMTP id 111mr248211otf.16.1464378654602; Fri, 27 May 2016 12:50:54 -0700 (PDT) In-Reply-To: <20BF19CB-A2B0-4B19-A749-D750CDD89736-+Z+QprJ1jbpwFuiNLMe2Ig@public.gmane.org> X-Original-Sender: dl62505-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:15015 Archived-At: ------=_Part_1145_483975288.1464378654085 Content-Type: multipart/alternative; boundary="----=_Part_1146_373655287.1464378654085" ------=_Part_1146_373655287.1464378654085 Content-Type: text/plain; charset=UTF-8 > > I'm a novice in applying pandoc. But I'm interested in batch processing of > personaiised documents (web content and slide presentations). > This requires both pre-processing and post-processing stages in the pipeline of document production. My inclination is to leverage php (although I see that other scripting languages such as python are used). > > After playing around with different options I read in this thread I can now meet the requirements by the following approach which fits with my PHP development workflow. (a) PHP5 is requirement in Ubuntu. (b) add a php extension to my input markdown file (e.g. test.md becomes test.md.php) (c) now add php pre-processing functions to my test.md.php input file (d) run in command terminal .. php test.md.php > test.md .. to pre-process the markdown mixed with php (e) pre-process functions included in test.md.php might be (as an example) .. (f) generated HTML code returned from above function is embedded as inline code between
tags (g) another php function includes files (sections) recursively from nested folders. (h) also I'm researching how harp might fit in to workflow... https://harpjs.com/ (i) finally the personalisation variables for each run might be driven from mongodb json content. (j) I use Atom markdown editor with markdown preview and PHP packages installed This hybrid md.php approach might run against the grain by I throw it in here as another suggested workflow. -- 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/89d4b3da-8a90-43a1-8edf-998a77e002dc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_1146_373655287.1464378654085 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm a novice in applying pandoc. But I'= m interested in batch processing of personaiised documents (web content and= slide presentations).
This requires both pre-= processing and post-processing stages in the pipeline of document productio= n.=C2=A0
My inclination is to leverage php (although I see that o= ther scripting languages such as python are used).=C2=A0
= =C2=A0
=C2=A0 =C2=A0 After playing around with= different options I read in this thread I can now meet the requirements
=C2=A0by the following approach which fits with my PHP development = workflow.

(a) PHP5 is requirement in Ubuntu.
=
(b) add a php extension to my input markdown file (e.g. test.md become= s test.md.php)
(c) now add php pre-processing functions to my tes= t.md.php input file
(d) run in command terminal .. php test.md.ph= p > test.md .. to pre-process the markdown mixed with php
(e) = pre-process functions included in test.md.php might be (as an example) ..
=C2=A0 =C2=A0 =C2=A0<?php embedObject("path/to/test.csv&qu= ot;, $csv_range, $object_type, $object_style) ?>
(f) generated= HTML code returned from above function is embedded as inline code between = <section></section> tags
(g) another php function inc= ludes files (sections) recursively from nested folders.
(h) also = I'm researching how harp might fit in to workflow...=C2=A0https://harpj= s.com/
(i) finally the personalisation variables for each run mig= ht be driven from mongodb json content.
(j) I use Atom markdown e= ditor with markdown preview and PHP packages installed
=C2=A0 =C2= =A0 =C2=A0
This hybrid md.php approach might run against the grai= n by I throw it in here as another suggested workflow.
=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/89d4b3da-8a90-43a1-8edf-998a77e002dc%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_1146_373655287.1464378654085-- ------=_Part_1145_483975288.1464378654085--