Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Apple Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 01-02-2020, 04:42 AM   #1
abbrowna
Junior Member
abbrowna began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2020
Device: iphone7
Page numbering for apple books

Hello all, I have this problem that's bothered me for days on end.
I am compiling a book of song lyrics in reflowable epub 3 format. Each song is structured like a poem and has its own xhtml file. Each song is therefore a chapter in itself. My target devices are IOS devices and in particular, using the inbuilt Books app. What bugs me is that Books assigns it's own page numbers according to the screen size. What I would prefer is that 1file=1chapter=1song=1page. I prefer this because the songs are also numbered (as you will see in the attached epub) and conflict with the page number. How can I override/guide the Books numbering according to my requirement.

I'm working in Calibre on windows10

Thank you for your time and help.
abbrowna is offline   Reply With Quote
Old 01-02-2020, 12:17 PM   #2
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,757
Karma: 15413559
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by abbrowna View Post
How can I override/guide the Books numbering according to my requirement.
You can define your own page numbers by adding a page-list nav section to the nav document.
If you're also familiar with Sigil, you might find my Pagelist plugin helpful.
Note that you'll have to select the Tap to show printed page numbers option in the toc to display page-list page numbers in iBooks/Apple Books.
Doitsu is offline   Reply With Quote
Old 01-02-2020, 12:35 PM   #3
abbrowna
Junior Member
abbrowna began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2020
Device: iphone7
Quote:
Originally Posted by Doitsu View Post
You can define your own page numbers by adding a page-list nav section to the nav document.
If you're also familiar with Sigil, you might find my Pagelist plugin helpful.
Note that you'll have to select the Tap to show printed page numbers option in the toc to display page-list page numbers in iBooks/Apple Books.
So, I actually landed on that particular site during my days of frustration and here's what I tried... Because there are over 1000 songs/chapters, I created a page-list nav element only listing the first 3 chapters and the title page file. However, I did not refer to any page-break within the song only listing the xhtml like so...
Code:
<nav epub:type="page-list" hidden="hidden">
 <ol>
   <li><a href="titlepage.xhtml"></a></li>
   <li><a href="song_1.xhtml">1</a></li>
   <li><a href="song_2.xhtml">2</a></li>
   <li><a href="song_3.xhtml">3</a></li>
 </ol>
</na
This had no effect in the Books app (iphone7). I wonder if the mistake is in not adding actual page-breaks, not including all chapters/song or both? I really appreciate your help by the way.
abbrowna is offline   Reply With Quote
Old 01-02-2020, 12:54 PM   #4
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,757
Karma: 15413559
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by abbrowna View Post
This had no effect in the Books app (iphone7). I wonder if the mistake is in not adding actual page-breaks, not including all chapters/song or both?
Of course, you'll also need to add pagebreak markers to .xhtml files. For example, you'll need to insert the following pagebreak marker in a block-level tag in song_1.xhtml.

Code:
<span epub:type="pagebreak" id="page1" title="1"/>
Note that you can add sequential numbers in Calibre with a regex function.
Doitsu is offline   Reply With Quote
Old 01-03-2020, 02:10 PM   #5
abbrowna
Junior Member
abbrowna began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2020
Device: iphone7
Quote:
Originally Posted by Doitsu View Post
Of course, you'll also need to add pagebreak markers to .xhtml files. For example, you'll need to insert the following pagebreak marker in a block-level tag in song_1.xhtml.

Code:
<span epub:type="pagebreak" id="page1" title="1"/>
Note that you can add sequential numbers in Calibre with a regex function.
Hey There, So I created a test book with just the first 3 chapters of my book and added a page-list to the nav section and corresponding page breaks in the xhtml files. No luck unfortunately. The Apple books app still insists on assigning its own page numbers. I did confirm that the page list works by shifting the marker to the end of the chapter. Clicking on the page-link took me to the end of the chapter rather than the beginning as expected.
abbrowna is offline   Reply With Quote
Old 01-03-2020, 02:32 PM   #6
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,757
Karma: 15413559
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by abbrowna View Post
No luck unfortunately. The Apple books app still insists on assigning its own page numbers.
Maybe there's a syntax error in the page-list or the pagebreak markers or maybe you didn't create a valid epub3 book.
Have you checked your book with the IDPF validator?
Download and test this very simple Public Domain epub3 book with iBooks/Apple Books and you'll see that the embedded printed page numbers work.
Doitsu is offline   Reply With Quote
Old 01-03-2020, 03:30 PM   #7
abbrowna
Junior Member
abbrowna began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2020
Device: iphone7
Quote:
Originally Posted by Doitsu View Post
Maybe there's a syntax error in the page-list or the pagebreak markers or maybe you didn't create a valid epub3 book.
Have you checked your book with the IDPF validator?
Download and test this very simple Public Domain epub3 book with iBooks/Apple Books and you'll see that the embedded printed page numbers work.
Opened the public domain book on Books app and here's a screen-shot of the last page. It shows the book has 121 pages and I'm on the 119th. Opening from Calibre, I can see the book should have 61 pages. Thanks for the validator link, my book checks out with no errors.
Attached Thumbnails
Click image for larger version

Name:	IMG_6490.PNG
Views:	16
Size:	186.2 KB
ID:	176137  
abbrowna is offline   Reply With Quote
Old 01-03-2020, 04:26 PM   #8
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,757
Karma: 15413559
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by abbrowna View Post
It shows the book has 121 pages and I'm on the 119th.
You've most likely forgotten to select Tap to show printed page numbers in the toc, because on my iPhone the correct number is shown.
Attached Thumbnails
Click image for larger version

Name:	pagenums.PNG
Views:	13
Size:	34.4 KB
ID:	176139  
Doitsu is offline   Reply With Quote
Old 01-04-2020, 03:21 AM   #9
abbrowna
Junior Member
abbrowna began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2020
Device: iphone7
Quote:
Originally Posted by Doitsu View Post
You've most likely forgotten to select Tap to show printed page numbers in the toc, because on my iPhone the correct number is shown.
Yep, that's exactly it! It finally worked. I've missed it all the while. Thanks a bunch.

As a side note, I also removed the page break marker inside the file, used just the file names in the page list and it still works.
abbrowna is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page numbering in exported books Buhaj47 Library Management 6 02-20-2018 03:30 PM
Page Numbering 46jimbo Kobo Reader 22 04-04-2013 09:18 PM
Glo Page Numbering dixieknits Kobo Reader 3 01-06-2013 05:43 PM
ePub Page Numbering Using Page-map Dark123 Calibre 2 06-16-2010 08:15 AM
Page numbering StanByk Calibre 2 09-07-2009 03:10 PM


All times are GMT -4. The time now is 10:24 PM.


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