View Single Post
Old 03-26-2022, 06:16 PM   #50
Terry Brown
Enthusiast
Terry Brown began at the beginning.
 
Posts: 41
Karma: 10
Join Date: Jun 2010
Location: Portland, OR
Device: M1 Max Mac Studio, iPad Pro 2018 12.9, iPhone 7
epubpaginator--Add page number to epub books

epubpaginator

epubpaginator is a Python script that generates pagination for ePub books. epubpaginator makes a copy of the input epub file and modifies that copy to contain pagination information.

Features
  • For ePub3 files, epubpaginator can generate a page-list table in the navigation document, and corresponding page links in the epub text.
  • epubpaginator can generate "pagelines"--information lines in the text of an ePub2 or ePub3 document. These are placed after the paragraph where the page break occurs and are formatted as separate paragraphs in the book.
  • epubpaginator can generate page information notes formatted as superscripts in the text of an ePub2 or ePub3 document. These superscripts are placed after the word where the page break occurs.
  • If an ePub3 document has existing pagination, epubpaginator can match the pagelines or superscripts to the existing pagination. This allows you to see the publisher's page numbering in epub readers that do not support epub3 page-list.
  • Font size, color and alignment (right, left, or center) are selectable for pagelines.
  • Font size and color are selectable for superscripts.
  • Pagelines and superscripts may optionally show total page counts for the book and the current chapter.
  • For ebooks without existing pagination, the page size may be defined by specifying words per page, or by specifying total pages for the book in which case words per page is calculated by dividing the book word count by the total pages specified.

Requirements
  1. Python 3.7 or greater.
  2. Optional [epubcheck module](https://pypi.org/project/epubcheck/)--see below.
  3. Optional Calibre ebook-convert--see below.

Take a look at the details on Github:

epubpaginator
Terry Brown is offline   Reply With Quote