2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/frontend/apps/reader/modules
Aleksa Sarai dca65a793e readerdictionary: separate out raw sdcv handling from startSdcv
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>
2021-10-23 15:49:54 +02:00
..
readeractivityindicator.lua ReaderActivityIndicator: fix isStub() 2020-12-23 23:49:53 -05:00
readerback.lua make sure ReaderLink gets a deep copy of location 2021-07-04 21:45:19 -04:00
readerbookmark.lua Bookmarks: new settings and tweaks (#8301) 2021-10-18 17:26:04 +02:00
readerconfig.lua Fix scrolling, add inertial scroll on non-eInk devices 2021-05-19 23:55:07 +02:00
readercoptlistener.lua SpinWidget: similar size in portrait and landscape (#8226) 2021-09-25 10:40:04 +02:00
readercropping.lua ReaderZooming: Unconditionally update the configurables on SetZoomMode (#7735) 2021-05-23 19:01:09 +02:00
readerdevicestatus.lua Readerdevicestatus: optimize code (#8194) 2021-09-08 15:50:20 +02:00
readerdictionary.lua readerdictionary: separate out raw sdcv handling from startSdcv 2021-10-23 15:49:54 +02:00
readerdogear.lua LuaSettings: Add a method to initialize a setting properly (#7371) 2021-03-06 22:44:18 +01:00
readerflipping.lua Update UI layout code to use new SVG icons 2020-12-19 14:49:18 +01:00
readerfont.lua bump crengine: support for 'box-sizing', and other fixes 2021-09-01 23:22:35 +02:00
readerfooter.lua Footer: maybe shouldn't be visible on resume (#8289) 2021-10-10 20:51:50 +02:00
readergoto.lua Menu/GoTo: tweak go to page/letter dialog layout (#8056) 2021-08-14 21:29:25 +02:00
readerhighlight.lua readerhighlight: remove selected_word and use selected_text everywhere 2021-10-23 15:49:54 +02:00
readerhinting.lua minor(readerhinting): access document directly instead of from ui 2016-02-07 13:51:19 -08:00
readerkoptlistener.lua Kopt/Creoptions: change to using an event to update configurable. Abstract implimentation out of ConfigDialog 2021-06-11 13:26:48 +02:00
readerlink.lua ReaderLink: option to add location to stack on opening book (#7685) 2021-05-31 20:28:43 +02:00
readermenu.lua Page overlap: long-press to set as default (#8180) 2021-09-06 21:30:35 +02:00
readerpagemap.lua SpinWidget: similar size in portrait and landscape (#8226) 2021-09-25 10:40:04 +02:00
readerpaging.lua Page overlap: long-press to set as default (#8180) 2021-09-06 21:30:35 +02:00
readerpanning.lua feat: add logger module & rewrite kobo suspend script in lua 2017-01-02 19:52:09 -08:00
readerrolling.lua ProgressWidget: Simplify painting logic. 2021-10-22 20:24:46 +02:00
readerrotation.lua [doc] Tag @todo, @fixme and @warning (#5244) 2019-08-23 19:53:53 +02:00
readerscrolling.lua Fix scrolling, add inertial scroll on non-eInk devices 2021-05-19 23:55:07 +02:00
readersearch.lua ReaderSearch: remove stray newline from regex help (#8358) 2021-10-23 13:39:53 +02:00
readerstatus.lua BookStatusWidget: fix status toggle (#8329) 2021-10-15 09:22:26 +02:00
readerstyletweak.lua Standardize: long-press/hold to long-press (#8185) 2021-09-06 17:08:48 +02:00
readertoc.lua SpinWidget: similar size in portrait and landscape (#8226) 2021-09-25 10:40:04 +02:00
readertypeset.lua Revert "Hyphenation: add custom hyphenation rules (#7746)" (#7785) 2021-05-31 22:19:24 +02:00
readertypography.lua ReaderTypography: Hyphenation Limits keep size in rotation 2021-09-13 19:32:19 +02:00
readeruserhyph.lua FileManager: allow case sensitive file search (#7956) 2021-07-15 12:53:28 +02:00
readerview.lua Page overlap: long-press to set as default (#8180) 2021-09-06 21:30:35 +02:00
readerwikipedia.lua Standardize select/choose to choose (#8128) 2021-08-24 22:19:07 +02:00
readerzooming.lua SpinWidget: similar size in portrait and landscape (#8226) 2021-09-25 10:40:04 +02:00