Skip to content

v0.3.5

Choose a tag to compare

@Mnwa Mnwa released this 24 Nov 09:42
· 8 commits to main since this release
4273901

Added

  • mbook-converter: the opt-in rayon feature encodes the pictures of a
    source on all cores at once, in runs of at most 32 megapixels, instead of
    one after another. The book is the same, byte for byte. The application
    enables it: on eight threads an EPUB of 45 pictures was converted in 2.6 s
    instead of 3.9 s.
  • mbook-converter: an exported EPUB lists the landmarks of the book. They
    go into its landmarks navigation, with their anchors, and those with an
    EPUB 2 type into the guide. about-the-author, private kinds and
    landmarks that lead nowhere are left out, and a landmark without a title
    is given the name of its kind.
  • mbook-converter: an exported Word document numbers the items of its
    lists with the numbering of Word, indented by level, and starts a
    numbered list at the number of its first item, so that the document is
    read back with the same lists. The items used to be paragraphs with the
    marker as text.

Changed

  • The application computes on a pool of rayon with half the threads of
    the system and a stack of 16 MiB per thread: preparing chapters, decoding
    and encoding pictures, drawing figures, converting, exporting, searching,
    filtering the library and every change of a book being edited. The
    background executor of GPUI awaits that work and keeps reading and writing
    files, the catalogue and the network. An import converts on half the
    cores.
  • The application encodes pictures with the NEON assembly of rav1e on
    ARM: Android, and the Mac with Apple silicon. Importing a book with many
    pictures takes about half as long; on x86 the encoder stays pure Rust.
  • The APK holds only the Java classes of gpui-mobile that mbook uses, and
    building it prints no warnings: javac no longer notes the deprecated APIs
    of gpui-mobile's camera, location and microphone classes, and apksigner
    is given native access on a JDK 24 or newer. mbook's own Java is compiled
    with every warning as an error.

Fixed

  • mbook-converter: a Word item nested under a numbered item is imported
    inside it. It used to join the list of its parent, and a bulleted item
    under a number split that list in three: undoc indents a level by two
    spaces, which CommonMark reads as nested under a bullet only.
  • mbook-converter: an item of a list and the list nested in it are
    exported to DOCX, FictionBook and plain text as separate paragraphs. A
    tight nested list used to run into the paragraph of its parent item, as
    in • Pear• Green pear. Plain text indents a nested item by two spaces.
  • An EPUB exported from a book without a cover no longer has an empty
    landmarks navigation, which EPUB does not allow.
  • Scrolled to the end of a chapter, the last lines of a scrolling text no
    longer lie under the controls at the bottom of the reader: the text is
    followed by room as tall as them, so its end stops above them.