![]() |
Pagelist plugin for print edition page numbers
1 Attachment(s)
[Plugin] PageList - Generates print edition page numbers
Updated: July 1, 2021 Current Version: "0.3.1" 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:
{Code:
{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.1.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";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) |
Hi Doitsu,
Nice addition! I have added this to the Sigil Plugin Index thread. KevinH |
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 :) |
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 |
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"). |
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?
|
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">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. |
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? |
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 |
Quote:
|
@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(Not sure how to deal with number gaps, or if collapsing ranges would work. These might be user options.) |
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.
|
Quote:
@polizoto: ADE 4.x apparently allows you to click page target hyperlinks. |
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 |
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.) |
May I ask what is probably a silly question?
How the heck do I generate page numbers/spans when exporting from InDesign (CC) to a reflowable ePub3 file —*so that I can then use this plugin to generate a pagelist? I can see that they're automatically there when I export to FXL. For a novel, do I have to go through and enter the #)@$*)@ things by hand, or is there something that I can do at the InDesign end to add the tags? |
Is this compatible with ADE 2.0.1? If not, why not make it compatible?
|
Quote:
|
Quote:
Quote:
|
Quote:
Quote:
http://www.idpf.org/epub/20/spec/OPF...Section2.4.1.2 EPUB3 just changed the way it is done. |
For the record: ADE 2 will read/render text-based EPUB3s (novels primarily) just fine. You're correct that it doesn't support the multi-media aspects, or the scripting portions, or the fixed-layout portions of the EPUB3 spec, but "supporting" EPUB3 all depends on the EPUB itself. It's not like ADE 2 (or 3) says, "I can't open that." It, in fact, opens/renders many commercially-available EPUB3s just fine.
Offtopic though. My apologies, Doitsu. Back to pagelist/pagemap generation. ;) |
Quote:
Quote:
Quote:
The same goes, of course, for Tex2002ans who consistently provides high-quality answers. |
Quote:
Quote:
|
I have a set of InDesign scripts to do this. It inserts conditional text with the page numbers inserted at the print page breaks. A post-export script will turn that <span> into the correct epub:type inflection and collect the pagelist to plop into the <nag> document.
See: http://www.bradytypesetting.com/rorohikoscripts |
Quote:
I know this was a typo, and I know what you meant, but boy .... did it ever make me giggle! :D |
Quote:
|
I have a book that I'm converting that's widely used as a textbook in print, so this is great.
Just to be sure I understand what I have to do to make this work:
That's it, right? I'm bummed that InDesign only supports pagelist export for fixed-format ePubs. |
Quote:
For example, if you insert 12, highlight it, and apply the clip you'll get: Code:
<span epub:type="pagebreak" id="page12">12</span>If there already are anchor tags with page numbers and ids in your book, you can modify the PageList.json preference file to re-use them. For example, the following preferences Code:
{Code:
<a class="page" id="page1">1</a> |
Quote:
I'm about to dive into this. Wish me luck. |
I have used the pagelist plugin to modify an epub, saved it and loaded it in iBooks on my iPad. iBooks recognizes the new file has page numbers and shows the option, in the table of contents, to "tap to show printed page numbers". However, when I do this, the page numbers in the table of contents do not change, and when I am reading the book, there are no page numbers shown on an individual page. When I tap to show the menu and chapter progress, the number of pages left in the chapter is shown, but this number is related to the iBooks page number, not the 'real book' page numbers I added (that is, the number of pages left in the chapter changes with font size.).
Is there something else I need to do to make the page numbers show up? |
Quote:
If your book is an epub3 book, maybe the pagelist section in the Nav doc is missing, doesn't contain pagelist entries or the page number definitions point to the wrong target ids. You might want to check your book with my EPUBCheck plugin, if you haven't already done so. If EPUBCheck doesn't report any broken links, download this very simple MR epub3 book with a working pagelist section and compare the pagelist section and the page target definitions with your book. |
Hi, thanks for your plugin!
I have a book that records page numbers like this: Code:
<span role="doc-pagebreak" id="pg_13" aria-label="13">Code:
{Code:
diff --git a/plugin.py b/plugin.py |
Quote:
|
| All times are GMT -4. The time now is 07:06 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.