Quote:
Originally Posted by roger64
As you said, the problem lies with these 5000+ endnotes. They use a "classical" code. As I have only one code example, I can only suppose that they do not link to each corresponding individual endnote paragraph but to the same and-huge-endnote folder.
|
The Churchill endnotes point directly to the correct location/ID:
Frontmatter:
<a href="../Text/chapter028_notes.xhtml
#ch28_3" id="ch28-3">3</a>
Backmatter:
<a href="chapter028.xhtml
#ch28-3" id="ch28_3">3</a>
Just the thing is, it's just one giant <p> with individual <span>s.
Quote:
Originally Posted by roger64
If one wishes to target each individual endnote paragraph from each anchor, it seems necessary to rebuild all the links for endnotes.
|
I don't see why.
You'd just:
Find: <span class="strong"><a href="chapter
Replace: </p> <p class="endnote"><span class="strong"><a href="chapter
Then Prettify, and bing, bang, boom, every endnote is in its own paragraph. All links would still be the same/working.
Quote:
Originally Posted by roger64
[...] but would probably need to be simplified or cleaned (unified?) using regex.
|
Normalized. One of my favorite terms.
Quote:
Originally Posted by roger64
Also, I know that for over 2000 notes, once the links have been created, one has to split the endnote folder in two or three parts. With 5000 (!), it would be more.
|
Depends. Right now:
- Each chapter's endnotes are split into its own files.
- 34 chapters, 34 endnote files.
- Footnotes are split into 5 separate files, with some chapters combined.
In total, ~673 KB of endnotes + ~135KB of footnotes.
But once you strip bloated code, you can usually squeeze notes into a single file.
But yes, in this case of
this many notes, individual files are great. :P
Side Note: For example, that history book I mentioned above? One of the very rare cases I did separate notes files to stay under the ~300KB filesize limit:
7 chapters, ~430 KBs of footnotes. 1 normal chapter was even ~40k words (~350KB), so I had to split that in half.
I think I've only ever done 2 or 3 books where I had to do that...
Quote:
Originally Posted by roger64
If it was made working, the display of the individual notes numbers in the anchors would probably not be very nice. [4795] really? A bit distracting. We would have to use a smallish font-size...
|
Yes, this is also an issue that came up while I was typesetting the physical book:
The author originally had per-book numbering—1->1900.
I suggested going with per-chapter numbering—1->### + 1->###.
That "one/two character difference" saved so many pages, plus made the text much more readable. In later chapters, you had the absurd superscript 1000s taking up huge portions of the actual lines!
- This is an example with two footnotes.1008,1009 And two more.1010,1011
- This is an example with two footnote.[8][9] And two more.[10][11]
- This is an example with two footnote.8,9 And two more.10,11
Luckily, this Churchill book, they made the sensible per-chapter choice. :P
Quote:
Originally Posted by Hitch
Crap, now I'm going to have to dive back into this file. I know--I know, because I had an argument about it with a customer who wanted all this fruitcakey footnoes+endnotes+author's notes (WTF?) stuff--that Churchill has non-working, non-fuctional notes. I forget what it is now, dammit, but either you get to the Endnotes and then can't get Back, or something.
|
I believe you.
A potential hickup is the footnotes chapters are marked as non-linear in the spine, so perhaps that was breaking the jump back/forth.
Quote:
Originally Posted by Hitch
I SWEAR, there are more unworking things, in Churchill and Notes, than are dreamt of in your endote philsophy, Tex!
|
Sure, sure, whatever you say.
Another thing that could've happened is maybe you have an older version of the file.
Was an updated one released?
From the metadata, looks like the book was released:
2018-09-19
but in my actual zipped up files metadata, I see:
2018-10-04
Although that could just be an artifact of when it was DeDRMed.
(I dug through the EPUB's metadata and couldn't find any info on a tool, version numbers, or when files were created.)
But maybe you purchased close to release and got some awful 1st copy. Don't most of the stores stick you with one whatever version was latest at the time of purchase, in order for Highlights/Syncing to stay in tact?
Side Note: A while back, when I reported that wrongly-marked-language ebook, I was made aware that Kobo does this too!
He told me the version on their server already had my error fixed... and the only way to get the updated file is to inform Kobo so they could update it on your account! ABSURD!!!
I want the goddamn latest version all the time. That's how it was when I used to purchase+download from B&N. (But they've since gone completely down the toilet.)