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.
koreader/frontend
Aleksa Sarai 7a0e3d5e68 readerhighlight: remove selected_word and use selected_text everywhere
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
..
apps readerhighlight: remove selected_word and use selected_text everywhere 3 years ago
device Add initial support for Kobo Sage (Cadmus) (#8361) 3 years ago
document kopt: add fallbacks for cases where kctx is not in cache 3 years ago
ui readerhighlight: remove selected_word and use selected_text everywhere 3 years ago
cache.lua DocCache: Allow disabling it (again) (#8198) 3 years ago
cacheitem.lua Cache: Some more tweaks after #7624 3 years ago
configurable.lua KOPTInterface: Minor optimization when hashing the configurable status 3 years ago
dbg.lua [doc] Documentation stub for Dbg module (#7677) 3 years ago
depgraph.lua Tame a few tests that relied on `pairs` being somewhat deterministic (#6371) 4 years ago
device.lua Truly silence the attempt at loading SDL2 3 years ago
dispatcher.lua Dispatcher: fix horizontal margins (#8344) 3 years ago
docsettings.lua DocSettings/Purge .sdr: reword, don't purge other books (#8348) 3 years ago
dump.lua Order keys in settings.reader.lua (#6868) 4 years ago
fontlist.lua fontlist: disable/enable some Kindle fonts (#8233) 3 years ago
gettext.lua [fix] Always initiate empty context table (#6874) 4 years ago
httpclient.lua build: enforce luacheck in travis build 8 years ago
logger.lua use android log categories 5 years ago
luadata.lua Use fsync() for more robust setting files saving 5 years ago
luasettings.lua LuaSettings: Add a method to initialize a setting properly (#7371) 3 years ago
luxl.lua [fix] Don't break OPDS parsing on HR tags (#5949) 4 years ago
optmath.lua [[doc] Add documentation to optmath (#6258) 4 years ago
persist.lua Cache: Fix a whole lot of things. 3 years ago
pluginloader.lua crash.log: write plugin regular information only in debug mode (#8230) 3 years ago
pluginshare.lua Move PluginShare.backgroundJobs into PluginShare module (#3128) 7 years ago
random.lua Faster blitting @ BB8/BBRGB32 when no processing is needed (#4847) 5 years ago
readcollection.lua Minor util & ffi/util cleanups (#6657) 4 years ago
readhistory.lua ReadHistory: nil guard a Document instance access 3 years ago
socketutil.lua Unify LuaSocket usage (#7405) 3 years ago
util.lua util.utf8: improve CJK character detection 3 years ago
version.lua Centralize one time migration code after updates (#7531) 3 years ago