Skip to content

Commit

Permalink
feat: Enhance text selection menu in reader (#204)
Browse files Browse the repository at this point in the history
* feat: Enhance text selection menu in reader
* Add missing translation strings
* Fix incorrect log message
---------
Signed-off-by: starry-shivam <[email protected]>
Co-authored-by: Acclorite <[email protected]>
  • Loading branch information
starry-shivam authored Aug 30, 2024
1 parent 9b8be6d commit d0b0ec7
Show file tree
Hide file tree
Showing 16 changed files with 571 additions and 13 deletions.
66 changes: 66 additions & 0 deletions .idea/other.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/src/main/java/com/starry/myne/epub/EpubParser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class EpubParser {
val emptyChapters = totalChapters - chapters.size

if (emptyChapters.toDouble() / totalChapters >= emptyChapterThreshold) {
Log.w(TAG, "More than 60% of chapters have empty bodies. Switching to spine-based parsing.")
Log.w(TAG, "25% or more chapters have empty bodies; switching to spine-based parsing")
return parseUsingSpine(document.spine, manifestItems, files)
}

Expand Down
Loading

0 comments on commit d0b0ec7

Please sign in to comment.