mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7a0e3d5e68
There were two ways of specifing selected text for a highlight depending on whether it was a "single word" or text selected using hold-and-pan. In addition to being a bit more complicated than is necessary, with the addition of the language support plugin system (where the "single word" selected might be expanded), it makes more sense to simply use the same logic and table structure for both cases. The dictionary lookup special case (hold-without-pan triggering a dictionary lookup by default) still works as before. In addition, this patch fixes a minor inefficiency during dictionary quick lookup -- before this patch, the highlight would be re-selected because the quick lookup window is run concurrently and tries to fetch ReaderHighlight.selected_text but this is set to nil immediately after triggering the lookup. This is unnecessary because :clear() will be called anyway when the quick pop-up closes, and so clearing this can be left until then. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> |
3 years ago | |
---|---|---|
.. | ||
data | 3 years ago | |
elements | 3 years ago | |
message | 3 years ago | |
network | 3 years ago | |
plugin | 3 years ago | |
widget | 3 years ago | |
bidi.lua | 4 years ago | |
cloudmgr.lua | 3 years ago | |
downloadmgr.lua | 3 years ago | |
event.lua | 3 years ago | |
font.lua | 4 years ago | |
geometry.lua | 3 years ago | |
gesturerange.lua | 3 years ago | |
hook_container.lua | 3 years ago | |
language.lua | 3 years ago | |
menusorter.lua | 4 years ago | |
otamanager.lua | 3 years ago | |
quickstart.lua | 3 years ago | |
renderimage.lua | 3 years ago | |
rendertext.lua | 3 years ago | |
screensaver.lua | 3 years ago | |
size.lua | 3 years ago | |
timeval.lua | 3 years ago | |
translator.lua | 3 years ago | |
trapper.lua | 3 years ago | |
uimanager.lua | 3 years ago | |
wikipedia.lua | 3 years ago |