View Single Post
Old 08-30-2019, 07:19 AM   #2
pazos
cosiņeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
It is doable. Just iterate over the entire stack of installed (and enabled) packages and get a list of packages that are able to resolve specific actions like SEARCH, SEND or PROCESS_TEXT. Basically we need to create a table holding all the information and pass that to lua instead.

Just need to find someone willing to do the job. I'm not that one.

In any case Pocketbook implementation seems wonky and Librera seems a better example to follow in this area (plus the code is open source so any one can look up how it is doing stuff and port it over to KOReader).


The other option: move dictionaries.lua to external storage, so users can edit that file without rebuilding the application, is way easier to do.
pazos is offline   Reply With Quote