Commit graph

255 commits

Author SHA1 Message Date
Aryan
056485a140
General improvements (#316)
* Added support for right text alignment in epub reader

* Added tabs management to PDF navigation drawer

* Implemented unified selection menu placement logic

* Added reset functionality for toolbar customization

* Improved highlight filtering in epub pagination

* Migrated hardcoded UI strings to string resources

* Extracted desktop application logic from Main.kt into modular files

* Refactored Main.kt by extracting PDF and EPUB logic into specialized files

* Added Spanish language support

* Added system default option to app language selection
2026-05-16 16:19:31 +05:30
Aryan
759d4b73a0
Merge pull request #310 from Aryan-Raj3112/translations
Translations update from Hosted Weblate
2026-05-15 22:42:52 +05:30
Hosted Weblate
80d22a6c50
Merge remote-tracking branch 'origin/main' 2026-05-15 19:11:22 +02:00
Aryan
d5bee26da4
Merge pull request #309 from Aryan-Raj3112/translations
Translations update from Hosted Weblate
2026-05-15 22:41:14 +05:30
Hosted Weblate
5696b9ca13
Merge remote-tracking branch 'origin/main' 2026-05-15 17:06:59 +00:00
Hosted Weblate
75f64dc174
Merge remote-tracking branch 'origin/main' 2026-05-15 19:06:59 +02:00
Aryan
b20ade9946
Desktop app (#308)
* Implement build profiles and feature policy for offline desktop builds

* Introduce unified cross-platform Settings Hub

* Refactor main settings into a hierarchical page-based navigation model

* Refactor library projection to use shared multiplatform logic

* Refactor UI state consumption by removing intermediate screen models

* Introduce AndroidSharedStateBridge to centralize state mapping and reduction logic

* Refactor state management for tabs, selection, and pinning to use shared bridge logic

* Refactor file type management and validation into a centralized shared module

* Centralize file type resolution and improve handling of unknown types

* Centralize book import logic with SharedImportPlanner

* Refactor magnifier geometry logic and coordinate mapping

* Properly handle orientation changes in scroll-locked PDF reader

* Add screen orientation controls to EPUB and PDF readers

* Implement right-to-left (RTL) pagination support and refactor reader menus

* Separate right-to-left pagination settings for PDF and EPUB

* Ensure PDF page data is scoped by document key for multi tab support

* Implement theme-aware link styling for the epub reader

* Implement jump history for back and forward navigation in the epub reader

* Improve locator handling and navigation logic in paginated reader mode

* Implement stable pagination navigation and location tracking

* Centralize banner message management and auto-dismiss logic in MainViewModel

* Implement zoom and pan state preservation for PDF pan lock mode

* Enhance reader navigation UI and workspace layout management in desktop app

* Refactor reader navigation sidebar and relocate search controls in desktop app

* Enhance reader UI with redesigned selection menus and bottom sheet overlays

* Implement custom highlight palettes and reader theme customization in desktop app

* Implement cross-platform modal layer and refine reader UI styling

* Improve highlight accuracy and implement metadata enrichment on book open in desktop app

* Implement two-page spread layout for paginated reader on desktop

* Implement persistent caching for book loading and pagination in desktop app

* Implement persistent caching for book loading and pagination in desktop app

* Optimize reader settings updates by separating layout and appearance changes in desktop app

* Improve desktop window branding and native Windows styling

* Enhance reader selection interactions and UI across EPUB and PDF viewers in desktop app

* Refine selection handle positioning and interaction logic

* Implement EPUB selection debug logging and improve handle targeting

* Optimize desktop book loading performance and UI responsiveness

* Implement anchored zoom gestures and rendering optimizations for the Desktop PDF viewer.

* Implement smooth zoom preview for the PDF reader in desktop app

* Optimize PDF rendering performance and responsiveness in the desktop reader

* Implement conditional diagnostic logging and update desktop build configuration

* Implemented hierarchical TOC, custom scrollbars, and improved desktop modal handling

* Added management options for annotations and highlights in the sidebar in desktop app

* Implemented `SharedStableOutlinedTextField` and updated text input fields to use `TextFieldValue` for improved cursor and selection stability.

* Refined library filters and enhanced OPDS functionality in desktop app

* Improved EPUB pagination measurement and implemented layout diagnostic logging for desktop app

* Added PPTX support including document parsing, rendering, and indexing

* Improved PPTX rendering and layout accuracy

* Implemented text autofit support for PPTX rendering

* Enhanced PPTX rendering with support for custom geometry, automatic numbering, table styles, and image opacity

* Improved EPUB pagination accuracy and added layout telemetry in desktop app

* Improved folder synchronization with metadata-only mode and hashed sidecar management in desktop app

* Implemented rich text font scaling and migrated desktop ink tools to custom pointer input handling

* Implemented billing account obfuscation

* Implemented hierarchical folder navigation and improved library selection functionality in desktop app

* Implemented platform-aware directory resolution and multi-platform native library support for desktop

* Added full-screen mode for the reader workspace

* Added PDF zoom indicator and interactive vertical scrollbar with page tooltips

* Refactored speech bubble prefetching to use a limited radius and improved ML detector initialization and lifecycle management

* Updated PDF indexing to replace existing page text and removed search result item keys

* Implemented "preparing" foreground notification for TTS service

* Optimized PDF rendering performance by pre-calculating page-specific annotations

* Refactored desktop packaging tasks and improved distribution configuration

* Optimized EPUB parser memory usage and added path traversal protection

* Refactored WorkManager monitoring logic and added work pruning

* Implemented comprehensive resource cleanup and memory management for WebView-based components to prevent memory leaks

* Implemented bitmap size limits and scaling to prevent canvas rendering errors

* Split long text paragraphs into multiple semantic blocks during HTML parsing

* Implemented local ActionMode for text selection to prevent platform crashes

* Refactored PPTX text layout, optimized HtmlParser block detection, and improved banner dismissal logic

* Added desktop startup splash screen and deferred WebView initialization

* Reorganized settings hub and added separate PDF reader defaults

* Implemented embedded cover extraction and metadata support for MOBI and FB2 formats

* Implemented batching for MetadataExtractionWorker and optimized EPUB metadata extraction performance.

* Implemented procedurally generated book covers and replaced static placeholders

* Redesigned search UI with a top bar and results overlay in desktop app

* Added PDF page gap and overlay visibility options and implemented DesktopBookImporter

* Refactored PDF reader UI with tabbed inspector and improved theme background handling in desktop

* Implemented PDF viewport persistence for zoom and scroll positions in desktop app

* Improved desktop fullscreen implementation and state restoration

* Implemented desktop window state persistence

* Implemented flavor-based branding and ProGuard configuration for desktop builds

* Implemented precise reader positioning and improved highlight rendering logic in desktop app

* Added support for user-editable book metadata

* Enhanced book metadata support and integrated info/edit dialogs

* Implemented embedded EPUB metadata editing

* Improved highlight mapping and added custom scrollbar styling for the reader.

* Reduced desktop WebView bundle size by excluding unused locales and runtime files

* Added neutral pan mode as the default PDF interaction state.

* Refactored library empty states and updated primary navigation tabs in desktop app

* Implemented native paginated reader and unified content rendering architecture in desktop epub reader

* Implemented native EPUB image rendering for desktop and improved block layout spacing with margin collapsing.

* Improved pagination overflow detection in desktop

* Implemented multi-block text selection with interactive handles and CFI support in desktop epub pagination
2026-05-15 22:36:51 +05:30
Hosted Weblate
2cab2691ea
Merge remote-tracking branch 'origin/main' 2026-05-14 06:56:45 +00:00
Hosted Weblate
3c2015fe58
Merge remote-tracking branch 'origin/main' 2026-05-14 08:56:45 +02:00
Dimitris Dafnis
c0d0e57e79
fix(webview): gate setWebContentsDebuggingEnabled on BuildConfig.DEBUG and drop unused allowFileAccess in MathMLRenderer (#303)
Three WebView setup paths exist in the app. MyApplication.kt already wraps
setWebContentsDebuggingEnabled in 'if (BuildConfig.DEBUG)'. The other two
paths were missing the guard:

  - MainActivity.onCreate calls WebView.setWebContentsDebuggingEnabled(true)
    unconditionally at the end of onCreate. On a release build that leaves
    chrome://inspect attachable from any USB-connected machine for any
    WebView the app spawns later. CWE-489.

  - MathMLRenderer.setupWebView does the same thing before constructing
    the renderer WebView. Same exposure.

While in MathMLRenderer, drop settings.allowFileAccess = true. The
renderer only ever loads file:///android_asset/MathML-template.html, and
the android_asset scheme is permitted on every supported Android version
even when setAllowFileAccess(false) is in force. The flag is dead and
the WebView is set up with javaScriptEnabled = true + a JS bridge, so
leaving it on widens the surface for no benefit.

ChapterWebView intentionally keeps allowFileAccess = true because the
custom-font path renders @font-face src: url('file://<path>') against
the user-picked font file.
2026-05-14 12:26:38 +05:30
berebara
5c15978370
Translated using Weblate (Russian)
Currently translated at 100.0% (919 of 919 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/ru/
2026-05-13 23:11:32 +02:00
Sasha Glazko
dafb4f5a52
Translated using Weblate (Belarusian)
Currently translated at 18.3% (169 of 919 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/be/
2026-05-11 19:11:39 +02:00
berebara
52bbbfc884
Translated using Weblate (Russian)
Currently translated at 100.0% (919 of 919 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/ru/
2026-05-11 19:11:37 +02:00
vamah09
c9c3a8f65a
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 11.2% (103 of 919 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/zh_Hans/
2026-05-11 19:11:35 +02:00
vamah09
fdbde4a0fb
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (13 of 13 strings)

Translation: Episteme/plurals
Translate-URL: https://hosted.weblate.org/projects/episteme/plurals/zh_Hans/
2026-05-11 18:11:38 +02:00
Hosted Weblate
c75a07c9da
Merge remote-tracking branch 'origin/main' 2026-05-10 06:48:54 +02:00
Hosted Weblate
a79d379ff8
Merge remote-tracking branch 'origin/main' 2026-05-10 06:48:53 +02:00
Aryan
6897496423
Add screen capture protection (#292)
Co-authored-by: Rahul Sharma <rahul.shwork@gmail.com>
2026-05-10 10:18:48 +05:30
Hosted Weblate
12a8c1fc30
Merge remote-tracking branch 'origin/main' 2026-05-10 04:37:51 +00:00
koukei
3cdb8f59db
Translated using Weblate (Indonesian)
Currently translated at 12.8% (118 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/id/
2026-05-10 04:37:51 +00:00
Otto Zumkeller
dda9415a77
Translated using Weblate (German)
Currently translated at 93.1% (852 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/de/
2026-05-10 04:37:47 +00:00
Hosted Weblate
e01fa07dda
Merge remote-tracking branch 'origin/main' 2026-05-10 06:37:43 +02:00
Aryan
8366d76dcd
Windows (#291)
* Centralize library management logic and introduce support for plain text and HTML formats

* Centralize library management logic and introduce support for plain text and HTML formats

* Expand unit test coverage for library state management, UI models, and MainViewModel features.

* Add comprehensive unit tests for PDF reader core logic, preferences, and data persistence

* Add unit tests for EPUB parsing, content loading, search functionality, and reader JavaScript bridges.

* Add unit tests for OPDS parsing and Smart Collection engine, and integrate Kover plugin

* Add comprehensive unit tests

* Centralize library snapshot serialization in the `shared` module and improve filtering and sorting logic.

* Implement text selection, highlighting, and reading state persistence for PDF and EPUB engines in desktop version

* Folder import support for desktop app

* Introduce Smart Shelves with rule-based filtering in desktop version

* Implement shared EPUB annotation serialization and highlight rendering

* Centralize file type capabilities and platform-specific support logic

* Refactor reader state management to use a central reducer

* Implement customizable reader toolbar and advanced formatting settings in shared

* Implement locator-based navigation and customizable highlight palette for desktop app

* Enhance reader customization and expand search functionality in desktop app

* Redesign reader settings and tools into a tabbed control panel in desktop app

* Enhance reader navigation and highlight precision in desktop app

* Implement bidirectional position synchronization and dynamic highlights in the desktop reader

* Implement shared state management and enhanced search for the PDF reader in desktop app

* Add vertical scroll support to the desktop PDF reader

* Implement ink, text, and eraser annotation support in desktop PDF viewer

* Implement PDF bookmarks, Table of Contents, and annotation editing in desktop app

* Implement link handling and navigation for PDF and EPUB readers in desktop app

* Implement PDF jump history for navigation in desktop app

* Enhance PDF ink rendering and annotation capabilities in desktop app

* Implement advanced PDF text annotations with inline editing and rich styling in desktop app

* Add move handle and movement logic for PDF text annotations in desktop app

* Implement local folder synchronization and metadata sidecar support in desktop app

* Implement book metadata extraction and drag-and-drop import for Desktop

* Implement dynamic and custom app theme management for desktop

* Introduce canonical PDF annotation codec and support for multi-segment highlights

* Implement rich text editing and pagination support for the PDF reader in desktop app

* Improve PDF rich text pagination, synchronization, and observability in desktop

* Hide trailing structural page breaks in rich text editor

* Implement a unified JVM book loader and expand supported formats on Desktop

* Add comic archive support for Desktop and enhance MOBI parsing

* Implement shared OPDS catalog support and UI for Android and Desktop

* Improve native WebView lifecycle and surface transition management on Desktop

* Enable Compose Swing interop blending and simplify Desktop WebView management

* Integrate BYOK AI features and Cloud TTS for desktop

* Enhance Desktop TTS with streaming audio and improved secure storage for AI key

* Implement scoped Cloud TTS with synchronized highlighting for EPUB and PDF in desktop app

* Implement custom font management and utility screens in desktop app

* Implement PDFium-based PDF annotation export

* Remove PdfBox dependency and standardize PDF export via Pdfium

* Implement local audio caching and playback controls for Gemini Cloud TTS in desktop app

* Implement reader themes and custom texture support in desktop app

* Redesign non-reader UI with responsive navigation and enhanced library management in desktop app

* Introduce ReaderWorkspaceShell to unify EPUB and PDF reader layouts in desktop app

* Exclude manual-only files from automated sync and import

* Implement customizable Text-to-Speech (TTS) word replacements

* Optimize reader performance with persistent layout caching and decoupled theme rendering

* Improve position restoration during reader reconfiguration in epub pagination

* Use independent thickness for eraser tool and stylus override
2026-05-10 10:07:37 +05:30
Hosted Weblate
73556c2949
Merge remote-tracking branch 'origin/main' 2026-05-09 09:38:03 +02:00
Hosted Weblate
c9eb0bbb64
Merge remote-tracking branch 'origin/main' 2026-05-09 09:38:02 +02:00
koukei
2b19cbdf1c
Translated using Weblate (Indonesian)
Currently translated at 3.3% (31 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/id/
2026-05-09 09:38:02 +02:00
koukei
fe73d89d8a
Translated using Weblate (Indonesian)
Currently translated at 100.0% (13 of 13 strings)

Translation: Episteme/plurals
Translate-URL: https://hosted.weblate.org/projects/episteme/plurals/id/
2026-05-09 09:38:02 +02:00
Sietse Ringers
88c7fa7b5c
Support erasing with stylus button (#286) 2026-05-09 13:07:54 +05:30
koukei
92aa9523a6
Added translation using Weblate (Indonesian) 2026-05-09 09:17:53 +02:00
koukei
12d049747a
Added translation using Weblate (Indonesian) 2026-05-09 09:17:53 +02:00
Ksawery Szweda
701acbd0ce
Translated using Weblate (Polish)
Currently translated at 5.1% (47 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/pl/
2026-05-09 09:17:52 +02:00
Ksawery Szweda
788681e212
Added translation using Weblate (Polish) 2026-05-08 17:39:22 +02:00
micro201014
9665bf60d7
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 46.1% (6 of 13 strings)

Translation: Episteme/plurals
Translate-URL: https://hosted.weblate.org/projects/episteme/plurals/zh_Hans/
2026-05-08 17:39:22 +02:00
Ksawery Szweda
8ed41417b0
Added translation using Weblate (Polish) 2026-05-08 17:39:21 +02:00
micro201014
f36290a74e
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 2.8% (26 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/zh_Hans/
2026-05-08 17:39:21 +02:00
UnknownLi
a66ee73903
Translated using Weblate (Ukrainian)
Currently translated at 40.7% (373 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/uk/
2026-05-08 17:39:20 +02:00
berebara
3b947c215d
Translated using Weblate (Russian)
Currently translated at 100.0% (915 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/ru/
2026-05-08 17:39:20 +02:00
Alexandre Klein
0c991f17cb
Translated using Weblate (French)
Currently translated at 81.0% (742 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/fr/
2026-05-07 14:11:43 +00:00
FabiRich
a0f874d4d2
Translated using Weblate (German)
Currently translated at 77.3% (708 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/de/
2026-05-07 14:11:40 +00:00
Markus K
02f987f3af
Translated using Weblate (German)
Currently translated at 77.3% (708 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/de/
2026-05-07 14:11:38 +00:00
Enrico Ferrer
9b3104976c
Translated using Weblate (Portuguese (Brazil))
Currently translated at 7.2% (66 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/pt_BR/
2026-05-07 14:11:35 +00:00
Alexandre Klein
3bedaccdc6
Translated using Weblate (French)
Currently translated at 92.3% (12 of 13 strings)

Translation: Episteme/plurals
Translate-URL: https://hosted.weblate.org/projects/episteme/plurals/fr/
2026-05-07 16:11:34 +02:00
Dekotale
6b40c3aee9
Translated using Weblate (Spanish)
Currently translated at 30.7% (4 of 13 strings)

Translation: Episteme/plurals
Translate-URL: https://hosted.weblate.org/projects/episteme/plurals/es/
2026-05-06 12:46:04 +02:00
Dekotale
1050e1e02c
Translated using Weblate (Spanish)
Currently translated at 3.6% (33 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/es/
2026-05-06 12:46:03 +02:00
UnknownLi
fe713adba1
Translated using Weblate (Ukrainian)
Currently translated at 40.6% (372 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/uk/
2026-05-06 12:46:02 +02:00
UnknownLi
5ef79e0285
Translated using Weblate (Ukrainian)
Currently translated at 36.9% (338 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/uk/
2026-05-05 17:11:42 +00:00
Sasha Glazko
827b8a1cb8
Translated using Weblate (Belarusian)
Currently translated at 16.3% (150 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/be/
2026-05-05 17:11:39 +00:00
berebara
1396669498
Translated using Weblate (Russian)
Currently translated at 100.0% (915 of 915 strings)

Translation: Episteme/strings
Translate-URL: https://hosted.weblate.org/projects/episteme/strings/ru/
2026-05-05 17:11:33 +00:00
Hosted Weblate
f275fea71e
Merge remote-tracking branch 'origin/main' 2026-05-04 18:25:47 +02:00
FabiRich
552578ba34
Translated using Weblate (German)
Currently translated at 100.0% (13 of 13 strings)

Translation: Episteme/plurals
Translate-URL: https://hosted.weblate.org/projects/episteme/plurals/de/
2026-05-04 18:25:46 +02:00