hex/ios/HEXShared/FullKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 7fee11c393 iOS keyboard: bound the marked-letter lookups each letter makes
Review of #2380: on a language's own keys the strip asked the dictionary for every marked
spelling of each prefix (up to 256). Timed on the iPhone 17 simulator, iOS 27.2, 300
sentences each typed at key centres with marked letters typed plain: French alone went
from 2.88 ms to 7.54 ms a letter at the 95th percentile (15.2 ms at the 99th, up to 252
lookups a letter), Portuguese 2.95 -> 5.94 ms (260 lookups).

- A letter typed tries only the 8 spellings with the fewest marks (markedSpellings'
  partial mode makes them in that order and stops), and leaves ranking by the guesses
  (a slow call) to space.
- Space's fix (checkingWholeWord, wrapping cautiousReplacement in replacementOnSpace)
  still tries up to 256 spellings (48 for a partner) and ranks them, as before: what space
  puts in is unchanged. A letter's cached answer serves space only when it covered every
  spelling.
- The strip's marked word is looked for only when the dictionary doesn't know the word as
  typed, or it is two letters ("ze" still offers "że", "ou" "où").
- Whether a dictionary takes any letters is asked once per dictionary and language.

Measured (same 300 sentences, origin/dev 90a10a52 vs this head, two runs each):
French letters p95 3.09 -> 3.39/3.72 ms, p99 4.57 -> 4.84/5.30, 1.4 -> 6.1 lookups a
letter (worst 20); Portuguese letters p95 2.95 -> 3.65/3.86, 6.0 lookups (worst 20);
Polish (PoliMorf as the dictionary) letters p95 0.010 -> 0.019 ms. Spaces now carry the
whole-word search once a word: French p95 1.19 -> 1.72/1.89 ms, p99 2.1 -> 7.5/9.3 ms,
worst 250 lookups.
2026-11-22 11:02:48 -05:00
..
Emoji iOS keyboard: stop leaking views, capture web views, and emoji indices across shows (#2352) 2026-11-22 06:45:38 -05:00
AccentPicker.swift iOS keyboard: add a keyboard themes experiment (#2365) 2026-11-22 08:24:11 -05:00
AdaptiveTouch.swift ios: add Dvorak punctuation keys experiment (#2373) 2026-11-22 09:31:25 -05:00
AdaptiveTouchLabels.swift iOS: Adaptive touch, personal key centres learned on device (Experiment, off by default) (#2146) 2026-11-21 06:13:04 +00:00
AutocorrectEngine+Accents.swift iOS keyboard: bound the marked-letter lookups each letter makes 2026-11-22 11:02:48 -05:00
AutocorrectEngine+Dictionaries.swift iOS keyboard: Canadian and Swiss French get Apple's apostrophe key ending row 2 (#2356) 2026-11-22 05:36:52 -05:00
AutocorrectEngine+Distance.swift iOS keyboard: put Polish letters back from the dictionary, leave them alone without one 2026-11-22 10:37:01 -05:00
AutocorrectEngine+Vocabulary.swift iOS: words mid-sentence stay lowercase unless you capitalized them (#2218) 2026-11-21 14:35:10 -05:00
AutocorrectEngine.swift iOS keyboard: bound the marked-letter lookups each letter makes 2026-11-22 11:02:48 -05:00
CzechTyping.swift iOS keyboard: Canadian and Swiss French get Apple's apostrophe key ending row 2 (#2356) 2026-11-22 05:36:52 -05:00
DeleteWordSwipe.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
DictationUndo.swift iOS: Undo dictation works after the cursor moves, and goes when it can't (#2240) 2026-11-21 15:15:23 -05:00
FullKeyboardEngine+Field.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
FullKeyboardEngine+Hangul.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
FullKeyboardEngine+HostText.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
FullKeyboardEngine+Keys.swift ios: add Dvorak punctuation keys experiment (#2373) 2026-11-22 09:31:25 -05:00
FullKeyboardEngine+Revert.swift iOS: avoid double spaces when editing a word mid-sentence (#2214) 2026-11-21 12:43:26 -05:00
FullKeyboardEngine+Selection.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
FullKeyboardEngine+SmartSpace.swift iOS keyboard: a late host echo keeps the swipe's pending space (#2273) 2026-11-21 19:14:42 -05:00
FullKeyboardEngine+SwipeTyping.swift iOS keyboard: a late host echo keeps the swipe's pending space (#2273) 2026-11-21 19:14:42 -05:00
FullKeyboardEngine+Trackpad.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
FullKeyboardEngine.swift ios: add Dvorak punctuation keys experiment (#2373) 2026-11-22 09:31:25 -05:00
FullKeyboardPalette.swift iOS keyboard: add a keyboard themes experiment (#2365) 2026-11-22 08:24:11 -05:00
FullKeyboardSettings.swift ios: add Dvorak punctuation keys experiment (#2373) 2026-11-22 09:31:25 -05:00
FullKeyboardTouch.swift iOS: a quick space tap that drifts still types a space, and space keeps its place in a rollover (#2233) 2026-11-21 14:36:17 -05:00
FullKeyboardView+Debug.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
FullKeyboardView+Emoji.swift iOS keyboard: stop leaking views, capture web views, and emoji indices across shows (#2352) 2026-11-22 06:45:38 -05:00
FullKeyboardView+FullAccess.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
FullKeyboardView+Selection.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
FullKeyboardView+Settings.swift ios: add Dvorak punctuation keys experiment (#2373) 2026-11-22 09:31:25 -05:00
FullKeyboardView+Vocabulary.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
FullKeyboardView.swift iOS keyboard: the top bar is Apple's prediction bar, as thick as Apple's, with its bubble and dividers (#2375) 2026-11-22 10:20:43 -05:00
GermanCapitals.swift iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
GreekTyping.swift iOS keyboard: a late host echo keeps the swipe's pending space (#2273) 2026-11-21 19:14:42 -05:00
HangulComposer.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
HexKeyGesture.swift iOS: the keyboard starts listening on touch-down, with its capture page ready when it opens (#2089) 2026-11-20 20:04:35 +00:00
HexKeyViews.swift iOS keyboard: add a keyboard themes experiment (#2365) 2026-11-22 08:24:11 -05:00
KeyboardBackdropView.swift iOS keyboard: add a keyboard themes experiment (#2365) 2026-11-22 08:24:11 -05:00
KeyboardClipboard.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
KeyboardKeyPlaneView.swift ios: add Dvorak punctuation keys experiment (#2373) 2026-11-22 09:31:25 -05:00
KeyboardLanguage.swift iOS: Hungarian keyboard with accent restoration and bilingual autocorrect (#2355) 2026-11-22 07:10:56 -05:00
KeyboardLaunchWork.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
KeyboardLayout.swift iOS keyboard: the four rows share Apple's 4 pt below the view; the gap above row 4 is row 4's (#2379) 2026-11-22 10:21:30 -05:00
KeyboardPadRows.swift iOS keyboard: Canadian and Swiss French get Apple's apostrophe key ending row 2 (#2356) 2026-11-22 05:36:52 -05:00
KeyboardStripView.swift iOS keyboard: the top bar is Apple's prediction bar, as thick as Apple's, with its bubble and dividers (#2375) 2026-11-22 10:20:43 -05:00
KeyboardTheme.swift iOS keyboard: add a keyboard themes experiment (#2365) 2026-11-22 08:24:11 -05:00
LanguageLearning.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
never-suggest.tsv iOS: never suggest slurs, and swear words only when asked (#2093) 2026-11-20 20:17:31 +00:00
OffensiveWords.swift iOS: never suggest slurs, and swear words only when asked (#2093) 2026-11-20 20:17:31 +00:00
ReturnKeyStyle.swift iOS: Return follows the app's return key type, and the dictation bar's does too (#2200) 2026-11-21 09:54:57 -05:00
ShiftStateMachine.swift ios: add Dvorak punctuation keys experiment (#2373) 2026-11-22 09:31:25 -05:00
SmartPunctuation.swift iOS keyboard: a late host echo keeps the swipe's pending space (#2273) 2026-11-21 19:14:42 -05:00
SwipeDecoder.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
SwipeTyping.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
TextChecking.swift iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
TrackpadCursor.swift iOS: the space-bar trackpad moves like Apple's (#2219) 2026-11-21 13:23:46 -05:00
TrackpadSelection.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
TrackpadSelectionStrip.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
TypingDecoder.swift ios keyboard: read a missed space with a slip, and run-together words (#2244) 2026-11-21 16:15:02 -05:00
TypingJournal.swift iOS: hold the bar to dictate, Learn how I type on, a plain centred Paste, and typing logs off (#2210) 2026-11-21 12:11:58 -05:00
TypingJournalLearning.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00