Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Android Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 09-08-2023, 04:37 PM   #1
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Lithium EPUB Reader (Android) App Patches

I thought I'd share my patches for the Lithium EPUB Reader in case anyone finds them useful. I made them for myself back in 2019, and open-sourced them earlier this year.
  • Custom icon color.
  • Custom cover aspect ratio.
  • Optional cover-only grid view.
  • Debuggable reader webview.
  • Offline dictionary. (the original app doesn't even have one)
  • Custom fonts. (I really like Equity btw)
  • Smaller minimum font size.
  • Additional information in the reader footer.
  • Series metadata support.
  • Series section in library drawer.
  • Increased number of visible actions for the reader toolbar.
  • Support for inverted portrait/landscape rotation.

Note that this does not unlock the Pro features; you still need to get that the normal way through Google Play.

I've repeatedly tried to get in touch with the app's creator to try and get some or all of these improvements included in the base app without success, unfortunately.

Source Code & Build Instructions

.
Attached Thumbnails
Click image for larger version

Name:	lithiumpatch_dictionary.png
Views:	194
Size:	395.6 KB
ID:	203650   Click image for larger version

Name:	lithiumpatch_settings.png
Views:	186
Size:	150.5 KB
ID:	203651   Click image for larger version

Name:	lithiumpatch_progress.png
Views:	162
Size:	532.8 KB
ID:	203652   Click image for larger version

Name:	lithiumpatch_fonts.png
Views:	149
Size:	251.4 KB
ID:	203653   Click image for larger version

Name:	lithiumpatch_seriesmeta_list.png
Views:	134
Size:	393.2 KB
ID:	203654   Click image for larger version

Name:	lithiumpatch_seriesmeta_grid.jpg
Views:	132
Size:	243.0 KB
ID:	203655   Click image for larger version

Name:	lithiumpatch_seriesdrawer.png
Views:	128
Size:	105.1 KB
ID:	203656  

Last edited by geek1011; 09-09-2023 at 09:08 AM.
geek1011 is offline   Reply With Quote
Old 03-12-2024, 04:19 PM   #2
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
I've recently added some features to this:
  • Support for EPUB3-style series metadata.
  • Support for deep lookups in the dictionary (i.e., you can tap a word in a definition to look it up.
geek1011 is offline   Reply With Quote
Advert
Old 03-20-2024, 09:44 PM   #3
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
For testing, builds of the latest version can be found here.

These builds do not include sync support or additional custom fonts (you need to build it yourself for that), and pro features still require the pro version to be purchased from Google Play.
geek1011 is offline   Reply With Quote
Old 03-30-2024, 12:03 AM   #4
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Some more features:
  • Full-bleed full-screen background on devices with a notch.
  • More MD3-like design for library view.
  • Larger book covers in grid view (they now expand to fill the remaining width).
  • More built-in themes.
  • More fonts.
  • Option to enable hyphenation.
  • Expanded display settings popup.
  • Minor dictionary improvements.
geek1011 is offline   Reply With Quote
Old 03-30-2024, 08:01 AM   #5
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,162
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Can it do two pages side by side when tablet is in landscape? Unless I can't find the setting it's the only major omission on unpatched version.
Quoth is offline   Reply With Quote
Advert
Old 03-30-2024, 11:08 AM   #6
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by Quoth View Post
Can it do two pages side by side when tablet is in landscape?
No, it can't, but that should be possible. I've been looking at the pagination mechanism since I'm trying to fix the highlight bug (highlighting near the top/bottom of the page or over large margins causes unpredictable jumping and scrolling).

It shouldn't break anything if I make the resize logic halve the page width on a screen of a certain width, and since it does reflow during any size change, it shouldn't cause other issues.

Quote:
only major omission on unpatched version
I found the lack of a dictionary, custom fonts, and series metadata to be pretty major lol... and the minimum font size on badly formatted books. Those were the only patches I did for the first few years.
geek1011 is offline   Reply With Quote
Old 03-30-2024, 12:47 PM   #7
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,162
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by geek1011 View Post
I found the lack of a dictionary, custom fonts, and series metadata to be pretty major lol... and the minimum font size on badly formatted books. Those were the only patches I did for the first few years.
Yes, those are good additions.

However loads of Android epub apps not only don't have those but are essentially like reading on PalmOS, totally broken CSS and font support!
Quoth is offline   Reply With Quote
Old 03-30-2024, 04:50 PM   #8
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by Quoth View Post
However loads of Android epub apps not only don't have those but are essentially like reading on PalmOS, totally broken CSS and font support!
Yeah, I remember when I first found Lithium (when it had < 10K installs), I searched "epub" on Google Play and tried nearly every one of the ~40 apps in search of one with a decent interface and rendering.

The only other apps that were even close were Boox, Prestigio, and PocketBook. Moon+ is okay-ish, but it kind of just throws the kitchen sink at everything and doesn't do anything particularly well.

I liked Lithium at first sight, and when I started patching it, I liked it even more. It's very well-designed internally (unlike pretty much any other e-book app I've looked at apart from Libby), and since it's written in Java, it's much easier to patch to add major features than Kobo lol. Ever since then, I've been tweaking it until it's perfect...

The last big things on my TODO list are reworking pagination (for the highlight fix, for better FXL support, for faster chapter loads, for spreads on landscape, and better position saving especially while changing fonts), PDF support (using PDF.js), and some tweaks to make it work better with EPUB3 stuff.

Last edited by geek1011; 03-30-2024 at 06:03 PM.
geek1011 is offline   Reply With Quote
Reply

Tags
android, epub, patch, patches, patching


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lithium reader, can't get it to centre headings bookman156 Android Devices 24 08-24-2022 06:48 AM
Android devices. Built in e-reader vs. e-reader app. Your preferences? norweger Android Devices 19 11-10-2019 11:12 AM
[Android App] Default reader app selection? Mousebumples Devices 12 11-13-2012 12:12 PM
ePub and Mobi app for Android Kumabjorn Android Devices 8 08-27-2012 05:47 AM
Sony Reader Android App/ Nook Android App Quelle Android Developer's Corner 3 11-11-2011 11:31 PM


All times are GMT -4. The time now is 06:10 AM.


MobileRead.com is a privately owned, operated and funded community.