From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18089 Path: news.gmane.org!.POSTED!not-for-mail From: BP Jonsson Newsgroups: gmane.text.pandoc Subject: Re: filter for ePub footnotes Date: Fri, 25 Aug 2017 19:06:26 +0200 Message-ID: <7d399a63-4157-0898-c88d-23a9d85c45de@gmail.com> References: <2665838a-f621-7d7d-8646-de7f780f4121@web.de> <20170823141730.GC22331@Johns-MacBook-Pro.local> 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"; format=flowed X-Trace: blaine.gmane.org 1503680795 5229 195.159.176.226 (25 Aug 2017 17:06:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 25 Aug 2017 17:06:35 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDIY76M674FRBHFSQHGQKGQEIHDN3LA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Aug 25 19:06:30 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-it0-f58.google.com ([209.85.214.58]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlI3x-00016P-Vt for gtp-pandoc-discuss@m.gmane.org; Fri, 25 Aug 2017 19:06:30 +0200 Original-Received: by mail-it0-f58.google.com with SMTP id 190sf180517itx.3 for ; Fri, 25 Aug 2017 10:06:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1503680796; cv=pass; d=google.com; s=arc-20160816; b=U2DdV//2sidtEPKDKGbcdnpiVPRn9P+bCcxzqWTKKpjAV4/ac3Xc0YxUIzIJ4F7e+J cTdx+Kqu57kB5CI3FGJZMbk4+dhHFzOgNbVQTx0MPn17LL2zJQvLaGLxn3FgKP/G6Wf3 HoxuDG3Ae6YiiEe37A3iRO4lsaCynaCavbRKMTpVVHEwM9NnSxtAUvFm99/VHYUc2nCA t2EV1boXgvCtdrLQFEuFXZZb1xixYog9mHr13KQSN3mKi2KLug7Hnhg8cdeILNyt/1IW Y9Z2e9J42DVtiORD9JLv2B5Iv25yrJ4gJDOzCKWxsE36QA8Gi0Tesylyi6aYYc+kmh14 bDqQ== 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-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=1If5YVrpC5jODQFLwZydFN45+vk7CkD0udIcVdNi2gs=; b=VWvi8ILHXjuO9E8StSCT2wllY5c+0L+fsVJFZ4kddG0/JCnnE6umFhT0Eg6cxBLQ4G eL1734galBU/OtWiUf7IMjxGGR/Z7LnjOSW33f9Q5QxvaMJE9lunJlIUS4WNJp5Jegd7 jmj1gPr8nlMMfCs6XXO81ZAODwd4nc3pdK1i6nRYjQzwIpmcaSO9A0y0943TLCrmCBTj sqLIcSC/tZsLqDjGpMBaxLIEFdg50n0ZDvs+Q/d0mCUAHgKZHTF5CO7xl8W/+QMIDFje aViHM37ohtLtf21X7bsd8BvJarl5h2Y0Cb5uiZNMXf4481KJ7fW53UJdJBChQppXP7Ii 7A8 ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=softfail (google.com: domain of transitioning bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 138.128.164.242 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language: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=1If5YVrpC5jODQFLwZydFN45+vk7CkD0udIcVdNi2gs=; b=Ayy+MWE8AHmvkx1JWdB0aSXRYIU2G9RtDeXUbEA/zi4+HjhjB2JjY/0fe6WTFXYdnc mB8Tg4NTK5gAAP6qBO8m7y+WXbPxoKp8pATRLp0n25abUV3oJVowesJ3JSK1voakuNRB zpBCQZ1hudWrHyjbokQEiqbvrD0LfFsXf3WvDsEcCgdU8LcvC35fpiJ/yk1QWr77f+E/ 7IvQkIErZeJRynP4nIImNlvkqD9q5PYeQWdBPvWkCxnOCGNTDaRD5dlTlPfFmx5vIDji kL8tNInT+egAISjIqrIMXtV9NVoxxMK5deH7gQh9gQeFbrACup/LpT1gtPh55uHTwrBj +fNA== 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:user-agent:mime-version:in-reply-to:content-language :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=1If5YVrpC5jODQFLwZydFN45+vk7CkD0udIcVdNi2gs=; b=RYKwZlH0kAKAKcRi8aXeFzzj3A4Qcx9JNAWOA7/4h7Kk7iJZf7J1EwLePJ/Tt3IHon f0V9lM1kA7VIXxHJHjLUHqXk8oci6G0tA4xMUgQxdmaUUDCPMUsYQFaLmIYYKMF1BMR+ bwtr5yqHVagyLSNAMIbym4Vmd9xzJGOTe5LjPmSgxZ4TxHUKNY94K5QsIslu7DNsixM3 s1FJF92SXsaQdpm3Inaey+9inGqEGPAvzY7Mi7MOaHMJ6lSmEbwpOTysf5Lp6td0XvHp Uf7yewhPcx4hlJ5FZ16F7a+m5VCVH6b44FuSrbAI3NehXCaRjDuG9pzMW4xathEWoiF5 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AHYfb5i0ZUaDSLGAaL7otkdv8U1Llbu38H8YSYDMm+akgDoHiiXF6P8X 3TPH9mCaX8c2+A== X-Received: by 10.36.17.149 with SMTP id 143mr106512itf.11.1503680796769; Fri, 25 Aug 2017 10:06:36 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.168.193 with SMTP id e62ls5731403ioj.6.gmail; Fri, 25 Aug 2017 10:06:36 -0700 (PDT) X-Received: by 10.107.51.70 with SMTP id z67mr7215096ioz.117.1503680793787; Fri, 25 Aug 2017 10:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503680793; cv=none; d=google.com; s=arc-20160816; b=DbjMwEPXHxnou/OH9/Vm1OBdr9G95v0b23vOytFFdiIUFdrWfTSYgo2J3WYbj1lGH2 JvBGUpBoOzfjT8GmLCPVYgG1rIljIxdWI69/CXgegnvM4Q1RmeNxdM26o4SnTreP5Pcv h1MdLbZyeQ7RAy5pQlZK28NaaMEtqnnZ1y9YMfpvJB7tKyaOAendIv5/k8aQvA/JYIoY VA5vqyN/EFOJWsXlvokBD2DzCCkCX81syClJww5E1C2cAZtayTcw+pNkRBE3c7mU147W 91Vq9o+7yoIfb5NFw9nEQbOlLDFui9UKEw7a1Ll+z5yt/fcY6aQ9ShuynQfRKBOHZqbP 0Uew== 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 :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=iPHivsGAvtMA1/cFJaboKI/53AGw9XE4ijFxgUZ/FQo=; b=JNvk/qxXK43dJ05bAsbcpd1H+D/PIBelLEqVPFXuqkIUSkgUtH8OxtIVEZLxN99Se/ b/E42EBlcXTsML5KnYwHLfs5VQUKM57u4M4EQujPtXgD5wKxDfinhcShKA172NN0ZWhT vPQueNY3+CyittenxbM1mm46cIeQMYAXrRChyir/7VaXOMtHo9gD8h2jFsahM+QcJrUV RJZBtZOv5bTnETdtJH0Vkw8ShO8Hf1phHERy22BC8jIAX+DHGpA46180SCTLu4v7R9ut 9sskfYn0aZtsvT+mtwBSM7WDZ7dYywtXDc0JyUWSvWVbRGlxtqV7tprjbIXLy0Otq0sG bEfw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=softfail (google.com: domain of transitioning bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 138.128.164.242 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Original-Received: from manu6.manufrog.com (manu6.manufrog.com. [138.128.164.242]) by gmr-mx.google.com with ESMTPS id l6si156699vke.9.2017.08.25.10.06.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Aug 2017 10:06:33 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 138.128.164.242 as permitted sender) client-ip=138.128.164.242; Original-Received: from [178.249.150.162] (port=53264 helo=[192.168.1.6]) by manu6.manufrog.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1dlI41-004DFg-5q for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Fri, 25 Aug 2017 19:06:33 +0200 In-Reply-To: <20170823141730.GC22331-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org> Content-Language: sv-SE X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - manu6.manufrog.com X-AntiAbuse: Original Domain - googlegroups.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gmail.com X-Get-Message-Sender-Via: manu6.manufrog.com: authenticated_id: bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org X-Authenticated-Sender: manu6.manufrog.com: bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org X-Source: X-Source-Args: X-Source-Dir: X-Original-Sender: bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=softfail (google.com: domain of transitioning bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 138.128.164.242 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com 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:18089 Archived-At: Den 2017-08-23 kl. 16:17, skrev John MacFarlane: > What you want isn't a filter, since the footnote marker is > only created by the writer. I once wrote a filter which intercepted all notes and replaced them with a note reference with a link to a div somewhere else in the document which contained the note text, in an item of an ordered list, with a link back to the note reference, i.e. essentially the kind of structure which the HTML writer creates for links, except that you could put placeholder paragraphs anywhere in the document which were replaced with a div containing a list with the text of all notes since the last placeholder, which allowed me to put notes at the end of sections, and to 'localize' notes in a table with the note texts below the table and the notes numbered alphabetically rather than with 'arabic' numbers. There were no Note objects at all in the JSON returned to the writer. It could easily be adapted to use Unicode superscripts if desired. /bpj