From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29266 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 05:23:56 -0700 (PDT) Message-ID: <68257f93-0fd1-46a1-9e99-46d6045dc4b9n@googlegroups.com> References: <349480b0-92cd-450f-abc0-f3d65140d23cn@googlegroups.com> <23e0bec1-2642-49d7-b6d5-d440caf74fdcn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_834_305533058.1632227036073" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6588"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCT6LC6Q3QDBBXE5U6FAMGQEZQP3H7A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 21 14:23:59 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f63.google.com ([209.85.210.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mSeoY-0001Qy-TD for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 21 Sep 2021 14:23:58 +0200 Original-Received: by mail-ot1-f63.google.com with SMTP id i11-20020a9d53cb000000b00538e5ca17d6sf45592415oth.18 for ; Tue, 21 Sep 2021 05:23:58 -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=zgHHiQ5UQhNrbUYGggoGjZScEUuZO2mbMQDROq7wqEc=; b=TQCg0A2/8X9Ebx5500BLF+lcBJmRfvjvsYsLlORhH8YEyWx+cSnG0aHABF6gzvfCK+ lv7MJdty86MeIMKDjFdYeQIE3wtMkzPeT+4uSlsVrrhi3ytKAtVcSUFEoTLuygU5sBuj E15UwqJIyHzBt3XMRz6xo8DIDhFrKGGd5rzhdQAgSqRM47n1mH34UwYyiDMZ2H07m5fS gkATBT/cTr+YNtr6sLV+xP5GKX0RLYWFvrVyx7WOooQCyUQZjkB8OypyGFPkyGRmVK1G 953VwaJ+V7s00lWBlNHkKDjemdmrFE3U0oLZkWuHDlmxOI9vfyBNBFOfdQ7uu5hISzcU n18A== 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=zgHHiQ5UQhNrbUYGggoGjZScEUuZO2mbMQDROq7wqEc=; b=E8tdSh6tBlb2VZjoqeZYRR3BnIuqws4TV5ID7Tqp8qYRXLrn361Dbh43VVVnhVIrbc RxqsgDyK6ccpGkg1JnQsLQpCbP7vEtMRVBUtr4bj4iQTeEGFN/QaNMzb14eB9VOUwjIy gwe1ZTrJQMtSaOizwQPIhBb21OyQjDsx57tgxiXcxS4KfDLoGgyqlkUCwzeQXe1XBXyX vm27rk4woOI2sXYzy9wMTRMi/Tm8IvntylyOv6Hqzu33Rg+yaxhiwCr5wdaO+RoWJHUX Y/npCeLCK0L/xASdlYdQH7X80VlrcbeB4RhNvZwuG8vTo20lW9xThQ/wJa2LywOlsmmo RU/A== 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=zgHHiQ5UQhNrbUYGggoGjZScEUuZO2mbMQDROq7wqEc=; b=YW55IIsVTx9s3fL4chRZBavrNPkvCxi3MMVe9Akg4iu0dOzgwUwUBWK1vlgeRLz2XM oBmuDJMn3O60rnuBWin+eaZ5NpUpFFkgeaivrdAnhyLoWyclzfWpXal94OjvPgEGeM+D l7s5uK40dMJlEt4enFZyez/BETddyz3ggGfifrV072kMTFiGhJNyvGn46C3Mx9GxxSwW 7qRF70kJVchjdD95W7KXT7ti8FxBglK6GlXxI/CxP9Gdq31+/iLEjOJ6GPGckoSl4Wks eMRUAtCn3wKULU/IGkNIfV1YJ+AMrBDTC6HpRS6JeqBFzp/SGO6Lo5Q8gd+SJ8G6zhbP kPeQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531VViKIdEDGaHQ2011hEFKzE5VdhSNMMgbWVy4eoUDTOtiB7ZsV 54O+myw4OqCvSCj0SeOGh/c= X-Google-Smtp-Source: ABdhPJzgfAcmkPnqs3+9xVPtuqp11/igVPtKPD7zNk0Y1nVf0JRq9D2MI0McHweOv/t+DgVco0ohMg== X-Received: by 2002:a05:6830:2904:: with SMTP id z4mr26459829otu.121.1632227037847; Tue, 21 Sep 2021 05:23:57 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:f0f:: with SMTP id m15ls5930850oiw.11.gmail; Tue, 21 Sep 2021 05:23:56 -0700 (PDT) X-Received: by 2002:a05:6808:1148:: with SMTP id u8mr1303885oiu.33.1632227036598; Tue, 21 Sep 2021 05:23:56 -0700 (PDT) In-Reply-To: <23e0bec1-2642-49d7-b6d5-d440caf74fdcn-/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:29266 Archived-At: ------=_Part_834_305533058.1632227036073 Content-Type: multipart/alternative; boundary="----=_Part_835_1459258087.1632227036073" ------=_Part_835_1459258087.1632227036073 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ok, after some more reading, I'm still unsure how to proceed ; and I=20 actually don't see how I could to that with a filter. I have dumped pandoc's native output format ; and the character I need to= =20 replace is not part of it. I guess it is added at the time of pandoc's=20 writing the output document. I don't know how how I can replace that character. Hopefully there is a=20 pandoc setting I can tune so that I won't need to replace it at some late= =20 stage. On Tuesday, September 21, 2021 at 10:42:14 AM UTC+2 Vin Cent wrote: > 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 do= es=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 thi= s=20 >> is a backlink to the text. >> >> AR UDJingxihei ; Kobo UD Kakugo ; Kobo Tsukishi Mincho : display orienta= l=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 i= n 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/68257f93-0fd1-46a1-9e99-46d6045dc4b9n%40googlegroups.com. ------=_Part_835_1459258087.1632227036073 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ok, after some more reading, I'm still unsure how to proceed ; and I actual= ly don't see how I could to that with a filter.
I have dumped pandoc's = native output format ; and the character I need to replace is not part of i= t. I guess it is added at the time of pandoc's writing the output document.=
I don't know how how I can replace that character. Hopefully the= re is a pandoc setting I can tune so that I won't need to replace it at som= e late stage.



On Tuesday, Septemb= er 21, 2021 at 10:42:14 AM UTC+2 Vin Cent wrote:
Sorry for answering myself. I have= RTFMed a bit in the while.
I actually hint this can be simply done wi= th a LUA filter.
I will try to implement it as a self-exercice and repo= rt 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 w= ondering why footnotes show a backlink to the original text when I display = the document in calibre, and why they do not when I display the document on= a kobo reader...

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

The backlink character, copied and pasted from the .e= pub document itself, 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 re= ndered by kobo.
2. Change the default font of the document to one= that has rendering for that character.

I have tri= ed all available fonts on my device. There are actually three classes of th= em.
(Listing them all below, this might be of interest to somebod= y in the future)

Avenir Next ; Georgia ; Kobo Nick= el : these fonts render absolutely nothing for that character, leading the = human to believe the backlink does not exist. It is present, clickable, jus= t not rendered.

Amasis ; Caecilia ; Gill Sans ; Ma= labar ; OpenDislexic : these fonts render "__" for that character= . I find it "better" than the first family, but still not great. = It is not obvious for a non-tehnical human that this is a backlink to the t= ext.

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

Therefore, I tend to favor the first solution. Do you guys know= of a way to customize the "backlink =E2=86=A9=EF=B8=8E" characte= r 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/68257f93-0fd1-46a1-9e99-46d6045dc4b9n%40googlegroups.= com.
------=_Part_835_1459258087.1632227036073-- ------=_Part_834_305533058.1632227036073--