View Single Post
Old 04-02-2023, 03:30 PM   #24
Thertzler
Member
Thertzler ought to be getting tired of karma fortunes by now.Thertzler ought to be getting tired of karma fortunes by now.Thertzler ought to be getting tired of karma fortunes by now.Thertzler ought to be getting tired of karma fortunes by now.Thertzler ought to be getting tired of karma fortunes by now.Thertzler ought to be getting tired of karma fortunes by now.Thertzler ought to be getting tired of karma fortunes by now.Thertzler ought to be getting tired of karma fortunes by now.Thertzler ought to be getting tired of karma fortunes by now.Thertzler ought to be getting tired of karma fortunes by now.Thertzler ought to be getting tired of karma fortunes by now.
 
Posts: 13
Karma: 1138306
Join Date: Mar 2018
Device: none
v1.1.8 with new features

Recently I noticed that one of my ebooks contained 'span' tags with the epub:type pagebreak attribute that were theoretically valid page markers, but my reader didn't recognize them because they were not properly listed in the nav file.
There were also some other curious books which had other kinds of non-standard page markers that naturally also didn't work "properly" but since they were there I thought it would be a nice feature to detect such page markers in a book and use them for pagination instead calculating pages manually.

So I went and updated my Print Page Approximator script with that feature and the result is version 1.1.8.

Besides passing a page number as the first argument after the filename you can now pass a css-like selector to find page marker tags to be used as the basis for the page list.

for the most basic constellation in which the tags are already valid, fixing the page list is as easy as this:

Code:
.\page_approximator.exe .\example_book.epub "[epub:type=pagebreak]"
For more "custom" page markers the selector might have to be more involved, the more advanced documentation can be found on GitHub.
Needless to say this is more of a power user feature for people who already like to mess around with the innards of their books in editors like Calibre and such, but still... less manual work.

As usual, the attachments are updated in the opening post.
Thertzler is offline   Reply With Quote