You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the dict is downloaded, if you decompress the zip, it contains a bunch of files, e.g. co.html, but these are in fact compressed data. You can decompress them, eg
So, these files could be pre-processed to have all (??) variants of a word, and the word itself, being an initial index into the data files, and a Lute-Kobo lookup could look like this: Given input word fui, pre-processed file initial_index_fu.data contains something like fui: ir (fui being one of the variants of ir, we hope!), and then the actual lookup is done using ir to get the definition.
I don't know how this would/should work for ambiguous mappings. Perhaps something like gato: gato; gatar (if there is a word like gatar).
if nothing is found, just return 'not found'.
The pre-processing could be done outside of Lute, or as a heavyweight initial load. Outside is better, I think: less crap to go wrong in the app, separate concern.
jzohrab
changed the title
Add Kobo dictionary support (requires https://github.com/jzohrab/lute/issues/39 to be done)
Add Kobo dictionary support (requires issue 5 to be done)
Nov 15, 2023
This is a good idea, simple offline-style dict.
The text was updated successfully, but these errors were encountered: