12-05-2021, 10:58 AM | #46 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
12-05-2021, 11:06 AM | #47 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
12-05-2021, 11:36 AM | #48 |
Junior Member
Posts: 9
Karma: 326
Join Date: Nov 2021
Device: kobo
|
|
12-05-2021, 05:20 PM | #49 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
03-26-2022, 07:16 PM | #50 |
Enthusiast
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
Requirements
Take a look at the details on Github: epubpaginator |
03-30-2022, 08:16 AM | #51 |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Very nice! Could you adapt your python script as Sigil (or Calibre) plugin?
|
04-01-2022, 06:26 PM | #52 | |
Enthusiast
Posts: 41
Karma: 10
Join Date: Jun 2010
Location: Portland, OR
Device: M1 Max Mac Studio, iPad Pro 2018 12.9, iPhone 7
|
epubpaginator as a calibre plugin
Quote:
I could also convert the file, present it to the user to peruse using ebook-viewer (a calibre ebook reader). If the user approved, she could then choose to overwrite the existing file as well as having a copy. You can see why I am reluctant to create such a beast. It is quite simple for me to add functionality to epubpaginator that creates a new book record (with a new id) in your calibre database. This new record would hold the paged epub file as a format. I can also easily add a tag "paged" to this book to allow easy selection of books that have paged epubs. I can also add "Paged" to the title of the new book. However, when I do this, the duplicate records complicate looking at your database in calibre. Who wants two copies of every book? And, if you track reading books with tags or whatever, then you probably need to track in two places. It is also easy to add the paged epub to Calibre without generating a duplicate record by modifying the extension name of the paged epub, calling it, for example Mybook.epub_paged. This works for storing the new format, but now applications don't know what to do with the format, so that is also a mess. It's also easy to create a new calibre library, called, for example Paged_Epubs and put the paginated epubs there. But again, the duplication complicates tracking reading status, etc. Another idea would be to separate the functionality of verifying the paginated books from the pagination itself. Then, you paginate a bunch of books and store them in a directory. After you convince yourself that they are all properly formatted, the new tool would insert them into the calibre database, replacing the originals. Comments? Suggestions? |
|
04-01-2022, 06:51 PM | #53 |
Resident Curmudgeon
Posts: 76,402
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
04-01-2022, 09:10 PM | #54 | |
Enthusiast
Posts: 41
Karma: 10
Join Date: Jun 2010
Location: Portland, OR
Device: M1 Max Mac Studio, iPad Pro 2018 12.9, iPhone 7
|
Quote:
This gets the job done using all external tools. I could do this quickly (a day or two) and sort of integrate epubpaginator with Calibre. But what I think is that you are suggesting I use ModifyePub as a template and create a Calibre Plugin. Well. I have looked at creating a Calibre plugin and I think it would take me weeks to figure out. I do pretty well with python and python libraries and I have figured out enough about epub to be pretty dangerous, but when I look at the Calibre plugin examples, my eyes glaze over. I spent my career writing verilog code and down to the metal diagnostic software to verify my hardware designs, not complex object-oriented code. Classes and the complex structure of Calibre (to say nothing of QT) seem pretty overwhelming to me. Would you recommend me not creating such a hack? Do you think maybe I am smarter that I think and can really make a Calibre plugin?? And, by the way, if I do generate ebook.ORIGINAL_EPUB, you imply it is easy to restore. Is that done by some magic in the calibre interface? or? The only way I can see to do this is to export ebook.ORIGINAL_EPUB to disk, rename it, and add it back. |
|
04-01-2022, 09:32 PM | #55 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simple ePub Reading Software | Jaime_Astorga | Reading and Management | 6 | 09-12-2014 07:21 AM |
Announcing: epub-tools software | dino8352 | General Discussions | 0 | 04-23-2011 02:06 PM |
Looking for reading software on Android that will read Epub format | CJBarrow | Reading and Management | 1 | 04-14-2010 04:28 PM |
Epub Reading Software Differences | brewt | ePub | 1 | 12-29-2008 11:02 AM |