-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: [Add more highlight color options] #9024
Comments
My case is slightly different but would also benefit from different colours for highlights. With different colours, I can distinguish between categories of highlighted passages: excerpts I did not understand, definitions, nice phrases, words I did not know, key quotes, etc. |
@mergen3107 thank you for mentioning that issue. How do you add the labels to the highlights? You add them simply as notes? Your use case and mine are essentially the same (though the categories would differ, naturally). I think another useful thing if colours are difficult to do be implemented, would be creating other highlighting styles such as dashed underline, wobbly underline, box-like highlighting, etc. Perhaps I should submit a separate issue for this. |
@kauesena |
@kauesena Does this work with your script-based workflow now? |
Our UI code doesn't support colors, everything uses gray. I once wished we could have colors for the calendar view, #5854 (comment) - but it would be a pain to update all the blitting code to support colors for the very few places we may actually use it (calendar, highlights), and the very few color devices as most ones are Black and White. |
I use boox ultra C and i bought it because of colors. I would be very happy if you add colors to the highlights! By the way, this is the best reader... Regards |
We can't have colors in the UI without some really extensive rework :/ |
I played around with this for a bit and had some initial success. Simple idea was to create |
I'm not the authority on this :) @NiLuJe is. (The risk is that if we start doing color, we'll want colored text, color hatching... and everything will be duplicated - and in frontend, we'll have to have code paths for color devices, to disable for gray devices - ie. the list of type of highlight will be 4 items for gray devices, but could get 32 items for colors, and the need to have a scrollable container, etc... - and most people, devs & users, won't test and care.) |
I'd have to see it to judge, but, yeaaaah, I'm also not necessarily enthused about it ;p. |
@Galunid would you mind sharing the diff? |
@smasher816 Sure Change extension from |
Thanks Galunid. I took your base and tried polishing it up a bit. Here is a video showing it off in action on an Onyx Tab Mini C. Here is a MR with my changes. Current implementation now uses a The frontend highlight code will respect the "Use color" setting from the Screen settings menu. If disabled a B&W color is passed in (as before) and if enabled then a ColorRGB32 is passed in causing the new paths to be called. Additionally, a "Highlight color" option (with translations) was added next to the current opacity option in the settings menu. This provides a few preset values, similar to the kindle app or the native drawing app. I think the above function shows off the features of koreader on a color e-ink tablet without adding too much feature creep, and without duplicating many functions/code. |
Individual colors actually wasn't too difficult to accomplish. Thanks @hius07 for the pointer on how "per highlight" styles were saved. |
This is nice. More context to organize one's highlights. |
How can I generate the apk with these modifications to test on Android? |
If you are just interested in the app, here it is https://gofile.io/d/u5C5je. It's signed with my key, so you'll have to uninstall KOReader first. It's build directly from the PRs linked, so it won't have changes after November 2023. |
@Galunid Thank you! Unfortunately, the app linked could not install on my Android 11 Meebook, Android 11 Bigme, or Android 12 Samsung. It crashed when I tried it with on Windows with Bluestacks. But, I cloned the KOreader repo. Not sure what to do about the KOreader-base modifications, but I'm getting there. Thanks for the direction! |
@Bluemoondragon07 Sorry about that. I messed up signing the apk and it doesn't work with android 11+. This one works (at least on my Android 12 device). https://gofile.io/d/GTfm79 |
Thank you so much, @Galunid . I was able to install on the Bigme Inknote and test things out! I feel so privileged. Some minor drawbacks like the color making the note underline invisible, highlight transparency being made void, and other things, but wow--this is a massively helpful implementation. Thanks! Now I'm gonna try to generate an up-to-date apk with the functions. |
Don't, this is next on my TODO list after koreader/koreader-base#1729 Your time will be better spent actually testing how it looks like & feels, as I have zero interest in this myself besides merging the sets of PR ;). |
Ah, okay. Couldn't get build_release.sh to work, anyways. On the other hand, I can definitely give feedback on your current version 👍🏽 |
Any update on this? |
I think @NiLuJe is a bit busy, but may welcome some testing on his updates to the related koreader-base PR koreader/koreader-base#1680. |
Yup, it was basically ready last I checked, I was just letting it sit before review (I may also have been waiting out a feature freeze at one point, can't recall). But, sure, if you can test it on an actual device, go ahead, as I don't have the hardware ;). |
Is there an apk? I'd happily test it on my colour e-ink device (Boox Note Air 3 C). |
I would like to test too if an apk could be found.
|
I'd like to test it on my pocketbook inkpad color 3. Is there any way to do so atm? |
Does your feature request involve difficulty completing a task? Please describe.
I use my Kobo to review a lot of academic papers, as such I rely heavily on highlights to retain the content I've read. However, my workflow involves different types of highlight's colour (yellow, green, red, purple). This is because I use Zotero as my ref manager and use this script to automatically add comments/tasks to my highlights based on the colour of the highlight.
Describe the solution you'd like
It would be fruitful if Koreader added the ability to select highlight colour (even in B/W e-ink reader). With this, we could review the PDFs in other devices without being limited to the rather dull gray highlight, which is the default highlight colour that KOreader adds to pdfs.
Describe alternatives you've considered
I could manually add a comment to each highlight with the colour I wanted it to be and then on PC check all highlights and convert them to the colour mentioned in the note of that highlight. But, that would be obviously tedious and labour.
Additional context
I've mentioned a specific workflow with Zotero, nevertheless I'm sure many people use highlights of different colour in their workflow. So please comment below if you also find this useful !
The text was updated successfully, but these errors were encountered: