View Single Post
Old 05-21-2021, 04:03 PM   #37
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Hitch View Post
I've even sometimes used a background gray shade, over the 3-4-5 chars [123] (assume a gray-shaded background there) to show the reader where to tap.
Quote:
Originally Posted by Jellby View Post
Bold, fancy font, in gray color (to make it less intrusive)
These are some pretty good ideas.

Some sites do a similar thing when displaying RPNs (Real Page Numbers).

Quote:
Originally Posted by Hitch View Post
I'm going to ask Tex to do this for me.
Of course. Email me a copy and I'll convert whatever you need.

Quote:
Originally Posted by Hitch View Post
I know, I know, I suck, but TEEEEXXXXX, can you sharesies with Roger, pretty please?
Share what now? lol.

I acquired mine via the high seas library!

As I said, only grabbed for research purposes. It was a Calibre-converted version though (oh, how that grinds my gears), so that's why I only took guesstimates at how the original code looked.

... But now that you mentioned it, I hunted down an actual EPUB. (Original is a 39.4MB EPUB, not the 11MB converted junk.)

* * *

Now, this is the true code:

Within the text:

Spoiler:
Quote:
<p class="EB03BodyTextIndented" id="chu0002819">‘Winston revelled over our success!’ wrote Brooke the next day.<sup class="EBsup"><a href="../Text/chapter028_notes.xhtml#ch28_3" id="ch28-3">3</a></sup><a class="noteref" epub:type="noteref" href="../Text/footnotes004.xhtml#ch28_1" id="ch28-fn1">fn1</a> [...]</p>


In the Endnotes chapter:

Spoiler:
Quote:
<p class="endnotes" id="chu0004795"><span class="strong"><a href="chapter028.xhtml#ch28-1" id="ch28_1">1</a>.</span> <em>CS</em> VI p. 6704&#160;&#160;&#160;&#160;<span class="strong"><a href="chapter028.xhtml#ch28-2" id="ch28_2">2</a>.</span> ed. Gorodetsky, <em>Maisky Diaries</em> p. 510&#160;&#160;&#160;&#160;<span class="strong"><a href="chapter028.xhtml#ch28-3" id="ch28_3">3</a>.</span> eds. Danchev and Todman, <em>War Diaries</em> p. 340&#160;&#160;&#160;&#160;[...]</p>


In the Footnotes chapter:

Spoiler:
Quote:
<aside class="footnote" epub:type="footnote" id="ch28_1" role="doc-footnote"><p class="EB02BodyTextFullOut" id="chu00493"><a class="footnote_return" href="../Text/chapter028.xhtml#ch28-fn1">fn1</a> Years later Brooke added, ‘I think this is the only occasion on which he expressed publicly any appreciation or thanks for work I had done during the whole of the period I worked for him’ (eds. Danchev and Todman, <em>War Diaries</em> p. 340). [...]</p>
</aside>


Notes:

In the frontmatter:
  • Every endnote is wrapped in a:
    • <sup class="EBsup">
    • <a
      • href="../Text/chapter028_notes.xhtml#ch28_3" id="ch28-3">
  • Every footnote is wrapped in a:
    • <a class="noteref" epub:type="noteref"
      • href="../Text/footnotes004.xhtml#ch28_1" id="ch28-fn1">

then in the backmatter:
  • Every endnote is wrapped in a:
    • <span class="strong">
    • <a href="chapter028.xhtml#ch28-1" id="ch28_1">
  • Every footnote is wrapped in a:
    • <aside class="footnote" epub:type="footnote" id="ch28_1" role="doc-footnote">
    • <p class="EB02BodyTextFullOut" id="chu00493">
    • <a class="footnote_return" href="../Text/chapter028.xhtml#ch28-fn1">

I ran through Kindle Previewer 3 to test. Clicking on:
  • Footnote does popup
  • Endnote jumps you to the enormous single paragraph.
    • In Sigil, cursor appears in actual note location.
    • No clue if actual device would jump there or to the beginning of the entire paragraph.

I couldn't reproduce broken/wrong links, although I only clicked on a handful of notes.

Honestly, it doesn't seem so, so bad. It could easily be regexed into submission.

And then one regex to split all those endnotes into actual individual paragraphs... that might even fix the popup issue.

I think the only real "issue" is the sheer size of this behemoth:
  • 478k words
  • 5378 endnotes
  • 292 footnotes

Last edited by Tex2002ans; 05-21-2021 at 05:14 PM.
Tex2002ans is offline   Reply With Quote