09-15-2015, 12:47 PM | #1 |
Grand Sorcerer
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Pagelist plugin for print edition page numbers
[Plugin] PageList - Generates print edition page numbers
Updated: July 21, 2022 Current Version: "0.3.2" This plugin will generate NAV page list and/or NCX page list sections from page targets defined using the following special span tags: Code:
<span epub:type="pagebreak" id="page1" title="1"/> Code:
<span epub:type="pagebreak" id="page1">1</span> You can also manually edit the PageList.json file to have the plugin search for class attributes. For example, if you want to use the following span attributes: Code:
<span class="com-rorohiko-pagestaker-style">1</span> Code:
{ "tag": "span", "attribute": "epub:type", "value": "pagebreak" } Code:
{ "tag": "span", "attribute": "class", "value": "com-rorohiko-pagestaker-style" } To display the PageList preferences folder, select Edit > Preferences > Open Preferences Location > plugins_prefs > PageList. Installation: To install the plugin open Sigil and select: Plugins > Manage Plugins > Add Plugin > PageList_v0.3.2.zip > OK. Usage: To run the plugin select: Plugins > Edit > PageList. Note that this plugin will overwrite existing pagelist sections without warning. I.e., you might want to create a backup of your ebook before running this plugin. After the page list was generated, you can test it with Apple Books or Azardi (Windows/OSX/Linux freeware). Note that Azardi doesn't support the first, empty span declaration. It also apparently ignores the page list section. It's therefore not ideal for testing. If you're using the second, non-empty span version, you might want to use the following style in epub3 books to hide the page number: Code:
@namespace epub "http://www.idpf.org/2007/ops"; /* more CSS rules */ *[epub|type='pagebreak'] { display: none; } BTW, page number target spans can be easily inserted with a clip. 1. Press Ctrl+Alt+C to open the Clip Editor. 2. Create a new clip and name it, for example, page-break. 3. Copy the following text to the Text field of the page-break clip: Code:
<span epub:type="pagebreak" id="page\1">\1</span> Then enter the page number in the Code View window, highlight it, right-click it and select Clips > page-break. * Even ADE4 still doesn't support page lists in ePub3 books. License: GNU General Public License v3 (GPL-3) Last edited by Doitsu; 05-21-2022 at 02:47 PM. Reason: bugfix release |
09-15-2015, 12:58 PM | #2 |
Sigil Developer
Posts: 7,469
Karma: 5432724
Join Date: Nov 2009
Device: many
|
Hi Doitsu,
Nice addition! I have added this to the Sigil Plugin Index thread. KevinH |
09-24-2015, 03:24 PM | #3 | |
Lector minore
Posts: 649
Karma: 1738720
Join Date: Jan 2008
Device: Aura One, Samsung Galaxy Tab S5e, Google Pixel Slate
|
Quote:
However, in the past when I've run kindleunpack I don't recall getting the .apnx, and in any case I thought it was a separate file that goes alongside any .mobi and isn't included inside it (ie: how would kindleunpack extract a file that wasn't inside in the first place). I know I must be misunderstanding something somewhere |
|
09-24-2015, 03:32 PM | #4 |
Sigil Developer
Posts: 7,469
Karma: 5432724
Join Date: Nov 2009
Device: many
|
Hi,
Kindlegen stores the info to create a separate apnx file inside the mobi it creates. Recent versions of KindleUnpack can extract it and even read in external apnx files alongside the azw3 file. KevinH |
09-24-2015, 05:28 PM | #5 | |
Grand Sorcerer
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
BTW, if you plan to add "real page numbers" to a self-published KDP book, you can save yourself the hassle, because, AFAIK, Amazon won't generate APNX files for self-published books, unless the author also published a print edition (with "real page numbers"). |
|
12-23-2015, 10:10 AM | #6 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2015
Device: iPhone, iBooks, EPUB3
|
After using the page-list plug in and then exporting to EPUB3 with EPUB3-itizer, I am still not getting the list of page numbers in my TOC. Any thoughts?
|
12-23-2015, 10:34 AM | #7 | |
Grand Sorcerer
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
If nav.xhtml actually contains a page-list section, locate the style section and delete the page-list id marked in Magenta: Code:
<style type="text/css">
nav#landmarks, nav#page-list { display:none; }
ol { list-style-type: none; }
</style>
Code:
<span epub:type="pagebreak" id="page1">1</span> What app did you use for testing? If you used iBooks you'll need to activate the page number display, because they're hidden by default. |
|
12-23-2015, 11:03 AM | #8 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2015
Device: iPhone, iBooks, EPUB3
|
I am testing with Readium and iBooks. I removed the page-list id from the nav.xhtml file.
I can see the page numbers that correspond with the chapters and sections of my ebook, but what I would like to do is have ALL the page numbers-- corresponding to chapter or section headings or not-- displayed for easier navigation. With which readers can this be accomplished? |
12-23-2015, 11:13 AM | #9 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2015
Device: iPhone, iBooks, EPUB3
|
Here's what I am trying to accomplish:
1) Mark up all of the original page numbers from a textbook in my EPUB project 2) Export to EPUB3 with all the original page numbers in the TOC 3) The student can use the TOC in the EPUB3 player to navigate directly to the each original page in the textbook Thank you, Joseph |
12-23-2015, 12:02 PM | #10 |
Grand Sorcerer
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
|
12-24-2015, 08:36 AM | #11 |
Digital Amanuensis
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
@Doitsu : I think that what @polizoto wants is to have the page numbers appear in the ToC as well. This way the resulting EPUB can cope with the lack of support for (proper) page-list in real-world apps.
For example, you can put them as children of the corresponding main ToC entry: Code:
ToC - Cover -- 1 - Preface -- 2 -- 3 - Introduction -- 4 -- 5 -- 6 -- 7 - First Chapter -- 8 -- 9 -- ... (Not sure how to deal with number gaps, or if collapsing ranges would work. These might be user options.) |
12-24-2015, 08:50 AM | #12 |
Grand Sorcerer
Posts: 27,441
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
As useful as it might seem, I think it would be terribly unwieldy. Trying to navigate a ToC with a link to every, single page number would take me longer than just jumping to the right chapter and then nudging the progress slider 'til I get the right page-number.
|
12-24-2015, 09:30 AM | #13 | |
Grand Sorcerer
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
@polizoto: ADE 4.x apparently allows you to click page target hyperlinks. Last edited by Doitsu; 12-24-2015 at 10:56 AM. |
|
12-29-2015, 02:46 AM | #14 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2015
Device: iPhone, iBooks, EPUB3
|
Page Number Options
Alberto is correct-- As long as a particular does not support page number navigation separately from the TOC (like Azardi or Gitden Reader), I would like to provide all the page numbers in the TOC, if possible. This feature would be important in my workflow since I am preparing books for the blind and visually impaired for whom quick navigation via the TOC or another landmark screen + VoiceOver/JAWS is essential, no matter how unwieldy it might seem to us sighted folks. I am surprised that IDPF, which consists of many of the DAISY consortium people, did not keep this fact in mind because EPUB3 has practically meant the death of DAISY, yet all DAISY books contain this feature.
Thanks for the consideration, Joseph |
12-29-2015, 07:46 PM | #15 | |
Grand Sorcerer
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
(In the Android version, you'll have to select: ☰ > Contents ▼ > Page List; in the PC version, you can select the Page List links from the Table Of Contents pane of the main dialog box.) |
|
Tags |
pagelist, pagelist generator |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Chapter Page Numbers Instead of Title Page Numbers | TheArtfulDodger | Devices | 1 | 11-18-2013 01:08 PM |
Kindle (AZW3/MOBI) ebooks with "real page numbers" to PDF with same page numbers? | abvgd | Conversion | 2 | 05-24-2013 01:24 PM |
Index containing page no. with links - <pagelist> problem | mr10463 | Sigil | 7 | 05-21-2013 07:27 AM |
Print page range in viewer outputs single empty page | larzeb | Library Management | 2 | 04-30-2013 05:24 AM |
Is there a hack for displaying page numbers rather than location numbers? | nesler | Kindle Developer's Corner | 16 | 02-15-2011 12:00 AM |