3

I'm preping an Epub file and found an example on my reader where a footnote link rolled to the next line. E.G.,

This is some random text.[17]  After this is more.

becomes in my reader...

This is some random text.
[17]  After this is more.

I can add ...<span style="white-space:nowrap;">text.[17]</span>... (link tag removed for convenience) to force the issue, creating...

This     is     some    random
text.[17]  After this is more.

All that extra white space is because I'm using full justification. It looks better generally, but I might remove it due to problems with smaller screens.

My question is which solution is preferable? Should I force the footnote link to remain with its referent text or let the link roll to the next line with the possibility that it looks odd and may even lose context to the uninitiated (if there are uninitiated)?

  • what display dimensions is this error happening in? – idiotprogrammer Jan 31 '18 at 19:32
  • @idiotprogrammer, as fate would have it, massive. I'm on my 1600x1200 screen viwing perhaps a 1280x1024 window, two columns. The automatic kerning worked out to roll the footnote link under that condition. – JBH Jan 31 '18 at 23:53
1

I'm somewhat mystified that the reading system would put the footnote on the next line. Are you sure that in the HTML source there is no random space (or extra character) between the last word of the sentence, the period, and the number reference in brackets? One might expect these characters to run after another without spaces regardless of which line it appears on.

My preference would be not to hard code wrapping/justification defaults in the element (P? LI? etc) and just let the reading system (and the reader) do it. Or maybe specify a default for body text? For one thing, this becomes less of an issue when displays are wider and reading systems become more powerful. You don't want your publisher css to depend on the user turning justification on or off. If the user perceives that justification is impeding the ability to read the text, they can usually turn it off on settings. Handling of justification on reading systems will only improve over time.

I'd be curious what screen dimensions this issue is happening in. This is an anomaly that I personally am fine with mobile phone users experiencing if width is 600 or less.

  • I'm not as much mystified as I am annoyed. There are no spaces between the sentence period and the end of the linked text. blah.<a href="...">[17]</a> My assumption is that it allowed the roll due to the end-of-sentence period and the opening brace being a usually breakable construct in the world of HTML. I can see your point about not wanting to hardcode the nowrap and just let the sleeping dog lie. So far this issue has only happened once in my document, which has hundreds of footnotes. Methinks the issue might be rare enough to ignore. – JBH Jan 31 '18 at 23:57
0

As per my thoughts you have to move all footnotes end of the chapter or book with label and create a link in paragraph doing this you can find:

  1. Contents after footnotes which are the part of the paragraph will continue, it will look pretty good.
  2. You all footnotes will wrap inside any block label element.
  • It appears you're voting for the footnote link to wrap to the next line? – JBH Jan 30 '18 at 14:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.