hex/ios/HEXShared/FullKeyboard/View
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel edc54a24ef ios: the keyboard reads a typing config (Settings › Experiments › Typing configs)
With experiments.typingConfigs on and Full Access, FullKeyboardView.syncSettings loads
TypingConfigs/active.json through TypingConfigActive.current. It reads the file again only
when typingConfig.generation changes, through the same TypingConfigReview the app uses. A
missing or unreadable file is no config.
- Words: TypingLearning.adding layers the config's words on top of Learn how I type's learning
  in memory, so nothing is written into what Hex learned and removing the config removes
  exactly its words. What the person taught Hex themselves wins.
  - Kept words count as their own and are offered.
  - neverCorrectTo blocks space corrections, next-word revisions and merges into the word.
  - Fixes are applied (learned-typo rules) or only offered.
  - Dictation fixes join the keyboard's dictation corrections.
- Zones: rebuildLayout compiles the matching key block's zones (KeyboardLayout.zoneMap) into
  per-key zoneRects. KeyboardKey.takes, hitTest and the next-letter odds' distances use them.
- Aim: syncDecoderKeys replaces the decoder's centre for the letters the config names, over
  Learn how I type's average or Adaptive touch's centre; the baseline keys stay Learn how I
  type's.
- Adaptive touch records no taps while a config has zones.
- Typing logs: layout lines record each key's gapHitFrame (the space bar's band of the gap,
  which the logs lacked) and zoneRects. The hash includes zoneRects, and a typing_config
  layout cause is added.
- Edits to the files at their size limit (FullKeyboardEngine, AutocorrectEngine,
  KeyboardViewController) are line-for-line, apart from one stored property in
  FullKeyboardEngine. Three private methods became internal for the new extension.
- docs/typing-configs.md is new; typing-logs.md documents the new layout fields.

Verified on the Studio (iPhone 17 Pro, iOS 27.2):
- With no config, the iOS typing gate (scripts/typing-gate.py run, en es de fr pl,
  TEST_RUNNER_SWIFT_DETERMINISTIC_HASHING=1) gives byte-identical output-<lang>.json to the
  merge base 73ee886d in all five languages.
- FullKeyboardEngineTests: 161 of 161 pass, including two new cases in
  FullKeyboardEngineTests+AdaptiveTouch.swift. The first: a zone gives the space bar b's lowest
  3 pt, aim moves o's decoder centre by 0.2 keycap with the baseline kept, and removing the
  config restores the layout. The second: a kept word is left alone, neverCorrectTo blocks
  "hte" -> "the", and removing the config leaves TypingLearning() as it was.
- TypingLogTests, KeyboardLayoutTests, AutocorrectEngineTests, DictationLearningTests and
  LanguageLearningTests: 196 of 196 pass.
- code-shape.py --check passes; the largest file is 1,498 lines.
2026-11-23 12:47:08 -05:00
..
FullKeyboardView+Debug.swift iOS: group shared sources and split the full keyboard tests (#2448) 2026-11-22 18:18:35 -08:00
FullKeyboardView+Emoji.swift iOS: offer the emoji of the word being typed ("smile" → 😊) (#2461) 2026-11-22 22:05:22 -05:00
FullKeyboardView+FullAccess.swift fix(ios): show recording only once audio starts flowing (#2478) 2026-11-22 21:59:22 -08:00
FullKeyboardView+Recording.swift iOS keyboard: the recording transition moves to FullKeyboardView+Recording.swift (#2464) 2026-11-22 22:33:36 -05:00
FullKeyboardView+Selection.swift refactor(ios): unify dictation routing, engine identity, and Parakeet plan (#2491) 2026-11-22 22:59:41 -08:00
FullKeyboardView+Settings.swift iOS: group shared sources and split the full keyboard tests (#2448) 2026-11-22 18:18:35 -08:00
FullKeyboardView+Vocabulary.swift iOS: group shared sources and split the full keyboard tests (#2448) 2026-11-22 18:18:35 -08:00
FullKeyboardView.swift ios: the keyboard reads a typing config (Settings › Experiments › Typing configs) 2026-11-23 12:47:08 -05:00