public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Nizamudheen Ahmed <nizam.ahmed-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Pandoc Python filter + Table constructor
Date: Mon, 13 Nov 2017 11:38:04 +0530	[thread overview]
Message-ID: <CA+zEWHBcdnzHekVNY3Tdi4qZCkwbgqt4PWAQKYXOzyXmHtAn2Q@mail.gmail.com> (raw)
In-Reply-To: <ae54a6c7-f694-4337-87d6-15178ab3f18d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 2460 bytes --]

Thanks Kolen. I will take your suggestion forward, and keep you posted.



On Mon, Nov 6, 2017 at 4:33 PM, Kolen Cheung <christian.kolen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:

> Interesting. I think panflute would be a good fit. Try reading the
> panflute documentation first. There’s an example on csv table that can show
> you how to manipulate table elements. You can also checkout the source of
> pantable.py, which is inspired by the csv example, and is more
> sophisticated. Other examples in the panflute documentation also shows you
> how to capture a certain elements (possibly with attributes) in general.
>
> When writing a filter, sometimes it is useful to see the AST of a MWE.
> Pandoc has the native and json output, while the filters see the JSON, the
> native is more readable. panflute also has a helper script (I think in the
> panflute filters repo) that can print the “panflute AST”, which will even
> be more useful if you use panflute. (panflute basically parses pandoc’s AST
> into its own using OOP, or in other words, a representation of pandoc’s AST
> using Python objects.)
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "pandoc-discuss" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/pandoc-discuss/OBlbFj5HJ9I/unsubscribe.
> To unsubscribe from this group and all its topics, 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/ae54a6c7-f694-4337-87d6-15178ab3f18d%
> 40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BzEWHBcdnzHekVNY3Tdi4qZCkwbgqt4PWAQKYXOzyXmHtAn2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #2: Type: text/html, Size: 3732 bytes --]

  parent reply	other threads:[~2017-11-13  6:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-04 15:34 Nizamudheen Ahmed
     [not found] ` <1be02d85-bd95-4709-82f8-f6a5460930c6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-04 19:34   ` Kolen Cheung
2017-11-04 23:05   ` John MacFarlane
     [not found]     ` <20171104230532.GC97257-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2017-11-06  4:15       ` Nizamudheen Ahmed
     [not found]         ` <CA+zEWHCd+EGXRoWsJcxk0hb_fn2JpWsmVuCnmKJz5ge6FzFCjw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-06 11:03           ` Kolen Cheung
     [not found]             ` <ae54a6c7-f694-4337-87d6-15178ab3f18d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-13  6:08               ` Nizamudheen Ahmed [this message]
     [not found]                 ` <CA+zEWHBcdnzHekVNY3Tdi4qZCkwbgqt4PWAQKYXOzyXmHtAn2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-14 11:26                   ` Nizamudheen Ahmed
     [not found]                     ` <CA+zEWHBp2oiKbUVih9nM-LjVv_Kxti6t7uZ356_ScAdxkMMzUg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-12-11  7:51                       ` Kolen Cheung

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+zEWHBcdnzHekVNY3Tdi4qZCkwbgqt4PWAQKYXOzyXmHtAn2Q@mail.gmail.com \
    --to=nizam.ahmed-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).