hex/ios/HEXShared/FullKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel d9bfc5faeb iOS: a fix or a swiped word brings no capital of its own mid-sentence
TestFlight (Jason, build 56): "Swipe typing keeps auto capitalising in most
cases, even when it shouldn't. It doesn't work how Apple's keyboard does,
where it capitalises only after a full stop." His screen recording also
shows "helli" typed mid-sentence ("myem helli") going in as "Hello", with
"Hello" highlighted in the strip.

Reproduced on dev with the swipe HID tool (iPhone 18 Pro Max simulator, iOS
27.2): shift and auto-capitalisation around swipes are already right after
a comma, a swipe, a strip pick, a delete, a tapped word, a sentence-start
capital turned off, "?" and "!" (#2144, #2159). What still capitalised
mid-sentence was the casing of the candidates:
- Your own words: a Contacts name that is also a common word ("Bell",
  "Will", "Young") is a UILexicon term, and the swipe decoder reads the
  model's "bell" only as that own word, so it went in as "Bell" wherever
  it was swiped. The strip's completions offered it capitalised too.
- Fixes learned at the start of a sentence ("Helli" picked as "Hello"
  twice is learned as "Hello"), and guesses iOS returns capitalised, kept
  that capital mid-sentence (matchCase keeps a target's own capitals).
Apple's keyboard, black box (iOS 27.2, the simulator's contact Kate Bell):
swiping "the bell rang" gives lowercase "bell"; "taylor" and "kate" come out
"Taylor" and "Kate".

AutocorrectEngine.withoutStrayCapital writes such a word in lowercase when
you didn't type a capital and the dictionary knows it in lowercase. Names
the dictionary knows only capitalised ("Taylor", "Monday"), "I" and its
contractions, words with more capitals ("iPhone"), a capital you typed or
the sentence start gives, and German (nouns) keep theirs. Used for space's
fix (learned typos, Spatial readings, spelling guesses), the strip's
candidates and completions, and swipeCased.

Verified on the Mac Studio, iPhone 18 Pro (iOS 27.2 simulator):
- New tests testAFixBringsNoCapitalOfItsOwnMidSentence and
  testSwipedWordsTakeACapitalOnlyWhereApplesKeyboardGivesOne fail on the
  previous commit ("hello there's the Bell Will", "Hello" for "helli") and
  pass now.
- xcodebuild test -only-testing AutocorrectEngineTests,
  FullKeyboardEngineTests, SwipeDecoderTests: 158 tests, 0 failures.
2026-11-21 05:59:31 -05:00
..
Emoji iOS: text replacements without autocorrect, End with a period, and emoji and symbols on the Dictation bar (#2147) 2026-11-21 06:24:16 +00:00
AccentPicker.swift iOS: choose QWERTY, QWERTZ, AZERTY or Dvorak per keyboard language (#2172) 2026-11-21 10:41:12 +00:00
AdaptiveTouch.swift iOS: Adaptive touch, personal key centres learned on device (Experiment, off by default) (#2146) 2026-11-21 06:13:04 +00: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+Dictionaries.swift iOS: text replacements go in as on Apple's keyboard, and backspace no longer undoes them 2026-11-21 05:59:31 -05:00
AutocorrectEngine.swift iOS: a fix or a swiped word brings no capital of its own mid-sentence 2026-11-21 05:59:31 -05:00
DeleteWordSwipe.swift iOS: keep key haptics while dictating, and slide left on delete to delete words (#2080) 2026-11-20 17:55:51 +00:00
FullKeyboardEngine+SwipeTyping.swift iOS: a fix or a swiped word brings no capital of its own mid-sentence 2026-11-21 05:59:31 -05:00
FullKeyboardEngine.swift iOS: text replacements go in as on Apple's keyboard, and backspace no longer undoes them 2026-11-21 05:59:31 -05:00
FullKeyboardPalette.swift iOS: the full keyboard's top bar matches the system keyboard (#2135) 2026-11-21 03:26:34 +00:00
FullKeyboardSettings.swift iOS: German spatial autocorrect behind an experiment (#2161) 2026-11-21 03:10:49 -05:00
FullKeyboardView+Emoji.swift iOS: text replacements without autocorrect, End with a period, and emoji and symbols on the Dictation bar (#2147) 2026-11-21 06:24:16 +00:00
FullKeyboardView.swift iOS: choose QWERTY, QWERTZ, AZERTY or Dvorak per keyboard language (#2172) 2026-11-21 10:41:12 +00:00
GermanCapitals.swift iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -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: emoji panel memory, category taps, an eight-column Frequently used, and the system's look (#2142) 2026-11-21 04:31:34 +00:00
KeyboardBackdropView.swift iOS: opaque keyboard panel so stale system layers can't show through, and a nil-safe field ID (#2139) 2026-11-21 03:45:47 +00:00
KeyboardClipboard.swift iOS: a handoff to Hex can't leave the keyboard stuck, and dismissed dictations still deliver (#2163) 2026-11-21 08:31:48 +00:00
KeyboardKeyPlaneView.swift iOS: Emoji and Swipe typing are on by default, under Settings › Keyboard (#2129) 2026-11-21 02:41:15 +00:00
KeyboardLanguage.swift iOS: choose QWERTY, QWERTZ, AZERTY or Dvorak per keyboard language (#2172) 2026-11-21 10:41:12 +00:00
KeyboardLayout.swift iOS: choose QWERTY, QWERTZ, AZERTY or Dvorak per keyboard language (#2172) 2026-11-21 10:41:12 +00:00
KeyboardStripView.swift iOS: a handoff to Hex can't leave the keyboard stuck, and dismissed dictations still deliver (#2163) 2026-11-21 08:31:48 +00: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
ShiftStateMachine.swift iOS: full keyboard experiment flag, key layout and shift model (#910) 2026-11-01 12:43:35 -08:00
SwipeDecoder.swift iOS: autocorrect splits merged words, fixes missing apostrophes and homophones, and corrects before punctuation (#2144) 2026-11-21 05:24:20 +00:00
SwipeTyping.swift iOS: autocorrect splits merged words, fixes missing apostrophes and homophones, and corrects before punctuation (#2144) 2026-11-21 05:24:20 +00:00
TextChecking.swift iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
TypingDecoder.swift iOS: Adaptive touch, personal key centres learned on device (Experiment, off by default) (#2146) 2026-11-21 06:13:04 +00:00
TypingJournal.swift iOS: Delete what Hex learned also forgets the words autocorrect learned to keep (#2101) 2026-11-20 21:28:27 +00:00
TypingJournalLearning.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00