Expand description
The read-only dictionaries of the Cantonese, Zhuyin and Stroke schemes (msime-cantonese.db, msime-zhuyin.db, msime-stroke.db). They ship beside the resource set rather than inside it, so the engine opens one only when its scheme is activated and treats a missing or unknown file as the scheme being unavailable.
dict-builder writes every file with SCHEMA and the metadata below; this module is the one definition of that contract.
Structs§
- Language
Dictionary - An open language dictionary whose format version has been checked.
- Language
Entry - One row of
entries.
Constants§
- FORMAT_
VERSION - The schema version the engine reads. A file with any other
format_versionis refused. - METADATA_
FORMAT_ VERSION metadatarow holdingFORMAT_VERSIONas decimal text.- METADATA_
LICENSE metadatarow holding the SPDX identifier of the source data’s licence.- METADATA_
SOURCE_ COMMIT metadatarow holding the commit of the source data the file was built from.- SCHEMA
- The whole schema.
entries.keyis the syllables of an entry joined by a single space; inmsime-stroke.dbit is the character’s stroke code (hspnzletters, no spaces).
Functions§
- open_
read_ only - Opens
pathread-only and checks its format version (LANGUAGE_DICTIONARY_UNAVAILABLE,LANGUAGE_DICTIONARY_VERSION_UNSUPPORTED); never creates the file.