Commit Graph
100 Commits
Author SHA1 Message Date
Agel 870bd1c0be fixed format plan 2026-10-30 09:06:38 +01:00
Agel a9630599b1 agents update 2026-10-30 08:51:51 +01:00
Agel c5439099f6 fb2 support 2026-10-29 17:31:37 +01:00
Agel 6fb7798476 Merge branch 'add_fb2_format_support' into render-rewrite 2026-10-29 15:35:56 +01:00
Agel 513ae6b8ec Add Allium specification for FB2 format support
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.
2026-10-29 15:35:35 +01:00
Agel 18ea76bd89 Merge branch 'fix_epub_author_parsing' into render-rewrite 2026-10-29 15:33:04 +01:00
Agel c54fe9581f epub parsing spec 2026-10-29 15:32:32 +01:00
Agel 35d460e1c7 Merge branch 'distill_text_layout_engine' into render-rewrite 2026-10-29 15:31:51 +01:00
Agel e64bf33f65 test: propagate text layout engine specification test suite
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`.
2026-10-29 15:21:28 +01:00
Agel bde4e310b5 feat(formats): implement author attribution service and propagate spec tests
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.
2026-10-29 15:21:06 +01:00
Agel 3ff861a2a0 test(reading): propagate Allium specification tests for Knuth-Plass rendering pipeline
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.
2026-10-29 15:18:14 +01:00
Agel 306d4cac5c Use default Graphics API for all platforms 2026-10-29 12:28:05 +01:00
Agel d9a0991f9b more performance optimizations + cleanup 2026-10-29 12:12:02 +01:00
Agel b23713bea6 fix ui state save 2026-10-29 11:25:56 +01:00
Agel 6c821c6a3c hopefully true virtual list layout 2026-10-28 23:44:54 +01:00
Agel 905c61da52 visual fix 2026-10-25 22:12:32 +01:00
Agel 00c88a940c windows build fix 2026-10-25 21:41:24 +01:00
Agel 5b0dcc1b07 added vscode run confgi 2026-10-25 20:30:06 +01:00
Agel 06dc29d849 updated docs 2026-10-25 20:12:23 +01:00
Agel d14170a68f reintroduced epub support 2026-10-25 19:59:23 +01:00
Agel 49a959a89d fix manga pages sorting 2026-10-25 16:08:27 +01:00
Agel 3faedd4251 old render cleanup part 3 2026-10-25 15:43:51 +01:00
Agel cef762c3ee old render cleanup part 2 2026-10-25 15:10:38 +01:00
Agel acc7e71e7b old render cleanup part 1 2026-10-25 14:22:12 +01:00
Agel 83968646c6 Refactor using Fable 2026-07-31 17:31:02 +02:00
Agel 1a60a6b93c few refactors 2026-07-07 19:25:28 +02:00
Agel 4f7ac82d62 trigger build 2026-05-24 08:51:12 +02:00
Agel bb18197228 fix? build-windows 2026-05-24 08:41:21 +02:00
Agel fd751d6111 Gitlab NoInputs 2026-05-23 20:38:46 +02:00
Agel def70d053c Gitlab Inputs 2026-05-23 20:36:57 +02:00
Agel e3766c8e55 fix? build-docker 2026-05-23 20:24:05 +02:00
Agel bfc50a67b8 CBR and folder formats 2026-05-23 00:15:35 +02:00
Agel e043ded6b1 Manga rendering mode 2026-05-22 12:10:42 +02:00
Agel 9167f10b1c Manga (CBZ) Support 2026-05-12 16:37:03 +02:00
Agel 20dfdb3745 increase flick speed to speedup scrolling 2026-04-20 14:36:19 +02:00
Agel 94d4fe762c Add format text to history view 2026-04-20 11:54:57 +02:00
Agel 232d86716d FB2 fixes 2026-04-17 22:33:36 +02:00
Agel 7fdd56a7f5 Initial FB2 support 2026-04-17 16:59:36 +02:00
Agel 04bf291229 make settings a popup 2026-04-17 15:30:00 +02:00
Agel d9ff29ca03 fix initial custom theme 2026-04-17 12:32:13 +02:00
Agel 8879fa9aba fix history book positions 2026-04-17 12:28:03 +02:00
Agel f80fefa34f fix macos book opening 2026-04-17 11:14:52 +02:00
Agel 0c17c7d351 fix linux tests 2026-04-17 09:20:47 +02:00
Agel 116fcdf7a4 Add back history view cover photos 2026-04-17 00:12:13 +02:00
Agel 9e19a76a5a Fix thread warning 2026-04-16 22:50:03 +02:00
Agel 96b7838a4b Add custom theme 2026-04-14 20:52:07 +02:00
Agel 598566c2a4 Rename Library to History 2026-04-11 22:22:14 +02:00
Agel 2568f9089b Add Mac support 2026-04-10 00:07:16 +02:00
Agel ad0d7376b3 Web image support 2026-04-08 22:10:10 +02:00
Agel 86e44e5d2a Improve format and error handling 2026-04-08 20:41:14 +02:00
Agel 503324e7e3 make UI look snappier than it is on (by making loading less noticable) 2026-04-08 16:00:04 +02:00
Agel a54312a397 some spacing issues fixed 2026-04-08 14:41:31 +02:00
AgelandClaude Haiku 4.5 efd52a57ef Remove obsolete BookController files and update documentation
BookController was superseded by the Book class during a prior refactoring.
The old files were never removed and are not in CMakeLists.txt. Deleted:
- src/backend/BookController.h/cpp (not in build, calls non-existent AppState APIs)
- tests/BookControllerTest.cpp (not in CMake test targets)

Updated CLAUDE.md architecture documentation to reference Book instead of
BookController for all book management operations and tests.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-08 14:22:34 +02:00
Agel 9280c838b2 Some refactor 2026-04-08 14:01:03 +02:00
Agel 1ecc6e5826 Update .gitlab-ci.yml to handle FORCE_REBUILD_IMAGE with configurable options 2026-04-03 13:57:29 +02:00
Agel a31b20534a Upgrade to Qt 6.10.3, refactor AppState for LibraryModel integration, add ChunkMeasurer tests, and update CI/docker configurations. 2026-04-03 13:55:28 +02:00
Agel 0303107fa2 added qt design studio install 2026-03-31 21:26:01 +02:00
Agel 8a1265261c sidebar fixed 2026-03-31 21:15:21 +02:00
Agel ff88cf581b Add DarkTheme and LightTheme switching 2026-03-31 20:43:37 +02:00
Agel 7409ba789a add bot profile picture 2026-03-31 10:47:16 +02:00
Agel 37bfb02602 smooth scrolling 2026-03-30 13:21:04 +02:00
Agel 51a58070ee build fix 2026-03-30 13:09:09 +02:00
Agel ba2f7207d8 revamp shortcuts 2026-03-29 23:20:46 +02:00
Agel c9e07a5c8a build fix 2026-03-29 23:19:12 +02:00
Agel 49ae235e0c add some more modules 2026-03-29 23:13:16 +02:00
Agel bf31f5ca98 added image support 2026-03-29 20:49:45 +02:00
Agel 1c8277f7e9 ref 2026-03-29 16:38:44 +02:00
Agel b663a4d79d update scripts, readme and open sidebar on startup without book 2026-03-29 15:38:39 +02:00
Agel 93c43259b8 set ci job tags to right runner would be picked up 2026-03-24 15:57:41 +01:00
Agel f311904bb5 Try to switch to personal shell runner 2026-03-24 13:34:44 +01:00
Agel 808ec3f787 Display all chapters 2026-03-23 23:28:23 +01:00
Agel d808f45346 More refactor 2026-03-23 23:20:25 +01:00
Agel 1d3b58ac46 scroll fixes 2026-03-23 22:57:57 +01:00
Agel f84e109a64 a bit of refactor 2026-03-23 22:49:46 +01:00
Agel 24d0b84aab hide sidebar as well 2026-03-21 01:40:54 +01:00
Agel c0c4ac8d4e remove placeholder 2026-03-21 01:38:26 +01:00
Agel 2a96dad86b Add shortcuts 2026-03-21 01:35:19 +01:00
Agel 5f642c4806 Add logging in debug build and force graphics API 2026-03-20 23:33:19 +01:00
Agel 62873ff77f Added more settings 2026-03-20 17:49:57 +01:00
Agel 562692954d fix current page update 2026-03-20 17:08:17 +01:00
Agel d42b313d77 Save more state on exit 2026-03-20 17:02:09 +01:00
Agel 0411de6174 fix initial current page number 2026-03-20 14:48:14 +01:00
Agel a294af8bde build fix? 2026-03-20 13:41:28 +01:00
Agel a2855fccd0 fix animations 2026-03-20 13:33:36 +01:00
Agel 3632f29c1d support opening files from the command line 2026-03-20 11:41:49 +01:00
Agel c4046d8533 add library with reading history, progress tracking, and view persistence 2026-03-20 11:20:16 +01:00
Agel c62733bc26 windows icon fix 2026-03-20 09:19:33 +01:00
Agel 07f664a660 windows build fixes 2026-03-20 08:53:39 +01:00
Agel 85e530e312 build and instruction fixes 2026-03-20 08:32:22 +01:00
Agel f328e7dab0 initial epub support 2026-03-19 23:27:01 +01:00
Agel 53d6d541a7 allow listing packages 2026-03-19 23:03:38 +01:00
Agel 10f0fc52c7 fixed pagination 2026-03-19 23:00:10 +01:00
Agel 43e75d3d8f Merge branch 'remove-chapters'
# Conflicts:
#	src/backend/ReadingModel.h
#	src/qml/components/Footer.qml
#	tests/ReadingModelTest.cpp
2026-03-19 22:43:02 +01:00
Agel 1a4726b95a an unsuccessful attemnt to calculate current/total pages 2026-03-19 22:39:40 +01:00
Agel cf1721f916 hide chapters for formats that doesn't support it 2026-03-19 22:34:34 +01:00
Agel 353c82f6d6 fix icon on linux 2026-03-19 22:03:43 +01:00
Agel 85dc558793 Icon transparency fixes 2026-03-19 09:12:56 +01:00
Agel cb48341eea updated icons and wiki generation 2026-03-18 20:05:05 +01:00
Agel f82bb6305b fix windows artifact packaging name 2026-03-18 16:24:21 +01:00
Agel 22cdde9c6d fix linux build 2026-03-18 15:52:06 +01:00