Commit Graph
1 Commits
Author SHA1 Message Date
Karl Bartel 6934e07920 Add WikDict bilingual dictionaries (#15456)
Adds 424 bilingual StarDict dictionaries from WikDict
(https://www.wikdict.com). #9037 requested dictionaries from both
ebook-reader-dict and WikDict; the ebook-reader-dict (reader.dict) entries
are already present, and this adds the WikDict side. Source data is
Wiktionary via DBnary; the dictionaries are licensed CC BY-SA 3.0 and hosted
at download.wikdict.com.

The entries are kept in a separate file, dictionaries_wikdict.lua, instead
of being inlined into dictionaries.lua, because:

- The list is large (424 pairs) and would dominate the hand-curated
  dictionaries.lua, making that file harder to review and diff.
- It is generated programmatically from the published dictionaries (via
  wikdict-gen's `helper.py koreader`), so it is regenerated wholesale on
  each WikDict release. Keeping it as its own file makes an update a single
  file replacement with no manual merging.

dictionaries.lua appends the entries with table.move and still returns one
flat dictionaries table, so nothing else needs to change.
2026-05-25 19:52:20 +02:00