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.
dca65a793e
In order to make startSdcv usable for plugins that might need to do dictionary lookups in order to work, it is necessary to split out the core of startSdcv into another method which returns the raw data from sdcv. In addition, in order to make it possible to amortise the cost of each lookup (which could be fairly expensive) make it possible to pass multiple words to rawSdcv at the same time. Sdcv supports passing multiple words as arguments (which it then looks up in order and returns a separate JSON array per line for each word) so we just need to tweak the return style accordingly. All of the deduplication and dummy results handling remains in startSdcv because plugins might strongly depend on whether sdcv returned actual results. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> |
3 years ago | |
---|---|---|
.. | ||
apps | 3 years ago | |
device | 3 years ago | |
document | 3 years ago | |
ui | 3 years ago | |
cache.lua | 3 years ago | |
cacheitem.lua | 3 years ago | |
configurable.lua | 3 years ago | |
dbg.lua | 3 years ago | |
depgraph.lua | 4 years ago | |
device.lua | 3 years ago | |
dispatcher.lua | 3 years ago | |
docsettings.lua | 3 years ago | |
dump.lua | 4 years ago | |
fontlist.lua | 3 years ago | |
gettext.lua | 4 years ago | |
httpclient.lua | 8 years ago | |
logger.lua | 6 years ago | |
luadata.lua | 5 years ago | |
luasettings.lua | 3 years ago | |
luxl.lua | 4 years ago | |
optmath.lua | 4 years ago | |
persist.lua | 3 years ago | |
pluginloader.lua | 3 years ago | |
pluginshare.lua | 7 years ago | |
random.lua | 5 years ago | |
readcollection.lua | 4 years ago | |
readhistory.lua | 3 years ago | |
socketutil.lua | 3 years ago | |
util.lua | 3 years ago | |
version.lua | 3 years ago |