From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18071 Path: news.gmane.org!.POSTED!not-for-mail From: Jan Ulrich Hasecke Newsgroups: gmane.text.pandoc Subject: Re: filter for ePub footnotes Date: Wed, 23 Aug 2017 18:01:22 +0200 Message-ID: <6b2c8ffe-418c-d7b2-7ea2-dbe8d93deb04@mailbox.org> References: <2665838a-f621-7d7d-8646-de7f780f4121@web.de> <20170823141730.GC22331@Johns-MacBook-Pro.local> <8adc9ebe-b391-209e-29c6-a831438b8468@web.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1503504098 13982 195.159.176.226 (23 Aug 2017 16:01:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 23 Aug 2017 16:01:38 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDO25H455QHRBVON63GAKGQEVLQYJRQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Aug 23 18:01:27 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wm0-f61.google.com ([74.125.82.61]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkY5n-0002ov-5c for gtp-pandoc-discuss@m.gmane.org; Wed, 23 Aug 2017 18:01:19 +0200 Original-Received: by mail-wm0-f61.google.com with SMTP id i76sf40246wme.3 for ; Wed, 23 Aug 2017 09:01:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1503504086; cv=pass; d=google.com; s=arc-20160816; b=tiD/uyuSxRwaUXJgurwMNdkVhBUdv7u39n26VTKTE8i01EKYMSnn7xdtLls5nqv/U3 yHMhrwN6f8Ci5iA8IZY3F+DeLADDUUcggRzuUu14FqiL1z5ldiD7+bc9B0Ck64I4E8UE pj4xL6onzR6H+uHaqWdgBN5MM6CaM9dL7fdCpAiR5ghC5O+BbJZ0CyyjHQ/J928pt4L2 by2SQKG90XzchHDFeuv1A+p3cJ15OKGNJrWTyW+CnS+9/mUMiiZoGIYPZGC+NpZniqga tMorszMlkj1L8CPct1JmqYN8jsKfY01IiadV8wOkyGUSIFD1VLYJ/dyybuHIFVBJK7iH LLDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-transfer-encoding :content-language:in-reply-to:mime-version:date:message-id:from :references:to:subject:arc-authentication-results :arc-message-signature:sender:dkim-signature :arc-authentication-results; bh=YRmVsCX1t7UJRi9XLXo6cA/YdWu05TNXk+X7Jmulf2g=; b=xhTkF+b97D43IHQxSuKgPypBhw9u4J4Vmd5/VWsBwDHEFsju68UKKt51ViLSj3EEP+ kHTKdbi2mzaXmxSZC4htrWH+SdRUtnB82jxHWngFASodSfgkHtOC9radch3loFdhY/HZ tq9REeOfsjOhFouYovvzu5MCXPisHtZ1rZKsV1NGj2Vl7ghb6JKut7ulumDCXzxlu0nu 12z10eHhf/HgBQM7ltOTZ270c9K8O89KoP2k1T1+k0ek+pJy3cME7V3T2kW4I7UkVKdv NSQhSWSAmmRphHkiRYE1pnsMg1axycp6Z7+9+96v8T1VWGj/L2xx41R8 ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=CnIkealB; spf=pass (google.com: domain of juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.60.212 as permitted sender) smtp.mailfrom=juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:subject:to:references:from:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=YRmVsCX1t7UJRi9XLXo6cA/YdWu05TNXk+X7Jmulf2g=; b=Dcn6HnSS5BTzuA7Rj/28FG28S+l4GqHdDNl2M5d9VNtRtdxUpoystClcXej9zFu1Ev utl9L2fcN9fQCguVqkqewSn9DqoiizbD8RsprP52r7XuylltzEy7ewvAy1pFzm8LV4M8 9z6sO3oFw1N+UNUJGcNEXy3U6GmYAp9ozDG5fZ9DSLC3A7CCHS+L21WStEeOx6p1RZbP Y5LheQSQ1Vd+UNrLrUDlFsAlwPXx6ikT0MRXhV8SG8d3yM/SYr0afcKwiSESay27idOf TwPGta5IQQsvotmVOORigu2zYOD1id1WzFXL2nsZiI7ygJhbzHgnDgMONyrngoBWPnsf 5Cmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-language :content-transfer-encoding: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=YRmVsCX1t7UJRi9XLXo6cA/YdWu05TNXk+X7Jmulf2g=; b=M8nS5GTseddboPt6LnrOfuGhHnVV0fnr0gNrwZJJ4AmrGZ+tfEWiTDhiUjXnOLd749 a1Ef6DBCuiGv5e0J7PmxDaBuT0+zO/U09sGtxfCJHr6JNS+Ws//hm8Os8m7xX9bofofk NdUMmjRl6eM75RZnag2U9fMXhhNDpR2p2omAkO+Y4w4zPC4DGlFDrjhYfgPVP1uIrClt hDXknVW7JN2poFqiCJkbDjyCnmgEsHez3i5GrQO9PYSbFnmbyQRiHJIWmsaiacv9fyRZ jjkcwnlc7H2g5dX5dlOsgyzXUqUWwtb3FfRhJ5JX8RQEaqX Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AHYfb5ibm/oyalPU83kYkQDVDEsn+XQtzPeI75HXQ4TbXufruVa5/7L4 HwPqvAtfhcT+Tw== X-Received: by 10.28.216.82 with SMTP id p79mr7158wmg.29.1503504086291; Wed, 23 Aug 2017 09:01:26 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.28.99.137 with SMTP id x131ls248157wmb.11.canary-gmail; Wed, 23 Aug 2017 09:01:25 -0700 (PDT) X-Received: by 10.28.167.204 with SMTP id q195mr434654wme.3.1503504085264; Wed, 23 Aug 2017 09:01:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503504085; cv=none; d=google.com; s=arc-20160816; b=teXX25OXXlCKHDN9JecAR/v89Qb9wfTR/1TE/2EQVHR5UNAEENJbLVi4K3VPACAOY1 WTCE6EkKOhT+Bnkhj0Zugrvk8eKIxlWJAZQw6ot9pqQCWzuGQXCPU4yWurlMrhIq9mhL YJtgWbx934ipkqN3lPBBD/ix1+oWraeEZODbvz4vSlZofUi5XdABVaW5sZGwHc1hXo2d EDcB7e5H9ibkh+FWK0i5CFknvwlkxRloJ0sU50Rnb5I29VOc88Gmhf3lP8Zp2e+Dpopg ysnI8H6o2iggXDhv3/RPEyWfPAZjZ6zufE+SrXspaSF1HTCKsPbLIsGY8A6fFUbt7MgE SbfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :date:message-id:from:references:to:subject:dkim-signature :arc-authentication-results; bh=G6XWWIDAzctJvJw2uwbdSM2qfEVyaGHQKG0OQDmwz24=; b=D41mjO5K9QIqoTXHcksjn4581KwrA1+p+VfTRVqnwkp1IpE+tsuNgveg2+KC8xVXA4 iPa+oxErPmTUaWAbmE6qpd5w98ZenakdozsRHXPmD9AOUbMzV8UxBwcKoam5McuqFbzb 8BnAHOuOAJgRyT3uYfcnenJh9EU0RVWi4OF9LYjpxOYPub0hVAJzAXLBF+GLNJkNME2P VuN0Uy0pxKS8akqi7A+eyftnBBCObFgGn0LUPPtKLFF1+vXC7L9jFwM24tjMpbS2hVXF UXMYv0C5x4KRldifbtWUUAzR7oOZDx5iwYnJQ2rxwhCdibZu/8trF2z0YL6yDfcoWjFj cZIg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=CnIkealB; spf=pass (google.com: domain of juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.60.212 as permitted sender) smtp.mailfrom=juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.org Original-Received: from mx1.mailbox.org (mx1.mailbox.org. [80.241.60.212]) by gmr-mx.google.com with ESMTPS id m78si319401wmg.5.2017.08.23.09.01.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Aug 2017 09:01:25 -0700 (PDT) Received-SPF: pass (google.com: domain of juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.60.212 as permitted sender) client-ip=80.241.60.212; Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id CD97E43456 for ; Wed, 23 Aug 2017 18:01:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id F_3oFC3BDQHY for ; Wed, 23 Aug 2017 18:01:23 +0200 (CEST) In-Reply-To: <8adc9ebe-b391-209e-29c6-a831438b8468-S0/GAf8tV78@public.gmane.org> Content-Language: de-DE X-Original-Sender: juh-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=CnIkealB; spf=pass (google.com: domain of juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 80.241.60.212 as permitted sender) smtp.mailfrom=juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mailbox.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:18071 Archived-At: Am 23.08.2017 um 16:35 schrieb Pablo Rodr=C3=ADguez: > 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 , >> and zips it back together again. >=20 > Many thanks for your reply, John. >=20 > How could I achieve that? I don=E2=80=99t even know where to start search= ing. 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 --=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/6b2c8ffe-418c-d7b2-7ea2-dbe8d93deb04%40mailbox.org. For more options, visit https://groups.google.com/d/optout.