05-20-2021, 11:21 PM | #31 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
- If you can count these anchors (and only these anchors), then you can give them a specific class. - You do the same for the definition endnotes (count, give a class). Mind, both counts must be identical. - Then the plugin FootnoteLinker can automatically create links for all these left over endnotes. If you provide me with a scrambled copy of this book, I can make a try. |
|
05-21-2021, 10:01 AM | #32 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
Advert | |
|
05-21-2021, 11:33 AM | #33 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
The bracket suggestion is instead of superscripting, and it's also common in plain-text contexts. In any case, adding brackets should not change at all the line spacing, if the brackets have the same size/position/etc. as the number. From the point of view of the line spacing, it doesn't matter which characters you have, they're just boxes with something drawn inside (or sometimes outside). What could happen is that a bracket clashes with the line above/below where another character wouldn't, but this shouldn't be the case in normal circumstances.
|
05-21-2021, 11:50 AM | #34 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Brackets, right inline[1] are much, much easier to tap. 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. I think it's vastly superior to superscripts and i was an adamant supporter of superscripts for a long time. No longer. Ease of use and effectiveness is my motto these days. Hitch |
|
05-21-2021, 01:33 PM | #35 |
A Hairy Wizard
Posts: 3,101
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
|
Advert | |
|
05-21-2021, 01:44 PM | #36 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
05-21-2021, 04:03 PM | #37 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Some sites do a similar thing when displaying RPNs (Real Page Numbers). Of course. Email me a copy and I'll convert whatever you need. Quote:
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:
In the Endnotes chapter: Spoiler:
In the Footnotes chapter: Spoiler:
Notes: In the frontmatter:
then in the backmatter:
I ran through Kindle Previewer 3 to test. Clicking on:
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:
Last edited by Tex2002ans; 05-21-2021 at 05:14 PM. |
||
05-21-2021, 05:24 PM | #38 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Thanks for posting the code online.
So footnotes are OK. With the aside, one can get pop-up (or inline notes). 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. Code:
Every endnote is wrapped in a: <p class="endnotes" id="chu0004795"> <span class="strong"> <a href="chapter028.xhtml#ch28-1" id="ch28_1"> This seems doable but it's more easily said than done... The code seems to allow it (count and class seems OK) but would probably need to be simplified or cleaned (unified?) using regex. 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. 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... That's all I can say... Last edited by roger64; 05-21-2021 at 05:40 PM. |
05-21-2021, 05:37 PM | #39 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Damn damn damn. Now I'm going to have to mess with it. I have work and other work this weekend--slave labor in menial garage-clearing chores that cannot wait--but I'll see if I can find the instances I'm talking about. I SWEAR, there are more unworking things, in Churchill and Notes, than are dreamt of in your endote philsophy, Tex! Hitch |
|
05-21-2021, 07:29 PM | #40 | |||||||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
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:
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:
Quote:
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:
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!
Luckily, this Churchill book, they made the sensible per-chapter choice. :P Quote:
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:
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.) Last edited by Tex2002ans; 05-21-2021 at 07:50 PM. |
|||||||
05-25-2021, 10:18 AM | #41 | |
Resident Curmudgeon
Posts: 74,049
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
05-25-2021, 04:51 PM | #42 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Maybe Hitch's version just so happened to be a super buggy release. The points still stand though... very odd decisions with the Footnotes/Endnotes. |
|
05-26-2021, 10:34 AM | #43 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
God, I really don't want to dive back in that sucker. Hitch |
|
05-26-2021, 11:04 AM | #44 |
Resident Curmudgeon
Posts: 74,049
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It seems v4 has a lot of fixed things that never should have been broken in the first place.
|
05-26-2021, 05:04 PM | #45 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Last updated 2019-10-10. Definitely looks pretty fixed up, and much better than it was on initial release:
A few degradations though:
A semi-detailed changelog between v1->v4 below: Spoiler:
Anyway, I only skimmed through Chapters 1-6. Almost everything was just overhauling code changes. Last edited by Tex2002ans; 05-26-2021 at 06:04 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Superscript issues | carlsbad | Workshop | 3 | 07-30-2014 03:20 AM |
Superscript widow's | Themus | ePub | 2 | 10-02-2012 06:17 AM |
Superscript best practices? | DiapDealer | ePub | 19 | 04-14-2012 04:28 PM |
Superscript and Subscript | ramjet1953 | Sigil | 1 | 06-13-2010 07:15 AM |
Superscript in titles | paulpeer | Sigil | 5 | 01-20-2010 08:37 AM |