Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-07-2021, 06:11 AM   #1
fourcrosses
Junior Member
fourcrosses began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2021
Device: Kobo Forma
Post Foot- Endnotes are too small. [Editing epub/script request]

Does a script exist that replaces/enlarges the number/letter indicating the footnote to cover the whole word, meaning you can simply tap the entire thing and be taken to the appropriate page. I've done some research on scripts, similar threads and tried to do it manually but it seems too complicated, I haven't found clear instructions. Also doesn't seem like there's a feature in Calibre.

I wonder if anyone else has trouble actually tapping those little numbers. It's annoying to be taken to a different page instead of the footnote, I've got no issue tapping a word instead of in-between two lines. It feels like most people would prefer tapping an entire word. It also is something that could be done in script.

Sorry if I posted this in the wrong place.
fourcrosses is offline   Reply With Quote
Old 08-08-2021, 07:46 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,093
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
You would need to edit the ePub and adjust the tag <a> location.

Example:
Change:
<p>This paragraph has a footnote <a href=“notes.html#ref1”>1</a>.</p>

To:
<p>This paragraph has a <a href=“notes.html#ref1”>footnote 1</a>.</p>

You can use a regex to do this fairly quickly.

Last edited by Turtle91; 08-08-2021 at 07:48 AM.
Turtle91 is offline   Reply With Quote
Advert
Old 08-08-2021, 01:19 PM   #3
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by fourcrosses View Post
Does a script exist that replaces/enlarges the number/letter indicating the footnote to cover the whole word, meaning you can simply tap the entire thing and be taken to the appropriate page. I've done some research on scripts, similar threads and tried to do it manually but it seems too complicated, I haven't found clear instructions. Also doesn't seem like there's a feature in Calibre.

I wonder if anyone else has trouble actually tapping those little numbers. It's annoying to be taken to a different page instead of the footnote, I've got no issue tapping a word instead of in-between two lines. It feels like most people would prefer tapping an entire word. It also is something that could be done in script.

Sorry if I posted this in the wrong place.
Yes, I find it annoying trying to tap those infinitesimally small superscripts. I have been recommending not less than full-sized[*] to my customers for some years now, if not the bracket-number-bracket AND the word as the footnote trigger.

Hitch
Hitch is offline   Reply With Quote
Old 08-08-2021, 08:19 PM   #4
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Beside the Turtle91's very good answer, you could supress <sup> tags if they were there.

For example, if you have something like:

Code:
<p>This paragraph has a footnote <a href="notes.html#ref1"><sup>1</sup></a>.</p>
you could re-write it as:

Code:
<p>This paragraph has a footnote <a href="notes.html#ref1">1</a>.</p>
You can use regex for doing that task in a second.

Also you could adjust the font-size for the "a" element in your .css stylesheet. I.e.:

Code:
a.note {
   font-size: 1em; /* or the size you want */
}
In this case, you should add the class name in your notes:

Code:
<p>This paragraph has a footnote <a class="note" href="notes.html#ref1">1</a>.</p>
RbnJrg is offline   Reply With Quote
Old 08-18-2021, 04:52 PM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I like doing it the way Hitch suggested. It works well.
JSWolf is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
keeping small images small in an epub krommenaas Editor 3 01-17-2021 04:17 AM
footnotes (endnotes) font too small mark_e_h Conversion 0 12-28-2013 12:40 AM
602 Editing the PPP connection script ? J.C. PocketBook Developer's Corner 0 03-06-2011 10:56 AM
Request: Script wizard for automatic PDF formatting for K3 guiyoforward Amazon Kindle 5 02-01-2011 09:33 PM
Feature Request: Super and Sub Script Rootman Sigil 1 12-03-2009 12:37 PM


All times are GMT -4. The time now is 12:08 AM.


MobileRead.com is a privately owned, operated and funded community.