Skip to content

cli-v7.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 16:20
· 3 commits to main since this release

The command line meets the whole of the veripublica conventions, which changes
what scripts see: read the first section before updating one. check finds
more, and repair no longer loses letters in files that are not UTF-8.

Changed (breaking)

  • The command line now meets all of veripublica conventions v0.7, as its
    help has said since 5.0. docs/usage.md ("Moving from 6.x to 7.0") lists what
    scripts notice.
  • The upgrade's and meta enrich's progress ([*]) and warnings go to stderr;
    stdout carries the result only.
  • repair without a terminal, on a book with a fix that needs a decision,
    stops before writing and exits 2, naming --yes. It used to skip the fix and
    exit 1, which looked like an ordinary result. Books whose fixes are all safe
    are repaired as before.
  • repair --dry-run and meta enrich --dry-run exit 1 when the real run would
    change something, and refuse an existing output without -f as the real
    run does.
  • A value outside its set is refused (exit 2) with the values listed and a
    pointer to --help: --quality 0 or 101 is no longer corrected to 1 or
    100, and an unknown check --profile is no longer ignored. --provider is
    checked before the lookup starts; google-books and googlebooks are gone
    (use google).
  • The token after a value-taking option is always its value: -i -x.epub
    names the file -x.epub. -- is ignored instead of ending the options.
  • A second -i says how many inputs were expected and given.
  • --ascii's help names --report, not the removed -r. The crate now
    includes AGENTS.md.

Changed

  • check follows epubveri 0.55, which checks more of HTML, XHTML 1.1 and the
    EPUB specifications
    , so a book that passed may now fail with a fault that
    was always in it. Most likely to be met: in EPUB 2, target on a link and
    text that is not in Unicode Normalization Form C; in EPUB 3, a web address
    whose host is not valid, such as a mail address written as
    http://name@example.com, and attribute values HTML does not allow. On our
    574-book shelf 7 books that were valid no longer are; repair -y makes all 7
    valid again. Messages say more, and every finding on the shelf that had no
    rule in the JSON report has one now.
  • repair has two new repairs (epubsana 0.49.0): target is removed from
    a link where the book's EPUB version has no such attribute (asked about
    first), and EPUB 2 text is written in Normalization Form C, which looks the
    same (not asked about). On our shelf, 385 books are valid after repair -y
    instead of 374.
  • An ISBN is written as ISBN-13 digits, the form ONIX and retailers use:
    978-975-10-2656-9 and the ISBN-10 975-10-2656-3 are both stored as
    urn:isbn:9789751026569 (EPUB 2: 9789751026569 with opf:scheme="ISBN").
    It may still be typed or pasted with hyphens, spaces or as ISBN-10; a value
    that is not an ISBN is written as given. A book's ISBN written another way is
    no change, and an ISBN the book already holds is never rewritten unless the
    field is edited. meta set --unique-identifier with an ISBN names the
    identifier holding that ISBN however it is written.
  • Every book the library writes (the upgrade, a metadata or cover save, an
    import) is deflated at the strongest level. At the default level an
    upgraded book grew even where nothing in it changed: fonts and text were
    compressed less tightly than Calibre had them. On our 567-book shelf, images
    kept: output +0.02% → −0.67% of the input in all, 484 → 316 books larger
    than their input, 555 books smaller than before; time the same; every
    validation result identical.
  • Dependencies for the family's update round of 2026-12-03: epubveri 0.55.0,
    epubsana 0.49.0, kepubverto 0.6.2, imagoverto 0.1.6, paginaverto 0.3.6 and
    others. The upgrade gives the same book as before from the same input.

Fixed

  • repair replaced letters it could not read. Any repair that edited a
    file holding a byte that is not UTF-8 wrote � over it: café in
    Latin-1 came back as caf�, and the error about it disappeared. The byte is
    now kept and the error stays. Affected: cli-v3.0.0 to cli-v6.1.0. If you
    repaired a book that had an RSC-028 error, look for � in it and repair
    the original again.
  • repair, renaming an invalid id, left behind the references that name it
    without a #: a table cell's headers, a label's for, aria-labelledby
    and the like. They are renamed with it.
  • --kepub made a valid EPUB 3 book invalid when it held an rp (Japanese
    ruby) or a time without datetime: their text no longer gets Kobo spans.
  • A translator listed as a creator is no longer lost when meta set --author
    or the web form gives an author list without them: it is written back as a
    translator.
  • meta enrich and the web's metadata lookup wrote Open Library's free-text
    date ("October 1, 1988") into dc:date, which takes a W3C date. The date is
    now written 1988-10-01 (or 1988-10, 1988), as docs/metadata.md
    already said; one that cannot be read is left out.

Security

  • sha2 0.11.2 → 0.11.3 (GHSA-3wc7-wpgp-g7qq, wrong SHA-384 and SHA-512 on
    32-bit RISC-V only, which we publish no build for).

Full Changelog: gui-v0.2.1...cli-v7.0.0