-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use offline? #33
Comments
As stated in the readme, I don't plan on adding support for other dictionaries (online or offline). The app is deliberately kept as simple as possible (currently a single script with ~600 LOC) for a very simple and narrow use case. That said, I guess it would make sense to add some support for offline dictd and StarDict dictionaries in the same way Foliate does now. After all, Quick Lookup is basically a spin-off of Foliate's dictionary feature. |
Wiktionary can be used offline. Let’s see what would be required.
It’s quite a bit of work, but doable. |
Apart from the size, one major problem is that the data is in wikitext, so it's very far from using the definition API. It would require a wikitext parser and convertor. It seems there are also Enterprise HTML Dumps, but it would still require manually parsing the HTML, so it's not a direct replacement of the API. Whether it's wikitext or HTML, it would take a long time just to parse the dump. I think the better approach would be to support StarDict and DICTD, like Foliate does. Then use something like https://github.com/BoboTiG/ebook-reader-dict to pre-generate selected mono- or bilingual dictionaries in those formats. Their en-en dictionary, for example, is only ~30 MB. That would be far better than downloading the whole dump. |
Note about https://github.com/BoboTiG/ebook-reader-dict, we publish StarDict, and DictFile, for a few months now. They are generated every day alongside the Kobo DictHTML one. Have a look at the English dictionaries for example: https://github.com/BoboTiG/ebook-reader-dict/blob/master/docs/en/README.md. Wee also propose etymology-free versions, which are smaller in size. |
Quick Lookup currently required an Internet connection to look words up on Wiktionary. However, it would greatly expand the utility of Quick Lookup if it were usable offline. For example, an offline dictionary app would be great on Endless OS for schools with limited or no Internet connectivity.
The text was updated successfully, but these errors were encountered: