08-11-2024, 03:51 PM | #1 |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kindle
|
endnotes on separate pages - ebook
Hi Folks,
I dropped my Word2021 docx with multiple endnotes (insert>endnote in Word) into Calibre (latest ver), converted to epub. I then dropped it into Kindle Previewer and all endnotes are on separate pages. (see 3 images attached), Two questions: 1) What should I examine, and in which SW, to determine a fix? I'm comfortable with finding and fixing, and adding, small things in css. I'm better in html. Pretty tech savvy just need general steps. 2) Viewing my endnotes in Calibre, why are the numbers huge, and where can I fix please ? I suppose it doesn't matter too much, since Kindle Previewer, displays them correctly, just curious. Have spent a number of hours googling an answer, and am at the end of my rope here, so hoping for a resolution. Thanks much! Cat |
08-11-2024, 04:02 PM | #2 |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kindle
|
Yes in the css file I've changed "font size: large" to smaller, in the css file, with no appreciable difference.
|
08-11-2024, 04:42 PM | #3 |
the rook, bossing Never.
Posts: 12,325
Karma: 90943357
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Fix the styles in MS Word.
Don't use direct formatting ANYWHERE. |
08-11-2024, 04:47 PM | #4 |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kindle
|
Hi thanks for the reply. I was very diligent in using a proper endnote insert keystroke. Where in my docx file do I look for an issue?
|
08-11-2024, 04:54 PM | #5 |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kindle
|
Sorry, where in my Word style for 'endnotes' am I examining ? Would it potentially solve the issue if I just reverted to a default style for "footnotes?" Thanks.
|
08-11-2024, 05:17 PM | #6 |
Wizard
Posts: 1,351
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
We'd need to see the code for "block_44" and the code for <dl>, <dt> and <dd> in the css. Maybe one of those contains a forced page break.
|
08-11-2024, 05:25 PM | #7 |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kindle
|
Here you go, thanks. Just tried various supplied default endnote/footnote styles in word, to no avail.
|
08-11-2024, 06:13 PM | #8 |
Wizard
Posts: 1,351
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
There is the problem. First image...
dl.footnote { page-break-after: always; } It is forcing a pagebreak. Delete that tag and see if it fixes the problem. And contributing to that problem is that each footnote/endnote uses its own <dl> tag set. Whereas it would be better to use one <dl> tag for all the endnotes. |
08-11-2024, 06:23 PM | #9 |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kindle
|
You are marvelous!! Here's where I'm at right now. I changed the dl font size from large to x-small, and replaced the footnote page break from always to avoid. Is that okay?
I'd like the endnote text to be on the same line as the clickable endnote number, for a cleaner view and to reduce pages vs what the attached shows. How might I do that? Just grinning right now, thank you !!!!!! |
08-11-2024, 06:43 PM | #10 | ||
Wizard
Posts: 1,351
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
PHP Code:
Quote:
https://developer.mozilla.org/en-US/...TML/Element/dl Maybe try this and see how it works... Code:
<p><span id="note_1350" class="footnote"><a href="#back_note_1350" title="1350">1350</a></span> <span class="block_44">Harrisburg Evening News 23 Jun 1938 p18</span></p> |
||
08-11-2024, 06:51 PM | #11 |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kindle
|
Okay will remove the page break reference altogether.
Will examine the link you shared. Would I have to add the span id to every single endnote? I thought today would be day two of accomplishing nothing again. Thanks truly for being so helpful. |
08-11-2024, 07:17 PM | #12 |
Wizard
Posts: 1,351
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Yes.
If that bit of code I supplied works as intended, then you would adjust the other endnotes in the same manner. (remember to create a backup before making big changes) It should be fairly easy to change all the endnotes with a Regex based Search & Replace. How is your regex? (you are welcome ) |
08-11-2024, 07:30 PM | #13 |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kindle
|
Yes I have backups of backups thanks! My regex skills are rustier than an abandoned 20th century farm tractor. But if you have a magic link to refresh my memory I'm game!! Calibre really is a wonderful intuitive tool. I tried a couple other options, but it definitely has the least learning curve.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Make ebook pages like the real book's pages | wisdomlight | Editor | 24 | 04-02-2024 04:23 PM |
How can I create a kindle ebook with links to images and pop-up endnotes? | DocHolliday2006 | Kindle Formats | 13 | 11-05-2020 11:32 AM |
How do I make a "hidden" pages for endnotes in an EPUB? | clemens14 | ePub | 9 | 04-30-2012 06:57 PM |
Returning to previous pages from endnotes? | msmith301 | Barnes & Noble NOOK | 8 | 06-26-2011 02:46 PM |