Expand description
High-level service for monolingual dictionary management.
MonolingualDictionaryService is the single public entry point for all
monolingual dictionary operations: querying the remote catalogue, listing
installed dictionaries, and installing a new one.
Structsยง
- Monolingual
Dictionary Service - Provides monolingual dictionary management: querying available dictionaries, listing installed ones, and downloading + extracting new ones.
Constantsยง
- READER_
DICT_ ๐SUBDIR - Subdirectory inside the dictionaries root where reader-dict downloads live.
Functionsยง
- dict_
file_ ๐target_ name - Maps a ZIP entry filename to its renamed output filename
<lang>.<ext>. - extract_
zip_ ๐renamed - Extracts all entries from a ZIP archive into
dest, renaming each file toReader-Dict-<lang><ext>where<ext>is.index,.dict, or.dict.dz. - has_
dict_ ๐pair - Returns
truewhendircontains at least one.indexfile that is paired with a.dictor.dict.dzfile sharing the same stem.