Skip to content

ibook2epub 2.4.0

Latest

Choose a tag to compare

@raeq raeq released this 26 Sep 18:44
3c8c857

Highlights

  • Archives say which book they came from. Every archive written now carries a zip comment, ibook2epub/1 src=<digest>. The planner trusts it over a file's name or identifier, so a book that is renamed or moved keeps its archive. E-readers ignore the comment, and the book validates as before.
  • No more guessing. Suppose two books that nothing tells apart both want an archive that was written before markers existed. Neither is given it. Under --on-collision suffix each gets a name of its own; in skip mode each is reported as a collision.
  • --list shows copies too. PDFs and zipped epubs that are copied through are now listed (copy / copied).
  • A dry run refuses what the real run refuses. That covers the --min-free floor and a bad -ad, -ao, vault or --library-export destination. A dry run now exits 5 on these, where it used to go ahead.
  • Harder against hostile XML. A container, package document or encryption.xml that declares a DTD internal subset is refused, as is XML with more than 200,000 elements or nested deeper than 1,000 levels. This check refused none of the 2,804 books in a real library.
  • Many fixes to --on-collision suffix, Ctrl-C handling, notes and vaults, --verify and -ae -ar. See the changelog.

What you may notice

  • Archives written from now on are not byte-identical to what 2.3.1 wrote. The only difference is the zip comment.
  • --portable-names romanize needs disarm>=0.13,!=0.17.0. disarm 0.17.0 refused the separator this tool uses; 0.17.1 fixed it.
    • If you upgrade disarm to 0.17.1, titles containing a few rare characters get a new name. These are the schwa ə, Ǝ, 20 rare Latin letters, 12 Georgian Mtavruli capitals, and U+2028 / U+2029.
    • Such a book is exported again under its new name, and its old file is reported as an orphan. Nothing is deleted.

Full list of changes: CHANGELOG.md