🚀 Flexible text parsing and storing system

Pros:
* Removed text update (now it is always updated and parsed from the file each time)
* Removed text storage (smaller app size)
* Dramatically sped up loading in Browse (10 books in ~1s)

Cons:
* Longer Reader loading time (~3x, partly fixable)
* More dependency on the file (fixable)

Resolves: #134
This commit is contained in:
Acclorite 2024-12-30 18:29:37 +02:00
parent aa657790d0
commit 3853727ae7
70 changed files with 294 additions and 1609 deletions

View file

@ -32,9 +32,7 @@
<string name="delete_book">Delete book?</string>
<string name="move_book">Move book?</string>
<string name="delete_history">Delete reading history?</string>
<string name="confirm_update">Confirm update?</string>
<string name="enable_check_for_updates">Enable check for updates?</string>
<string name="update_book">Update book?</string>
<!-- Dialog Descriptions -->
<string name="storage_permission_description">
@ -66,10 +64,6 @@
It will delete the whole history from the database.
After deleting the whole history, the order of the books will be reset.
</string>
<string name="confirm_update_description">
Update this book\'s text and chapters.
The progress should remain unchanged unless the order of paragraphs was changed.
</string>
<string name="update_app_description">
New app version was found.
Do you want to proceed and go to the release page?
@ -80,13 +74,6 @@
when app starts.
Do you want to proceed and enable «Check for updates»?
</string>
<string name="update_book_description">
Update of the text has been found.
Update is needed to ensure latest parser methods are used.
It is offline process.
Your progress will not be affected unless big changes occur.
Do you want to proceed with update?
</string>
<!-- Errors -->
<string name="error_permission">
@ -156,8 +143,6 @@
<string name="copy">Copy</string>
<string name="translate">Translate</string>
<string name="dictionary">Dictionary</string>
<string name="retry">Retry</string>
<string name="confirm">Confirm</string>
<string name="next">Next</string>
<string name="yes_go_to_help">Yes, go to Help</string>
<string name="no">No</string>
@ -260,9 +245,6 @@
</string>
<string name="perception_expander_padding_option">Line side margin</string>
<string name="perception_expander_thickness_option">Line thickness</string>
<string name="check_for_text_update_option">Check for text update</string>
<string name="check_for_text_update_option_desc">Automatically check whether there is text update</string>
<string name="check_for_text_update_toast_option">Show \"text is up-to-date\" toast</string>
<string name="screen_orientation_option">Screen orientation</string>
<string name="custom_screen_brightness_option">Custom brightness</string>
<string name="screen_brightness_option">Brightness</string>
@ -373,9 +355,6 @@
<!-- Snackbar messages -->
<string name="history_element_deleted">History element was successfully deleted.</string>
<string name="file_not_found">File \"%1$s\" was not found.</string>
<string name="book_updated">Book\'s text was successfully updated.</string>
<string name="nothing_changed">Text is up-to-date.</string>
<!-- DropDown properties -->
<string name="move_this_book">Move</string>
@ -492,15 +471,6 @@
or Appearance category to customize Colors settings.
</string>
<string name="help_title_how_to_update_book">How do I update a book?</string>
<string name="help_desc_how_to_update_book_1">Go to the</string>
<string name="help_desc_how_to_update_book_2">Library</string>
<string name="help_desc_how_to_update_book_3">
and click the book\'s cover image to see book\'s details.
Pull down the screen or click the refresh icon in the upper right corner to update the book.
If book\'s file changed you may confirm and update the book or cancel update.
</string>
<string name="help_title_how_to_manage_history">How do I manage history?</string>
<string name="help_desc_how_to_manage_history_1">Go to the</string>
<string name="help_desc_how_to_manage_history_2">History</string>
@ -598,7 +568,6 @@
<string name="yesterday">Yesterday</string>
<!-- Content description -->
<string name="refresh_book_content_desc">Refresh book</string>
<string name="continue_reading_content_desc">Continue reading</string>
<string name="go_back_content_desc">Go back</string>
<string name="cover_image_content_desc">Cover image</string>
@ -645,7 +614,6 @@
<string name="checkpoint_back_content_desc">Checkpoint back</string>
<string name="checkpoint_forward_content_desc">Checkpoint forward</string>
<string name="chapters_content_desc">Chapters</string>
<string name="update_text_content_desc">Update text</string>
<string name="more_content_desc">More</string>
</resources>