Repository navigation
v0.1.0
Changed
-
Open the first chapter in Visual when editing a book, including in
compact windows. -
Update the native file-picker dependency to
rfd0.18 and use
similar3 for Markdown block comparisons. -
The reader shows a page number for the whole book and marks estimates
while chapters are still unmeasured. A position slider previews the
destination and seeks on release. The slider appears when the pointer
reaches the bottom strip, while seeking, or when it has keyboard focus. -
The default reading text size is 20 px. Saved text sizes still apply.
-
The mbook reader lays out chapters as individual pages, with an animated
turn, a persistent page number, and progress that fades with the controls.
The appearance panel uses page-tone swatches and icon steppers, and books
fall back to installed serif fonts. -
The library gives cover art and reading status more space. The editor uses
a segmented icon picker for its chapter views and draws its preview in the
selected page tone. -
A dependency that only one crate uses is declared in that crate's own
manifest; the manifest of the workspace keeps what several crates share. -
Continuous integration installs the libraries GPUI links on Linux, and
checks the minimum Rust version of the libraries withoutmbook-ui,
which declares its own. -
The library crate
mbook-coreis renamedmbook: the package, the
foldercrates/mbook/, the import pathmbook::and RFC 0002
(0002-mbook-api.md).mbook-converterre-exports it as
mbook_converter::mbook.
Fixed
-
Install NASM for the x86 AVIF decoder in Linux CI and in the macOS and
Windows x64 release builds. -
Compile the update installer only on platforms that use it, with its unit
tests still available on Linux. -
Keep GPUI Kit's window buttons outside the headless accessibility
assertions for application controls. -
Fit tall pictures within a reader page while keeping their proportions.
-
Command+S is available through File > Save on macOS. Save includes
pending edits in the Details form. -
Enter in Visual starts a new paragraph without showing Markdown's blank
separator line. -
The native book, picture, and cover pickers filter to supported file
extensions. -
The shelf hover highlight has padding around the cover and reading status.
-
AVIF pictures decode on a dedicated stack, so opening an illustrated
chapter works on macOS background queues.
Added
-
Offer a chapter picker in the Visual link dialog and a chapter picture
preview in its toolbar. The Pictures section displays a thumbnail gallery. Picture
and cover import offer quality and resolution controls before encoding. -
Visual uses
gpui-kit-markdown-editorwith editable GFM tables, nested
lists and task items, link editing, picture insertion, and fenced code
blocks with a language picker. -
A Visual chapter editor with formatting controls and undo and redo.
Source and Split modes highlight Markdown syntax. -
New book… in the library creates a book and opens its empty first
chapter in the Markdown editor. -
RFC 0004, the design of
mbook-ui: a reading application with a library,
a reader and an editor, built with GPUI Kit, usable without a pointer and
with a screen reader. -
mbook-ui, a first version of the application of RFC 0004. The package
requires Rust 1.100 and is not published to crates.io.- A library kept under the data directory of the platform, with a
redb
catalogue that is rebuilt from the books when it is lost or damaged. - Opening a file adds it: an mbook file is copied, a file in any format of
mbook-converteris converted first. A book the library has is not
added twice. - A reader that takes one chapter and the pictures on screen from the
file, keeps the place a book was left at, and has page tones, a choice of
typeface and size, and a table of contents. - An editor for the metadata, the cover, the chapters as Markdown with a
preview, and the pictures; a picture that is not AVIF is encoded with the
imagecrate. - Updates from the releases of this repository through
self_update,
verified against a key built into the application. - The Cargo feature
visualand the test of the same name render every
screen intotarget/visual/without a window.
- A library kept under the data directory of the platform, with a
-
.github/workflows/release.yml: builds the installers of the application
for a tag, signed, when a maintainer starts it. It has not been run. -
mbook: tests that count the bytes a reader takes from a large book. To
open it takes less than a twentieth of the file; one chapter, less than
two thirty-seconds. -
RFC 0001, the mbook file format, version 1.0, with seven decision records.
-
RFC 0002, the API of
mbook. -
RFC 0001 and ADR-0010: a book can list its notable places as landmarks,
each with a kind from a fixed vocabulary (start,glossary,index,
…), an optional title and a place named like the target of a link. They
are stored in an optional table, a resource of the newkind4 placed
after the five fixed ones. -
mbook:Book::landmarksandBook::set_landmarkswith the new
Landmark,BookReader::read_landmarkswithLandmarkEntry,
ResourceKind::Landmarks,Error::InvalidLandmarkand
ProblemKind::DanglingLandmark. A book without landmarks is written to
the same bytes as before. -
mbook-converter: the landmarks of an EPUB 3 book, and the guide of an
EPUB 2 book, become the landmarks of the converted book. -
RFC 0003, the API of
mbook-converter. -
mbook-converter, the crate of RFC 0003:Converterturns a book given as
anyReador as a byte slice into an mbook file or into aBook.- Source formats, one Cargo feature each and all on by default: EPUB, FB2
(plain or inside a ZIP), PDF (a scan becomes one picture per page), comic
book archives, Word documents, HTML, Markdown and plain text. The format
is detected from the content. - Pictures in JPEG, PNG, GIF, WebP and BMP are encoded as AVIF through the
imagecrate; AVIF pictures are kept as they are. - Links inside a book keep their target down to the block, through anchor
definitions; the contents of the source become the contents of the book. - Whatever cannot be kept is reported as a
Warning.
- Source formats, one Cargo feature each and all on by default: EPUB, FB2
-
mbook, the library of RFC 0002:BookReaderopens a file from anything that can seek, checks its tables
against RFC 0001, and decodes chapters and pictures on demand; it
resolves link and picture destinations.Bookis the in-memory model:Book::readandBookReader::loadbuild
it from a file,Book::newfrom nothing; chapters and pictures are
added, moved and removed by path.Book::checkreports every broken link, missing picture, piece of raw
HTML and unresolved contents item;Book::writeandBook::saverefuse
an invalid book, andsavereplaces a file atomically.- Anchors and the table of contents are computed from the headings, with
names by GitHub's rule; picture sizes are read from the AVIF container.
-
Workspace lints, CI, and the repository's policy documents.
-
RFC 0001, ADR-0008 and ADR-0009: a chapter can name lines that are not
headings, with an anchor definition in front of the line,[fig-1]: #fig-1.
The names are stored in an anchor table of the chapter, a resource of the
newkind3 placed directly before it, and are reached by a link fragment
like the anchor of a heading. -
mbook: aBookreads the anchor definitions of a chapter from its
text, whenever the text is given or replaced, and shows them as
Chapter::extra_anchors;BookReader::read_extra_anchorsreads them from
a file, andBookReader::read_resolvefollows a link to one. A book
without anchor definitions is written to the same bytes as before, so the
checked-in example file is unchanged.
Changed
-
mbook:BookReader::resolvereturns the new
Destination::ExtraAnchorfor a fragment that is not the anchor of a
heading when the target chapter has an anchor table.ResourceKindhas
the variantChapterAnchors, andErrorthe variantUnresolved. -
RFC 0001: a
tocrow with a non-zero offset must match ananchorsrow,
so that a contents target can always be written as a link destination. -
RFC 0001: a heading whose anchor name would be empty gets no anchor row;
and the part of a valid position that needs the text of a chapter is
checked when that chapter is decoded.