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

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 10-09-2020, 02:42 PM   #31
Doitsu
Grand Sorcerer
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: 5,289
Karma: 19618507
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Terry Brown View Post
Is there something else I need to do to make the page numbers show up?
AFAIK, printed page numbers only work in epub3 books. If your book is an epub2 book, you'll have to convert it to an epub3 book with the ePub3-itizer plugin.

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.
Doitsu is offline   Reply With Quote
Old 07-01-2021, 04:23 PM   #32
tastytea
Junior Member
tastytea has learned how to buy an e-book online
 
tastytea's Avatar
 
Posts: 3
Karma: 80
Join Date: Mar 2021
Device: PocketBook Touch HD 3
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">
Changing PageList.json to:
Code:
{
  "tag": "span",
  "attribute": "role",
  "value": "doc-pagebreak"
}
did not suffice, I also had to change plugin.py like this:
Code:
diff --git a/plugin.py b/plugin.py
index 9bf6b68..26a6863 100644
--- a/plugin.py
+++ b/plugin.py
@@ -143,6 +143,8 @@ def run(bk):
             # title has priority over string
             if page_number.has_attr('title'):
                 title = page_number['title']
+            elif page_number.has_attr('aria-label'):
+                title = page_number['aria-label']
             else:
                 title = page_number.string
Could you add that to your plugin?
tastytea is offline   Reply With Quote
Old 07-01-2021, 05:18 PM   #33
Doitsu
Grand Sorcerer
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: 5,289
Karma: 19618507
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by tastytea View Post
Could you add that to your plugin?
Thanks for the suggestion! I added the two lines to plugin.py and attached a new version to the first post.
Doitsu is offline   Reply With Quote
Reply

Tags
pagelist, pagelist generator

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter Page Numbers Instead of Title Page Numbers TheArtfulDodger Devices 1 11-18-2013 02:08 PM
Kindle (AZW3/MOBI) ebooks with "real page numbers" to PDF with same page numbers? abvgd Conversion 2 05-24-2013 02:24 PM
Index containing page no. with links - <pagelist> problem mr10463 Sigil 7 05-21-2013 08:27 AM
Print page range in viewer outputs single empty page larzeb Library Management 2 04-30-2013 06:24 AM
Is there a hack for displaying page numbers rather than location numbers? nesler Kindle Developer's Corner 16 02-15-2011 01:00 AM


All times are GMT -4. The time now is 08:49 PM.


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