From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18090 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Pablo_Rodr=c3=adguez?= Newsgroups: gmane.text.pandoc Subject: Re: filter for ePub footnotes Date: Fri, 25 Aug 2017 19:40:22 +0200 Message-ID: References: <2665838a-f621-7d7d-8646-de7f780f4121@web.de> <20170823141730.GC22331@Johns-MacBook-Pro.local> <7d399a63-4157-0898-c88d-23a9d85c45de@gmail.com> 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 1503682831 28540 195.159.176.226 (25 Aug 2017 17:40:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 25 Aug 2017 17:40:31 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCD6NVO5UINBBDGCQHGQKGQE5CFGOMY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Aug 25 19:40:24 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wr0-f191.google.com ([209.85.128.191]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlIak-0006wa-JL for gtp-pandoc-discuss@m.gmane.org; Fri, 25 Aug 2017 19:40:22 +0200 Original-Received: by mail-wr0-f191.google.com with SMTP id a47sf119567wra.1 for ; Fri, 25 Aug 2017 10:40:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1503682829; cv=pass; d=google.com; s=arc-20160816; b=k4xh93TzCkWTDzeHz6Fn0VYbSRshxxiN31tgqdZnF3tmUAlVBRgXYIIyXOFznZf7RA AlViiwFM9a7Jk9I5r52cLSshyPMmjlKAopiMKJ0Fj9csJdA/is4CU9v4ERbfyGBbA/of kyelNzl7RjlAn5NAgUt6jlkns8tD4lS6cZ+KEjwMYUr+AV1nrWjUAs2KMZYepl9lkrAy deoFkuzZome1H2UGpc30o8QKY3weJ2nw7asxhkOI0obX6OTOL5D3d4y4L6pKzUpdJWwX aSbvsUsuabaxAJWUx/J8/fPz4RzI1rnPmMjez60Jo2vCqc22dr56tPEFEhq54N38OP19 OSFA== 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:user-agent:date :message-id:from:references:to:subject:arc-authentication-results :arc-message-signature:sender:dkim-signature :arc-authentication-results; bh=DK4nN6qlFjUw80dQuv6ITJ24cN9d/FJZf6hdf2TzLlw=; b=fXyCcG3uAXUHd0Xq4X5XTwXReOWiH6qxoSHkKQ5njoonofJUCPjRGt3nxzxook8n6S xNz+SjBoyQ5TFG9+9yzfG2OT895izzqHZ3Bh4MqUjuG9r0dbqetgjj/XbQlMwZ7GOtbp RNpBle8RNMl4ACAyat1JM7J+NIb0aS9LjUOSB4H9knqOqK+RB1h43XIirS4HgFqBsqjP gc1JVT67SQAgsdPVXxXogPDUqHfJIGjNKY0aQjf6u8f3m5px9f3G3Ev3xszyEo2IeCH/ pzqKtnqcjulBOz/Oqbs40RHlrH07qd0kBfi9JY44ooT1h ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of oinos-S0/GAf8tV78@public.gmane.org designates 212.227.15.14 as permitted sender) smtp.mailfrom=oinos-S0/GAf8tV78@public.gmane.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:user-agent :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=DK4nN6qlFjUw80dQuv6ITJ24cN9d/FJZf6hdf2TzLlw=; b=Vu/Jvn/EkOics7mFCPpeCAqhjJv4U2OwYPAWKegpeZJB0sWH/JpukTKQyvAmWPY4Tg 4w5TlPMwe0DHaY8zOh8Kch8T9TkkTdtU/0jBMmAhFt38nXm+xEcODNBlMwc1S/En97/L 37+Gr5gI8/8dCQfWEoVpPa8y896nKKTK/H/gQxZ38x1JP9iVY4ANcWgnx0LM2ChUbYtC 7Nz3qsEzBjqHbYCN5GawWbgXakqlBC8ZYzQbRXi3k7H75elVUQHR4cK0TOqBY4B7T+1G AitqMVgtLNxJAmcmQbrtSaYYybAKZPOLy08RxHtoY3tj9+F8BnvOth3PHdn7x+ZUP9C6 pYKA== 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 :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=DK4nN6qlFjUw80dQuv6ITJ24cN9d/FJZf6hdf2TzLlw=; b=luL63CRS7EN7RCJV56JigXlQ7b5UsrMDPYM5UwZZSaRV5/j976RfZQCxrQprfNacdA Zxbe5F9GwBOdUrA5s4BahO5tUMFWm/UPrLk6Ynw+84BqqdqMuJvkJSjcsDvCY3ce6Y29 nu+hR/Jp2acd4R5gLvKoi9X5J19wGw8CcXuFEkxya+sXD+tvEbHrS79cjUUKyMnS8NB1 e2fxYKG9WE7h04wEZdAr3GaXQmxUtZXa6p4vzUIXgvo8LLEI59O4Lz8b2Rw2naiDnN5B 3hCBTbLCEMqLuFzOKrHBQo9dM3NwJqChjWc2 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AHYfb5jCKkR7m9QyBwTqjouboJhskD9fnMTYtvv2vOndtXdYvE7lLEWh b8cwlIrqgAqg6A== X-Received: by 10.28.184.143 with SMTP id i137mr6787wmf.13.1503682829650; Fri, 25 Aug 2017 10:40:29 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.28.152.6 with SMTP id a6ls310543wme.17.canary-gmail; Fri, 25 Aug 2017 10:40:28 -0700 (PDT) X-Received: by 10.28.150.195 with SMTP id y186mr233673wmd.26.1503682828328; Fri, 25 Aug 2017 10:40:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503682828; cv=none; d=google.com; s=arc-20160816; b=BPuoPrrEWHBU9qW2dIYsiHeU7+qjqM8GbbuUdfvMRcC7LGvDa3QzhX9yWnbiBgjt70 hNJ/pmJwRFW6/F+2NbKcbwl3PWHFToBWmVhNqkf7oGZldApJdQ3sYQzRaZEhthx9kWFR Uyy2k0sJb8Zn3m+tDt4tsBltMcZXYuBXqgZaA69gCrf+7/gYEwgOQeJ2XIroeOVZETLM jj0a6rgfmaADesm4RTxdnOD1xklgqRJDFKv75UESqNfk/x6FxcBgydOCY9jY5a45+MRy LnQ6U+c5MH2bw5v62g1BKYRl99X1Wsw+kPlm6aKY4kkuYci5pN5K3etLLn5lyb5ClEd8 D9Iw== 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=4cDTEm2hgSuS/u3OGJikeux93WCEPrgOxpen8OQcNyo=; b=yPOIZ4zVqRbJMQloSImXNdpoDV8dxvPSjKi8ytpG5Z4iXph3VnMMujRTligF63pZJl 2ISB9tBJXuZK4i1IEiyvsrcVdrhJuhCp+iXNySOzs+1b/yN5sJBz7UPgShX5JaKW9xr9 YD4YMZEjKyIs0g4b418oddCchPQqo8KOgoYB5G7Iyl/QQSQ4HWWOgFhbK23VNG41f7jE TGZR4QCSCGh/P7Vg/K884y11dib3Mn5tFG93jUd5uB0y1MyzynDY/b6bGmyfBTdlD/LY P6U7McTqF4X96J6poEIiYoCxIGYuVqaAa6LH0dQzhb9lcBMcWWOOUxAWiLnPfyyRpF4k oO/w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of oinos-S0/GAf8tV78@public.gmane.org designates 212.227.15.14 as permitted sender) smtp.mailfrom=oinos-S0/GAf8tV78@public.gmane.org Original-Received: from mout.web.de (mout.web.de. [212.227.15.14]) by gmr-mx.google.com with ESMTPS id p65si124093wma.7.2017.08.25.10.40.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Aug 2017 10:40:28 -0700 (PDT) Received-SPF: pass (google.com: domain of oinos-S0/GAf8tV78@public.gmane.org designates 212.227.15.14 as permitted sender) client-ip=212.227.15.14; Original-Received: from localhost.localdomain ([151.182.109.70]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LnS3i-1dKWMH3HA6-00hepc for ; Fri, 25 Aug 2017 19:40:28 +0200 In-Reply-To: <7d399a63-4157-0898-c88d-23a9d85c45de-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Content-Language: en-US X-Provags-ID: V03:K0:zr1hjQVr2fIGgdBSObuuY4KlIxbMwwTQQZbE4zPVJci2XpQ6pUc Wio7c6WkZrnmyMsbCe2u6ioEMCUARk9iiOCgjPVpi4YUe2mfNUxCOVP2V6qt/2Axazw6YPc LFK5inCifC1XzTRB0TtUQOs7EpQ2YFsfOAE/CPz/HXMy4i410Yqmed2DDT0NMubP5VBeV/M O+Rdpqe9VWCmQ8+LGyu5Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:SjHl+6IAlwo=:NAie3k/9ahTYsmTzCdAVTu bsWz+sXQorFsW3uOML9yXcRXFUhhKOhl1R1/RmSI5AaF7PqMfI0JhM+6ZXbbTTZpRpkXB3HhD 5C+MSTsDAj3uFmUtzdebMNiEAQUrKDAMfOh+uj0fw26SgcPNQ+ZXiDE+wK7s94gg7q5UlY28Z OxwqRD8MgmjbVeLyzrBnnIJiPSQ4VpDzv5EcJZP3+v3pezLtnJZa97njrTXbO0i/wQ5d7SVfG gU24epsMRCfPqdy42rHZ3xQ1i8EiR8HOJDrO+npCi1bYhRDey7u1Y2UswTHN6RnqRFNhmhAuE 74kS0Lw/GJJb7ZaoNwYgwa6MHmiNvuCySli+8p6wpTTVyNeQSAmztm58RSKjjC5ePW66o2ASu mRmQpDNpUTJnrXXImRUND4qJY27ZPQxrRZqINAl8ClUlQubGcQAPb3vzbPcOVkoIwIYabUmNB wHAUg4pvBZpzL6XbHbeVud+FG+2/d7oJ5WoNyuNWDSCmEcrjO3NtsCfAuDXZqKvHXqs3sdhCZ 5AkG5VRTVttwnzvxhdlnYJQKEieo/TDfBZHocD6HdlAsapVTyZvlceOSS2+TDfVVpjIROmD9Z +n3eU1EYIz+0n6C1Ti3MqM9LXtkywwcoIqohuB8CYoV57RORE7u406qNAG7S7YCMbHtWtIT2Z dhBBslU2YvjgZU1pUaXfGK5ESnKnTy8hsY8sTp/+45JE4feXrd00FuBLu0V+aVQ5aXAevro4d UxOdLni8w90TpbDWFGZWIzboH3Rx2x1P3LkZKMa6qsxXu3qN+gp+j3oz7f7xvT9yKL3oGDYH X-Original-Sender: oinos-S0/GAf8tV78@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of oinos-S0/GAf8tV78@public.gmane.org designates 212.227.15.14 as permitted sender) smtp.mailfrom=oinos-S0/GAf8tV78@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-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:18090 Archived-At: On 08/25/2017 07:06 PM, BP Jonsson wrote: > 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. >=20 > I once wrote a filter which intercepted all notes and replaced=20 > them with a note reference with a link to a div somewhere else in=20 > the document which contained the note text, in an item of an=20 > ordered list, with a link back to the note reference, > i.e. essentially the kind of structure which the HTML writer=20 > creates for links, except that you could put placeholder=20 > paragraphs anywhere in the document which were replaced with a div=20 > containing a list with the text of all notes since the last=20 > 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=20 > table and the notes numbered alphabetically rather than with=20 > 'arabic' numbers. There were no Note objects at all in the JSON=20 > returned to the writer. It could easily be adapted to use Unicode=20 > superscripts if desired. I=E2=80=99d be extremely interested in that filter. I must admit that I don=E2=80=99t understand everything. But if I can place= the div with the all the notes text right after a #footnotes element, this would be really awesome. Many thanks for your help, Pablo --=20 http://www.ousia.tk --=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/e2accbab-d880-3232-4c39-1e1ad3d4d9a1%40web.de. For more options, visit https://groups.google.com/d/optout.