hex/ios/HEXMobileTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 159570837d iOS keyboard: Ukrainian follows the iOS version's own rows; ʼ on its 123 and #+= pages
What: Apple changed its Ukrainian iPhone keyboard in iOS 27. Before it
(iOS 26.2, 26.4 and 26.5 simulators) it is Russian's ЙЦУКЕН with і for ы and
є for э: 11, 11 and 9 keys, every shared letter on Russian's key, shift and
delete one letter wide, ї on a held і, ґ on a held г, ʼ only on the 123 page.
From iOS 27 (27.0 and 27.2) it is the 12, 12 and 10 keys Hex copied in #2128.
Hex drew the iOS 27 rows everywhere, so on iOS 26 every letter after й sat up
to a key off from the iPhone's own Ukrainian keyboard and from Russian's
(TestFlight build 123, iPhone 12 on iOS 26.6.2: "UA & RU have different key
positions ... the Ukrainian keys are noticeably smaller"). Hex's Ukrainian now
picks its rows and holds by the running iOS: on iOS 26 it is iOS 26's
keyboard, on iOS 27 the letters are unchanged.

Also on both versions: Apple's Ukrainian 123 and #+= pages have ʼ (U+02BC)
where English has ', holding ` ‘ ’ ' ʼ, and typing it goes back to the letters.
Hex showed the plain '; now it is ʼ with those options.

Changed (for the Rust core move):
- KeyboardLanguage: systemMajorVersion (from ProcessInfo, settable by tests)
  and ukrainianHasTwelveKeys; ownLetterRows and letterHolds for .ukrainian
  pick by it (iOS 26: і -> ї, г -> ґ; ʼ's list kept on both for the pages'
  key). keyCoordinates is untouched: Ukrainian's [0, 0, 1] offsets fit both
  (row 3 starts under ц).
- KeyboardLayout.characterRows: Ukrainian's 123/#+= apostrophe is ʼ.
- KeyboardLayerState.didInsert: ʼ returns to the letters like '.
- FullKeyboardEngine, TypingDecoder, AdaptiveTouch, next-letter odds, swipe:
  untouched. They read the layout's keys (AdaptiveTouch and the odds take
  isLetter keys from layout.keys) or keyCoordinates, so they follow the rows
  drawn; Ukrainian has no typing model (dictionary engine). Autocorrect's
  neighbour-key table (AutocorrectEngine+Distance) is built once from
  keyCoordinates, so it gets the running version's rows.

Verified: Apple's keyboards measured as a black box on Studio simulators
(iPhone 12 and 17 Pro, iOS 26.5 and 27.2, portrait and landscape; rows also on
26.2, 26.4, 27.0; every letter held and screenshotted). Hex this branch over
Apple's keycaps: Ukrainian and Russian within 0.34 pt horizontally on iPhone 12
26.5/27.2 portrait and landscape (origin/dev was up to 57 pt off on 26.5). Real
HID touches on the iPhone 12 iOS 26.5 sim: "пʼять обʼєктів їжі, ґанок і
європейський" typed exactly (ʼ from the 123 page, ї and ґ held); a slide on
the space bar Ukrainian -> Russian -> Ukrainian keeps every key's x. New cases
in KeyboardLayoutTests (testUkrainianBeforeIOS27IsRussiansRows) and
FullKeyboardEngineTests (testUkrainianOnIOS26TypesHeldLettersAndThePagesApostrophe);
the two existing asserts that Ukrainian's 123/#+= keys equal English's now
compare frames and expect ʼ. ios/README updated.
2026-11-22 05:37:39 -05:00
..
Fixtures
AutocorrectEngineTests.swift iOS keyboard: French AZERTY gets Apple's apostrophe key after N (#2354) 2026-11-22 05:09:39 -05:00
CleanupTaggerTests.swift
CustomVocabularyTests.swift
DictationControllerTests.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
DictationLanguageTests.swift
DictationLearningTests.swift
DotScopeTests.swift
EmojiPanelLettersKeyTests.swift iOS dictation: no spaces or stray full stops around Chinese and Japanese; the bar's emoji panel says Back (#2347) 2026-11-22 03:47:53 -05:00
EmojiSuggesterTests.swift
FullKeyboardEngineTests.swift iOS keyboard: Ukrainian follows the iOS version's own rows; ʼ on its 123 and #+= pages 2026-11-22 05:37:39 -05:00
HangulComposerTests.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
HexKeyGestureTests.swift
KeyboardBridgeTests.swift iOS dictation: no spaces or stray full stops around Chinese and Japanese; the bar's emoji panel says Back (#2347) 2026-11-22 03:47:53 -05:00
KeyboardDuoCoverTests.swift ios: smaller key labels on the duo's cover screen (#2346) 2026-11-22 04:35:44 -05:00
KeyboardLayoutTests.swift iOS keyboard: Ukrainian follows the iOS version's own rows; ʼ on its 123 and #+= pages 2026-11-22 05:37:39 -05:00
KeyboardSwitchGuessTests.swift iOS: the dictation bar can start dictating by itself (Auto-start: never, on switch, always) (#2267) 2026-11-21 17:08:50 -05:00
LaggingField.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
LanguageLearningTests.swift
ShiftStateMachineTests.swift iOS keyboard: no automatic hand-off or Code from Messages where Apple's keyboard is split (#2349) 2026-11-22 04:16:08 -05:00
SwipeDecoderTests.swift
TranscriptCleanupTests.swift iOS dictation: no spaces or stray full stops around Chinese and Japanese; the bar's emoji panel says Back (#2347) 2026-11-22 03:47:53 -05:00
TwoLanguageMergeTests.swift iOS: two-language dictation experiment (#2348) 2026-11-22 04:58:27 -05:00
TwoThumbSelectionTests.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
TypingLogTests.swift
TypingReplayTests.swift iOS keyboard: the typing replay reports all-words accuracy, contractions and taps read as swipes (#2287) 2026-11-21 20:32:00 -05:00