public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Ulrich Hasecke <juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: filter for ePub footnotes
Date: Wed, 23 Aug 2017 18:01:22 +0200	[thread overview]
Message-ID: <6b2c8ffe-418c-d7b2-7ea2-dbe8d93deb04@mailbox.org> (raw)
In-Reply-To: <8adc9ebe-b391-209e-29c6-a831438b8468-S0/GAf8tV78@public.gmane.org>

Am 23.08.2017 um 16:35 schrieb Pablo Rodríguez:
> n 08/23/2017 04:17 PM, John MacFarlane wrote:
>> What you want isn't a filter, since the footnote marker is
>> only created by the writer.  Your best bet is a shell
>> script that opens the epub zip container, does a regex
>> substitution on the contents of <a class="footnoteRef">,
>> and zips it back together again.
> 
> Many thanks for your reply, John.
> 
> How could I achieve that? I don’t even know where to start searching.

On linux you could use sed for substitution. Personally, I would do it
with a python script, but any script language will do the trick. And
finally you can knit it together with a Makefile.

juh

-- 
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/6b2c8ffe-418c-d7b2-7ea2-dbe8d93deb04%40mailbox.org.
For more options, visit https://groups.google.com/d/optout.


  parent reply	other threads:[~2017-08-23 16:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-23 14:08 Pablo Rodríguez
     [not found] ` <2665838a-f621-7d7d-8646-de7f780f4121-S0/GAf8tV78@public.gmane.org>
2017-08-23 14:17   ` John MacFarlane
     [not found]     ` <20170823141730.GC22331-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2017-08-23 14:35       ` Pablo Rodríguez
     [not found]         ` <8adc9ebe-b391-209e-29c6-a831438b8468-S0/GAf8tV78@public.gmane.org>
2017-08-23 16:01           ` Jan Ulrich Hasecke [this message]
     [not found]             ` <6b2c8ffe-418c-d7b2-7ea2-dbe8d93deb04-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org>
2017-08-23 22:04               ` Pablo Rodríguez
2017-08-25 17:06       ` BP Jonsson
     [not found]         ` <7d399a63-4157-0898-c88d-23a9d85c45de-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-25 17:40           ` Pablo Rodríguez

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=6b2c8ffe-418c-d7b2-7ea2-dbe8d93deb04@mailbox.org \
    --to=juh+pandoc-cl+vpiynx/1afugrpc6u6w@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).