hex/crates/keyboard/languages
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sebastian Herrlinger 3ee3bc8acd Keyboard core: a language is a tag with a manifest, and the host passes its key grid
A language crosses into the core as its BCP 47 tag (today's raw values, which learned
words are stored under). Its facts are one manifest each in crates/keyboard/languages
(the 16 languages plus hu and ko), compiled into the core by build.rs: nothing parses
JSON while the keyboard runs, and the build (and tests/languages.rs) checks every file
parses, names itself and reads words_from one level deep. An unknown tag turns every
capability off. The core's row tables go: the host hands over the letter grid it shows
(set_keys(layout, cells)), and the fixture holds the oracle's grids.

Ported from dev: Hungarian (folding accents, two-letter words, starters) and French
elision (elision_heads). The oracle is dev 8b879d8a's AutocorrectEngine, running on its
own copy of the Swift tap decoder (#2315 deleted the TapParity oracle), and compares
case-insensitively by Unicode case folding, Foundation's caseInsensitiveCompare counted
apart (decided change).
2026-11-23 07:42:37 +01:00
..
cs.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
de.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
el.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
en.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
es.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
fr-CA.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
fr-CH.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
fr.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
hu.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
it.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
ko.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
nb.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
pl.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
pt.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
ro.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
ru.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
sr-Latn.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00
uk.json Keyboard core: a language is a tag with a manifest, and the host passes its key grid 2026-11-23 07:42:37 +01:00