- Add `build-windows-arm64` and `package-windows-arm64` stages to `.gitlab-ci.yml` and wire download links to wiki updates
- Create `scripts/mingw-w64-arm64-toolchain.cmake` targeting `Windows` / `aarch64` with LLVM-MinGW
- Update `docker/Dockerfile.build` with LLVM-MinGW toolchain, MSYS2 Qt 6.10 ARM64 packages, and ARM64 cross-compiled static libraries (libiconv, uchardet, zlib, minizip, libarchive)
- Isolate GCC x86_64 and LLVM-MinGW ARM64 toolchains in `scripts/mingw-w64-toolchain.cmake` and PATH configuration
- Refactor `packaging/package-windows.sh` to package both x86_64 and ARM64 runtime DLLs and support MSYS2 plugin/QML directory layouts
- Update `scripts/test-ci-windows.sh` with `--arm64`, `--only-arm64`, `--image`, and local image detection
- Guard `-mwindows` link flag with `if(MINGW)` in `CMakeLists.txt`
- Document Windows ARM64 build targets and instructions in `AGENTS.md` and `README.md`
Define the behavioral contract for reading FictionBook (.fb2, .fbz, and .fb2.zip) documents while maximizing code reuse with the existing EPUB pipeline:
- Support both uncompressed XML and ZIP-packed FB2 containers, selecting the first .fb2 entry (or first archive entry as fallback) and labeling .fb2.zip as FB2 in history.
- Auto-detect BOM and XML prolog encodings (including legacy Cyrillic encodings via iconv/QStringDecoder) with UTF-8 fallback.
- Expose base64 <binary> resources through the existing IByteSource and image://fb2/<id>?src=<filePath> provider infrastructure so EntryImageProvider and BookImageResolver work without format-specific branching.
- Share CSS cascading, image URL resolution, and ~512-character ContentChunk partitioning with EpubReader via a unified DOM-to-chunk pipeline, mapping FB2 semantic elements (<title>, <subtitle>, <epigraph>, <cite>, <poem>/<stanza>/<v>, <text-author>, <empty-line/>, <emphasis>, <strikethrough>, and <stylesheet>) onto existing layout primitives.
Formalize the Asteria Qt text layout engine behavior and establish
comprehensive test coverage across all 94 Allium specification
obligations for two-phase layout, Knuth-Plass line breaking, and
reading session state management.
- Add `specs/text-layout-engine.allium` detailing layout lifecycle,
generation monotonicity, viewport metrics, and contrast safety.
- Implement structural equality operators (`operator==`) across layout
domain value types (`BoxStyle`, `InlineItem`, `BlockItem`,
`ContentChunk`, `KnuthPlass::Item`, positioned line/run elements,
and `BookPosition`) to enable deterministic assertion testing.
- Introduce `TextLayoutEngineSpecTest` verifying entity fields, value
equality, enum comparability, contract signatures, config defaults,
lifecycle state transitions, rules, and invariants.
- Register `TextLayoutEngineSpecTest` in `CMakeLists.txt` and update
test inventory in `AGENTS.md`.
Book metadata extraction previously handled author parsing naively by taking only the first raw dc:creator string, ignoring MARC relator roles, multi-creator ordering, deduplication, and structured author fallbacks.
Define the formal author attribution model in specs/book-author-parsing.allium and propagate the specification into a comprehensive test suite (AuthorAttributionTest) covering all 23 obligations across value equality, lifecycle state transitions, contract invariants, and surface exposure.
Implement AuthorAttribution, AuthorAttributionService, and BookMetadataSurface to fulfill:
- Dublin Core precedence over structured author elements
- MARC role code resolution (aut -> Author, edt -> Editor, trl -> Translator, ill -> Illustrator, custom capitalized)
- Grouping creators by resolved role in order of appearance with deduplication
- Fallback formatting for structured author fields (first, middle, last, nickname)
- Complete status lifecycle enforcement (unparsed to parsed)
Register AuthorAttributionTest in CMakeLists.txt and update AGENTS.md documentation.
Formalize the behavioral specification for off-thread Knuth-Plass text
chunk layout and virtualized QML rendering in specs/knuth-plass-rendering.allium,
and introduce a test suite covering all 66 specification obligations across
value types, state machine transitions, invariants, and surface contracts.
To satisfy the specification's precondition and invariant contracts:
- Validate and clamp initial restore chunk bounds when opening documents
in ReadingModel to ensure anchor chunks remain strictly within bounds.
- Guard scroll position updates against negative and out-of-bounds chunk
indices to honor the ScrollPositionChanged preconditions.
- Emit positionSaved on publisher color toggles to fulfill the
PositionPersisted contract without triggering unnecessary relayouts.
- Register KnuthPlassRenderingSpecTest in CMakeLists.txt and document the
spec and test hierarchy in AGENTS.md.