hex/ios/HEXShared/FullKeyboard/Autocorrect
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 60cea784e5
iOS keyboard: Slovenčina, on Czech's keys with Apple's Slovak long presses (#2462)
Asked for on X ("Looking for Slovak one"). Adds KeyboardLanguage.slovak ("sk",
Slovenčina), an ordinary language as Czech and Hungarian are, matched to
Apple's iPhone Slovak keyboard on iOS 26.5 and 27.2 simulators (iPhone 17 Pro):

- Keys: Apple's Slovak input mode uses Czech's software layouts
  ("Czech-Slovak" default, "QWERTY-Czech-Slovak"; InputMode_sk.plist). The
  capture tool's geometry (four pages, portrait and landscape, both runtimes)
  shows the same rows as Czech: qwertzuiop / asdfghjkl´ / yxcvbnmˇ, English's
  123 and #+= pages, English's held symbols. Slovak shares Czech's rows, layouts
  ("QWERTZ – Slovenčina", "QWERTY – Slovenčina"), key coordinates and pages
  (KeyboardLanguage.typesOnCzechKeys).
- Long presses: Apple's Slovak options (Keyboard-sk.plist; screenshots of every
  key held on 26.5, the capture tool's menus on 27.2): ô first on O, á ä on A,
  ľ ĺ on L, ŕ on R, ď on D, ť on T, and so on; nothing on ´ or ˇ (Czech's ˇ holds
  the ring). Apple's callout leaves the base letter out; Hex keeps it first, as
  in every language.
- ´ and ˇ: real-touch sequences on Apple's Slovak keyboard (every letter then
  each key, capitals, both runtimes identical) match Czech's rules except that
  ˇ after u types itself (no ů); ô and ä are never composed. CzechTyping now
  takes the language.
- Typing: as Czech. The iPhone's sk dictionary behind autocorrect where it is
  listed (Czech's missing-diacritic cost, "dakujem" -> "ďakujem"), else nothing
  changed or suggested; never Czech's dictionary. The iOS 26.5 and 27.2
  simulators list no sk dictionary (and their cs_CZ, hu_HU, pl_PL accept
  "qzxjvkq"). No typing model.
- Dictation: DictationTranscriber lists sk-SK on both simulators
  (SpeechTranscriber is unavailable there), so Automatic dictates sk-SK and the
  keys follow it. Replaced: a Slovak dictation language used to type English
  QWERTY (testTheLayoutFollowsTheDictationLanguage asserted that; now Slovak).

Verified: focused tests on the Studio (KeyboardLayoutTests, the new
testSlovakTypesOnCzechKeys and testSlovakFollowsCzechAndGuessesNothingWithout-
ADictionary, Czech's tests); Hex installed as a real keyboard captured beside
Apple's on both runtimes; full suite in the PR description.
2026-11-24 18:21:24 -05:00
..
AutocorrectEngine+Accents.swift
AutocorrectEngine+Dictionaries.swift
AutocorrectEngine+Distance.swift iOS keyboard: Slovenčina, on Czech's keys with Apple's Slovak long presses (#2462) 2026-11-24 18:21:24 -05:00
AutocorrectEngine+Vocabulary.swift
AutocorrectEngine.swift iOS keyboard: Slovenčina, on Czech's keys with Apple's Slovak long presses (#2462) 2026-11-24 18:21:24 -05:00