This is a set of files to help you create a spellcheck dictionary extension.
-
Populate locales.csv according to your language. Expected fields:
lang
- language codedict_name
- localized, user-friendly name of the dictionary extension in the corresponding language, e.g. translated "English dictionary"dict_summary
- short description of the extension in corresponding language, e.g. translated "Spellcheck dictionary for English language"dict_license
- licence of the dictionary, orLicenseRef-proprietary
if unsure or no license provided
Dictionaries can be downloaded from http://wps-community.org/download/dicts
-
Run
make all
in this directory. It is expected to produce manifest and appdata, i.e.com.wps.Office.spellcheck.your_LANG.yml
com.wps.Office.spellcheck.your_LANG.metainfo.xml
whereyour_LANG
is your language code.
-
Check the generated files and edit them if needed. By default they use
extra-data
sources, so that the dictionary is downloaded at install time. If the dictionary is free (not proprietary or unlicensed), you can extract the archive at install time, refer toflatpak-builder
docs to do that. -
Build, install and check if everything works fine, i.e. WPS Office sees the new dictionary and it actually checks spelling.
-
Put the manifest and appdata into a new git repo and submit to Flathub at will.