mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
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).
11 lines
1 KiB
JSON
11 lines
1 KiB
JSON
{
|
|
"id": "it",
|
|
"model": "it",
|
|
"system_dictionaries": ["it", "it_IT"],
|
|
"two_letter_words": ["di", "il", "la", "in", "un", "si", "le", "lo", "ha", "ho", "ma", "da", "mi", "ci", "ti", "se", "ne", "no", "io", "tu", "su", "al"],
|
|
"accent_restorations": {"perche": "perché", "poiche": "poiché", "affinche": "affinché", "benche": "benché", "finche": "finché", "piu": "più", "gia": "già", "puo": "può", "cioe": "cioè", "percio": "perciò", "citta": "città", "societa": "società", "universita": "università", "qualita": "qualità", "liberta": "libertà", "verita": "verità", "realta": "realtà", "attivita": "attività", "possibilita": "possibilità", "difficolta": "difficoltà", "opportunita": "opportunità", "caffe": "caffè", "giu": "giù", "lunedi": "lunedì", "martedi": "martedì", "mercoledi": "mercoledì", "giovedi": "giovedì", "venerdi": "venerdì"},
|
|
"accent_suggestions": {"e": "è", "ce": "c'è"},
|
|
"sentence_starters": ["io", "il", "la"],
|
|
"clause_starters": ["e", "ma", "che"],
|
|
"common_words": ["di", "e", "che", "la", "il", "a"]
|
|
}
|