![]() |
#1 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 484
Karma: 5277078
Join Date: Oct 2009
Location: UK
Device: Kobo Clara HD, Boox Poke 2, PocketBook Verse Pro (634)
|
page break numbering - please explain
I am hoping this is the correct section in which to paste this question, which is almost certainly very simple, but I know next to nothing about html and epub coding.
I have noticed that I have quite a number of books where the html has coding in it like this: <?pagebreak number="2"?><a id="p2> Often this coding can be found in the very middle of a sentence. Some reading apps I have seem to ignore the coding and present the text correctly. However, others leave a space in the presented text where the coding exists in the html, thus presenting a sentence looking like this: They came to bury poor King Edward, trundling handcarts over the cobbled streets or carrying tuck boxes like little coffins. My guess is that it is some form of coding which certain reader apps do not understand, but I am probably completely wrong. Can someone explain to me in very basic terms what is going on? Thanks |
![]() |
![]() |
![]() |
#2 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,303
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
My guess is that the <?pagebreak number="2"?> tag is your problem. That does not appear to be the standard method/tag to indicate a page number. Perhaps it is a software/reader specific tag??
In ePub3 it should look something like: Code:
<span epub:type="pagebreak" id="page24" title="24"/> I would do a search and replace to remove all instances of the <?pagebreak?> tag...of course, make a backup first just in case... ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,303
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
...also.... make sure you don't have some kind of CSS that forces a line-break on your <a>. That would look something like: a {display:block}
|
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Unless you have epub3 books and a reader or app that supports epub3 books, you can ignore these tags. (There are also some ADE epub2 books with print page number support that might use these tags, but they're relatively rare.) For more information on page numbers, see the Page numbers Wiki entry. |
|
![]() |
![]() |
![]() |
#5 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 484
Karma: 5277078
Join Date: Oct 2009
Location: UK
Device: Kobo Clara HD, Boox Poke 2, PocketBook Verse Pro (634)
|
Thank you all for your replies, you are wonderful.
The stock reader apps in my various ereaders (Pocketbook, Kobo, Tolino, ES ProHD) have no problems, but non-standard reader apps such as Koreader, Coolreader, AlReader all create a space in the text matching the space of the coding, so I guess they are not fully epub compliant. In one book I did edit it by removing the coding manually, but in the last couple of books there have been more than 200 entries per book and I do not know how to code to search and remove all the entries, so I just use a reader and app which displays correctly. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Code:
<\?[^>]+\?> and Code:
<a id="p\d+>[^<]*</a> |
|
![]() |
![]() |
![]() |
#7 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 484
Karma: 5277078
Join Date: Oct 2009
Location: UK
Device: Kobo Clara HD, Boox Poke 2, PocketBook Verse Pro (634)
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
I have ONE comment, only--before you go bonkers and remove all those ids, I would be very careful to ensure that the book you're reading isn't using them, for index entry links, for "go to" comments inside the book, e.g., "See page 23 for a discussion of..." etc.
There's an excellent chance that the publisher wanted RPNs, for some reason (real page numbers or real page number functionality), and so the poor, overworked, beleaguered bookmaker put those in there as link targets--OR, to see if they could get Amazon to use the RPNs, rather than locations. yes, yes, I know, we're discussing ePUB, but after all, ePUB is often the parent to the concomitant MOBI. Offered FWIW. Hitch |
![]() |
![]() |
![]() |
#9 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 484
Karma: 5277078
Join Date: Oct 2009
Location: UK
Device: Kobo Clara HD, Boox Poke 2, PocketBook Verse Pro (634)
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,085
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I see plenty of internal page numbers that serve no purpose. I've also seen some eBooks with page numbers in the NCX that also serve no purpose. I just remove all that. I've found that the better the code the less chance of a problem. I've read of many problems that probably is do to errors or poor code. I've also read of problems because of the excessive CSS code many publishers use. It's amazing that when I remove the excess CSS code, I can get hundreds of classes removed.
|
![]() |
![]() |
![]() |
#12 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Do you use page-break-after and page-break-inside? | fluoresce | ePub | 14 | 05-24-2017 01:57 AM |
ePub Page Numbering Using Page-map | Dark123 | Calibre | 2 | 06-16-2010 07:15 AM |
Page numbering | StanByk | Calibre | 2 | 09-07-2009 02:10 PM |
Page Numbering... | slantybard | Calibre | 3 | 08-02-2009 11:41 AM |
Page Numbering | bookstar | Sony Reader | 1 | 03-24-2009 03:21 PM |