![]() |
#1 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
cross links randomly become footnotes
I was crosslinking terms in a glossary.
Editing an epub2 in Sigil. Everything worked as expected in Sigil and viewing the epub in calibre's reader. Export to AZW3 with Kindlegen, view on PW-3, and most of the linked words are links that take me to that term, a few instead pop up footnotes. Cannot see any difference between the code for ids or links. Example: 3 entries below. Viewed on Kindle, in boson the link for "fermion" is a footnote. The link for "Kozuch Theory" is a jump link. Quote:
Last edited by AlanHK; 10-24-2017 at 01:50 AM. |
|
![]() |
![]() |
![]() |
#2 | |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
|
On page 21 of the Amazon Kindle Publishing Guidelines 2017.4 it states:
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
So, since the boson and fermion paras each refer to the other, they decide I want them to be footnotes.
Another great example of a program assuming you're too stupid to know what you want so they do what they think you want regardless. Anyone know a way to defeat this, aside from removing the links? Maybe if the anchor and the "back link" were in different paras, it would block this. Maybe I could put the link before the paragraph, in a div if necessary for syntax. Will try that. Or, in this book I don't have any intended footnotes, so a way to turn them off entirely would work. Last edited by AlanHK; 10-24-2017 at 03:40 AM. |
![]() |
![]() |
![]() |
#4 | ||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Tried separating the links from the text:
Quote:
Tried both div and paras. Both looked fine (no space taken by the link para), and worked in epub. But on Kindle, they were still footnotes. even though the links are pointing to the anchor paragraphs and not the following text para. Amazon no doubt again thought this is saving me from my dumb formatting. Tried putting t=some text in the link para: Quote:
|
||
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
|
Not sure if this will solve the problem, but in the aforementioned guide under Section 14, dictionaries are discussed.
I do not see what is happening as being Amazon's fault. Rather I would (and am) blaming the W3C for derailing HTML. For how long have people been screaming for a <footnote> tag? Ten, twenty years? Forget it, because social media and games get preference and they have no use for footnotes, endnotes, summaries, etc. As an aside, for correctly structured HTML, your glossary should be in the form of a definition list (<dl>). I see that Kindle understands it. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Quote:
They say: "Non-footnote links should use the format A links to B and B links to C instead." As above, I tried that and it did not work. Quote:
I care about how it looks, not how a hypothetical bot might parse it. I was using this for style: Code:
.gloss { text-indent: -1.5em; margin-top: 0.5em; margin-left: 1.5em; } Last edited by AlanHK; 10-24-2017 at 10:17 AM. |
|||
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Does it act any differently if you attach the ID to the <p>?
Spoiler:
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
|
I think what AlanHK is trying to do is make it possible for the reader to quickly jump to the glossary and then back to the text. I must admit, for that back-links are essential ... unless the Kindle has some dynamic bookmark method that can be set when going to the glossary, kind of like a finger at your place in the paper book.
|
![]() |
![]() |
![]() |
#9 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
The issue is that there are multiple types of links:
Amazon's heuristics are just thinking the AlanHK's Type B is a very poorly coded Type C. So instead of jumping you to that point in the book, it tries to be "helpful" and treat it as a pop-up footnote instead. Quote:
What happens if the ID you are jumping to isn't in the same <p> as the one-way links? Spoiler:
If you want the term on the same line, maybe you can try do some CSS float magic. Or maybe the <dl> might tell the heuristics "this ain't no damn footnote". In this case, you know that your glossary code is correct, and it is just the heuristics that are guessing poorly. I would be interested to test the Amazon footnote heuristics to its limits, but I don't own a Kindle. There has to be some distance and criteria where the algorithm says "nope, that's not a footnote". ![]() Although I suspect a non-standard solution to try to get around the heuristics would be very hackish, and could break with a future firmware update. Quote:
On your typical ereader, you may only get one/none "back". It is very easy to move forward, and go from: fermion -> boson -> Kozuch Theory -> fiber bundle But if you pressed back, you may go from fiber bundle -> Kozuch Theory. If you press back again, you would jump back to the device's Library/Home Screen. On something like a browser, they typically allow you to stack tens/hundreds of "backs". So you would easily be able to jump back/forward from: fermion <-> boson <-> Kozuch Theory <-> fiber bundle <-> [...] Side Note: Hitch has also written extensively about a semi-related problem, "Many to One" links. It mostly comes up with Indexes, but it seems like it could be a serious issue in Glossaries as well. Last edited by Tex2002ans; 10-25-2017 at 05:35 AM. |
|||
![]() |
![]() |
![]() |
#10 |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
|
I had a think about this: the solution is to use the <dl>, <dt> & <dd> markup.
|
![]() |
![]() |
![]() |
#11 | ||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Same with divs. Presumably if I put enough stuff between the link and the body eventually it would fail the heuristic. Quote:
This particular book uses some jargon, some real, some invented, and had a glossary at the back. Kindle lets you select any text and search within the book, gives you a list of hit links and few lines of text. I found myself having to page to the end of the hits (some words used many times so several pages of hits) to remind me of the defn. So I moved the glossary to the front so the glossary links were always the first search hits. Then I noticed there were "See" references in the glossary and coded them as links. Then went whole hog and coded less explicit cross refs; thus running into the issue at hand. Works fairly well, even with the footnote glitch. Can live with that if the cost of breaking this auto-footnote thing is excessive complication of the code; at least for personal use. |
||
![]() |
![]() |
![]() |
#12 |
Klak
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 174
Karma: 150374
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
|
in the last publishing guidelines amazon defines "preffered" method for footnotes as:
... <aside id="ft-1-1" epub:type="footnote"> ... have you tried to explicitly declare link as something other than footnote (from the list)? ...maybe it'll work |
![]() |
![]() |
![]() |
#13 | ||
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 100
Karma: 1204
Join Date: Jun 2012
Device: Bookari (née Mantano Reader) on Android; Kindle Fire HD
|
Quote:
Code:
dt { float: left; clear: left; font-weight: bold; } dt:after { content: ". "; } Code:
<dl> <dt id="boson">boson</dt><dd>All elementary particles can be classified as either bosons or <a href="#fermion">fermions</a>; etc., etc., etc.</dd> <dt id="fermion">fermion</dt><dd>All elementary particles can be classified as either <a href="#boson">bosons</a> or fermions; etc., etc., etc.</dd> </dl> |
||
![]() |
![]() |
![]() |
#14 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Secondly--yes, it's a problem in glossaries, as well. Same exact thing, many to one is ALWAYS a problem when dealing with how to get back. We've had someone persist in INSISTING that multiple links, to a resource that's cited in an endnote, get "back" so now we have links to/from that look like this: Link 1 from wherever in the book (outbound) link 2 from wherever in the book (later)(outbound) link 3 from wherever in the book (yet later)(outbound) Endnote Resource [1][2][3]. Honestly, I don't think that the typical user will think "oh, right, that's my second/third use of that reference time" and know which of the bracketed links to click. Spoiler:
Whatev. Unless/until there is bonafide separate footnote coding, I don't see how this is dealt with. There are many perfectly valid reasons for backlinks, unrelated to footnotes. Hitch |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Links in footnotes don't work | Tindomerel | Amazon Kindle | 4 | 08-08-2016 03:36 PM |
Touch Normal links becomes footnotes links in epub made with Calibre | il_mix | Kobo Reader | 15 | 08-10-2014 01:19 PM |
Clicking on footnotes or other section links? | Robotech_Master | Kobo Reader | 7 | 05-01-2011 03:08 AM |
cross compiling links | dent | Kindle Developer's Corner | 1 | 02-07-2011 08:42 AM |
Book Designer trouble with footnotes / links | maggotb0y | Sony Reader | 17 | 02-14-2008 01:04 PM |