Repository navigation
Scriptorium EPUB 1.2.0
The library now shows PDFs too. A PDF next to an EPUB of the same name is the same book in a second format, and a PDF on its own gets a card of its own. pdf2epub.py reads scans 2.6 times faster on the processor, and it keeps more of what is on the page: vector arrows, lines to write on, title pages and parts of the contents.
Library and reader
- EPUB and PDF in one place. A PDF in the same folder and with the same name as an EPUB (
Jane Doe - A Quiet Harbour.epub+.pdf) joins that book: one card, read in EPUB. Small EPUB and PDF labels on every card and on the book's page show which formats are there. - Opening a PDF. A click on PDF opens it in a new tab, in the browser's own viewer. The right button's Save link as… saves it. EPUB is saved as before.
- A PDF on its own gets a card too. Its first page is the cover, and its author and title come from an
Author - Titlefile name. It has Open PDF in place of Read. - ZIP of a folder holds both files of a book.
- The offline app keeps only EPUBs on the device.
- The reader builds a book's page positions about 6 times faster. The positions stay the same, so your places in your books don't move.
PDF → EPUB
- 2.6 times faster on the processor, with the same text. On 8 scanned pages it took 246 s instead of 632 s.
- Vector arrows that the model read as bars or tildes are put back, also in subscripts and small italics.
- Lines to write on in workbooks ("for notes", room for an answer) are kept as empty lines in quick mode too.
- Contents with spaced dot leaders (". . .") become one list of links. Part titles between chapters are entries of their own.
- Title pages and dedications are centred, each on a page of its own.
- A figure cut in two by the layout is cut out of the page whole.
- Recognition loops are cut out instead of reading the whole page again.
- Fixes:
- No junk from a box set beside the text, from a formula after a subscript, or from the model's descriptions of pictures.
- The progress line names the pages read (
164–165, 443–444), not just the first and the last.
New tool
epub_diff.pyshows what changed between two versions of a book, page by page: recognition garbage, missing text, formulas, pictures and so on. Each change comes with its PDF page.--htmlwrites the report as a web page.
Updating
Run make_server.py on your library again. This rebuilds the catalog and copies the new launchers into the library. Install pdftoppm (poppler) if you want covers for PDFs that have no EPUB. See the README.