abouttreesummaryrefslogcommitdiff
path: root/gen_layouts.py
diff options
context:
space:
mode:
authorJules Aguillon2026-04-10 19:08:23 +0200
committerGitHub2026-04-10 19:08:23 +0200
commit833b4a21549f7ea8067291f344f6acdeaff3f079 (patch)
tree81448d90ea6260e49a0b7e02595f8c4f5508eda0 /gen_layouts.py
parent8921de7f02570ba03816ebb4025f2c95bc131707 (diff)
downloadunexpected-keyboard-833b4a21549f7ea8067291f344f6acdeaff3f079.tar.gz
unexpected-keyboard-833b4a21549f7ea8067291f344f6acdeaff3f079.zip
Better suggestion with diacritics (#1223)
* Update cdict * scripts/subst_of_compose.py: Compute substitutions from compose mappings. They are used when building dictionaries. * Add substitutions compose data * Better suggestion with diacritics This improves the suggestions for words that contain diacritics and uppercase letters. This works by stripping diacritics both when building the dictionaries (using word aliases added in cdict: https://github.com/Julow/cdict/pull/3) and during lookup. Cdict then takes care of resolving the correct word. The substitutions are generated using mappings from `fn`, `shift` and all the `accent_*` modifiers into srcs/compose/substitutions.json This can be updated easily when more mappings are added.
Diffstat (limited to 'gen_layouts.py')
0 files changed, 0 insertions, 0 deletions