From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29264 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vin Cent Newsgroups: gmane.text.pandoc Subject: Re: epub : footnote backlink character not rendered by Kobo fonts Date: Tue, 21 Sep 2021 01:42:13 -0700 (PDT) Message-ID: <23e0bec1-2642-49d7-b6d5-d440caf74fdcn@googlegroups.com> References: <349480b0-92cd-450f-abc0-f3d65140d23cn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_528_897359651.1632213733884" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32814"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCT6LC6Q3QDBBZVVU2FAMGQEVCYYSYA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 21 10:42:17 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f191.google.com ([209.85.167.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mSbM1-0008M0-7V for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 21 Sep 2021 10:42:17 +0200 Original-Received: by mail-oi1-f191.google.com with SMTP id o185-20020acad7c2000000b0026b63b5c3f4sf38127310oig.18 for ; Tue, 21 Sep 2021 01:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=6867v9XDcXdfdQ6c2ZXXO9KdIdAY4PLDbD4I1jLHQl4=; b=rgZJqnygE5QFrbGN7TWUBWx1EJ+TIjJI4/KXIQIhHy3P4DPA4Y1NMozTA9Y2lKVPNf cw7r1DngYXxBSFF+ZaxLakxIF81w5LCU0LBq9XPKZoYCycRTm0L4Z94yNriXrynxNkxe HMpc9fzU5Nv7HzMeMDYe11dDa0kGyUCu4uVtMFpp60doGYSzO4j6SSJeE52C1/lIefg7 zF1y0PQL9Vs5mEheKftuwKREirb7PVbpqOxWgcsfwdHmPfcCTJxkyVgRoCTgrRZ0BQFQ 4EUMkZiEsXVKsa5x5dKCRwvfzuSTrzWDMGqpqMEMItoDNv6dsM8PL+1MskanZi/WXOGr RmGQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=6867v9XDcXdfdQ6c2ZXXO9KdIdAY4PLDbD4I1jLHQl4=; b=bHaZOYkkmiDlAatBpvjpFZjFd/YiYGt8nGEQQPeYB+dQChGShCZM6Qyv5R/Bu/zGd3 8c96DUf026L2rEvAQ6JNS0bIe6kKigwglEsr70JO4uUp5+sWDAdAxwbrc5Mp38pxS8gP sCYjha99Lp7vOFrI4KnC/VaIENzdKczPU+b/y1NKfH6Pkub0caex6jG88deTUP0EuMvY JUkGX/1fsC/2ecjTk71PRBh2dpOllHIUlzii/9F6PMzBtiTc1v5CW+PAZs0Q5nBF0TFb sFsiZkKVV+AJ+A555Sp+bSfZGla1GQVAG13NmUuCwYFPrZzAejfPmadU0gzDaUE3sdbd pvww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=6867v9XDcXdfdQ6c2ZXXO9KdIdAY4PLDbD4I1jLHQl4=; b=XT0lxlinA2MsGYLiK3cW18KOPuaLyjGc5/7E7bgh4bbpZRdB1KXaOKwibDVnLlLM+2 z3YImGrfspl9+9c9xogXUlRRCjGjA4gzcpUMJ7y/lBqN6FW3uA64oLFAQwlpOFkW8sJ3 DOa7pYHeANPWMBjn/hUTonkj3/Ua8tLGOdr6hAoQZ6LP5LAj9DraDXcR69yP8fJYO4GD wUvjO4bp9RDBBz/6ZbzwBYRhvKT5rFgH55YECTX+CJ5BXobzl4pxACDdPaOLaWZ3T2d4 JW9B+HqhkRw9ZfyD/S+0AmaDfD0/RrtVeZNE0tR/HTX9LRm+kMDZVbAt4fZk9VgdaXD9 YIfw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532UcxYQMw2aPuIqaR30ylZjpnTDhFc9r8DBWIXePyvQpiEJzFUd b06UA6lffCFkQhs/1T591y0= X-Google-Smtp-Source: ABdhPJyPKCKvrbkt0gjLaQDSZ0NdbbWtjoIuqIsZ2LzESSl0pHoB+llJjVIfaiOZFNFXUYRgP65ldw== X-Received: by 2002:a05:6830:3183:: with SMTP id p3mr4680564ots.380.1632213736142; Tue, 21 Sep 2021 01:42:16 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:eb0c:: with SMTP id j12ls5806123oih.0.gmail; Tue, 21 Sep 2021 01:42:14 -0700 (PDT) X-Received: by 2002:aca:5f0a:: with SMTP id t10mr2594186oib.38.1632213734431; Tue, 21 Sep 2021 01:42:14 -0700 (PDT) In-Reply-To: <349480b0-92cd-450f-abc0-f3d65140d23cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: irakay17-Re5JQEeQqe8AvxtiuMwx3w@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.io gmane.text.pandoc:29264 Archived-At: ------=_Part_528_897359651.1632213733884 Content-Type: multipart/alternative; boundary="----=_Part_529_1883006287.1632213733884" ------=_Part_529_1883006287.1632213733884 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sorry for answering myself. I have RTFMed a bit in the while. I actually hint this can be simply done with a LUA filter. I will try to implement it as a self-exercice and report the result here. On Tuesday, September 21, 2021 at 9:34:26 AM UTC+2 Vin Cent wrote: > Hi, > > I am generating epub3 from latex source. > I was wondering why footnotes show a backlink to the original text when I= =20 > display the document in calibre, and why they do not when I display the= =20 > document on a kobo reader... > > ... until I found the backlink is indeed well present. It is "just" not= =20 > displayed by kobo because the character set (by pandoc, I think) has no= =20 > rendering on their font. > > The backlink character, copied and pasted from the .epub document itself,= =20 > seems to be "=E2=86=A9=EF=B8=8E". > > I see two possible tricks here so that the link will appear on kobo : > 1. Change the character to another one that would be rendered by kobo. > 2. Change the default font of the document to one that has rendering for= =20 > that character. > > I have tried all available fonts on my device. There are actually three= =20 > classes of them. > (Listing them all below, this might be of interest to somebody in the=20 > future) > > Avenir Next ; Georgia ; Kobo Nickel : these fonts render absolutely=20 > nothing for that character, leading the human to believe the backlink doe= s=20 > not exist. It is present, clickable, just not rendered. > > Amasis ; Caecilia ; Gill Sans ; Malabar ; OpenDislexic : these fonts=20 > render "__" for that character. I find it "better" than the first family,= =20 > but still not great. It is not obvious for a non-tehnical human that this= =20 > is a backlink to the text. > > AR UDJingxihei ; Kobo UD Kakugo ; Kobo Tsukishi Mincho : display oriental= =20 > character (I think this is chinese / japanese depending on font) for the= =20 > backlink character. > > > Therefore, I tend to favor the first solution. Do you guys know of a way= =20 > to customize the "backlink =E2=86=A9=EF=B8=8E" character set by pandoc in= epub ? > Or is there a third approach ? > > Thanks, > > Vincent > --=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 view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/23e0bec1-2642-49d7-b6d5-d440caf74fdcn%40googlegroups.com. ------=_Part_529_1883006287.1632213733884 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry for answering myself. I have RTFMed a bit in the while.
I a= ctually hint this can be simply done with a LUA filter.
I will try to i= mplement it as a self-exercice and report the result here.

On Tuesday, = September 21, 2021 at 9:34:26 AM UTC+2 Vin Cent wrote:
Hi,

I am gener= ating epub3 from latex source.
I was wondering why footnotes show= a backlink to the original text when I display the document in calibre, an= d why they do not when I display the document on a kobo reader...

... until I found the backlink is indeed well present. It i= s "just" not displayed by kobo because the character set (by pand= oc, I think) has no rendering on their font.

The b= acklink character, copied and pasted from the .epub document itself, seems = to be "=E2=86=A9=EF=B8=8E".

I see two po= ssible tricks here so that the link will appear on kobo :
1. Chan= ge the character to another one that would be rendered by kobo.
2= . Change the default font of the document to one that has rendering for tha= t character.

I have tried all available fonts on m= y device. There are actually three classes of them.
(Listing them= all below, this might be of interest to somebody in the future)
=
Avenir Next ; Georgia ; Kobo Nickel : these fonts render abs= olutely nothing for that character, leading the human to believe the backli= nk does not exist. It is present, clickable, just not rendered.
<= br>
Amasis ; Caecilia ; Gill Sans ; Malabar ; OpenDislexic : thes= e fonts render "__" for that character. I find it "better&qu= ot; than the first family, but still not great. It is not obvious for a non= -tehnical human that this is a backlink to the text.

AR UDJingxihei ; Kobo UD Kakugo ; Kobo Tsukishi Mincho : display orienta= l character (I think this is chinese / japanese depending on font) for the = backlink character.


Therefore, I te= nd to favor the first solution. Do you guys know of a way to customize the = "backlink =E2=86=A9=EF=B8=8E" character set by pandoc in epub ?
Or is there a third approach ?

Thanks,

Vincent

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/23e0bec1-2642-49d7-b6d5-d440caf74fdcn%40googlegroups.= com.
------=_Part_529_1883006287.1632213733884-- ------=_Part_528_897359651.1632213733884--