Skip to content

Scriptorium EPUB 1.4.0

Latest

Choose a tag to compare

@ndm234234 ndm234234 released this 04 Dec 19:59

Text size now means the same in every book, and epub_diff.py compares whole folders of books. pdf2epub.py writes matrices and triple primes as real formulas. Python 3.11 or newer is now needed.

Library and reader

  • One text size for every book. Some books make all their text smaller or larger themselves (p { font-size: 80% }), so the same size used to look different from book to book. The reader now works out the size of a book's main text and evens it out. Footnotes, quotes and headings keep the book's proportions; books set in pixels are left as they are. It is worked out once per book on each device, while its pages are counted.

PDF → EPUB

  • Matrices with an index (\begin{pmatrix}…\end{pmatrix}_{3\times5}) come out as one formula: the numbers are no longer small and the brackets no longer short.
  • Three or more primes (f''') no longer leave the formula as LaTeX.
  • A busy processor only makes reading slower: a page is no longer read a second time, worse, when other work holds the processor up.

epub_diff.py

  • No file names needed: put the older version in Diff/Old, the newer in Diff/New and run python3 epub_diff.py. Several books are paired by file name. Each report is also written to Diff/<book name>.html.
  • Shows both file sizes and, when the files differ but the book doesn't, why (pages written differently with the same words, the archive recompressed).
  • The HTML report names its Old and New columns and keeps the heading at the top while a long table scrolls.

Other

  • Python 3.11 or newer is required.
  • fix_cover.py says the archive is recompressed and only the file contents stay the same.

Updating

Run make_server.py on your library again. This rebuilds the catalog and copies the new reader into the library. See the README.