Txt file fix (#35)

* Fixed virtualization data indexing and improved text file to EPUB conversion logic.

- Corrected array indexing for `chunksData` and `chunkHeights` in `epub_reader.js` to prevent overwriting entire arrays.
- Refined virtualization intersection observer to properly restore and unload chunk content using index-based caching.
- Updated `SingleFileImporter.kt` to convert plain text into structured HTML paragraphs instead of a single `pre` tag.
- Enhanced CSS styles for imported single-file documents and added HTML entity escaping.

* Adjusted text layout and enhanced pagination mismatch logging

*   Configured `PlatformTextStyle` and `LineHeightStyle` to improve text measurement consistency.
*   Updated `checkLayoutMismatch` to include text snippets and handle zero expected height.
*   Refined `Modifier` application order in the reader view.
*   Ensured `maxHeight` is set to `Infinity` during text measurement in `Paginator`.
This commit is contained in:
Aryan 2026-03-06 14:06:29 +05:30 committed by GitHub
parent 506f60473c
commit 8f52549c19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 98 additions and 63 deletions

View file

@ -20,6 +20,7 @@ if (localPropertiesFile.exists()) {
android {
namespace = "com.aryan.reader"
compileSdk = 35
ndkVersion = "29.0.14206865"
defaultConfig {
applicationId = "com.aryan.reader"