hex/ios/HEXShared
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
..
FullKeyboard iOS: a fix or a swiped word brings no capital of its own mid-sentence 2026-11-21 05:59:31 -05:00
TypingLog iOS: choose QWERTY, QWERTZ, AZERTY or Dvorak per keyboard language (#2172) 2026-11-21 10:41:12 +00:00
AppleIntelligenceCleanupSettings.swift ios: optional Apple Intelligence transcript cleanup (experiment) (#1538) 2026-11-08 08:07:11 -05:00
AppleSpeechModule.swift iOS: dictation follows the keyboard's language, English and Spanish share one layout, and Spanish never goes to Parakeet (#2164) 2026-11-21 08:46:10 +00:00
AudioSessionControlling.swift iOS: recording leaves the hardware sample rate alone, and the keepalive backs off (#2160) 2026-11-21 07:55:13 +00:00
CleanupGuard.swift iOS: Clean up what I say keeps names, and is on by default (#2132) 2026-11-21 03:12:53 +00:00
CleanupReconstruction.swift iOS: clean up what I say with an on-device tagger (experiment) (#2023) 2026-11-20 01:29:41 +00:00
CleanupTagger.swift iOS: Clean up what I say keeps names, and is on by default (#2132) 2026-11-21 03:12:53 +00:00
CleanupTokenizer.swift iOS: clean up what I say with an on-device tagger (experiment) (#2023) 2026-11-20 01:29:41 +00:00
CustomVocabularySettings.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationCorrections.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DictationEditInference.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DictationEditTracker.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DictationLanguage.swift iOS: choose QWERTY, QWERTZ, AZERTY or Dvorak per keyboard language (#2172) 2026-11-21 10:41:12 +00:00
DictationLanguageSwitch.swift iOS: Hinglish dictation, Hindi in Latin letters (Experiment, off by default) (#2119) 2026-11-21 00:29:24 +00:00
DictationPipeline.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
DictationTranslation.swift iOS: fewer paste prompts, and a translate switch in the keyboard (#2134) 2026-11-21 03:24:58 +00:00
DotScope.swift iOS: a tap after a swiped word starts the next word, and the Metal HUD stays off the home page (#2159) 2026-11-21 07:54:19 +00:00
DotScopeShader.metal fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
EmptyCapture.swift iOS: fix six TestFlight tester issues (audio error, leaked error text, Live Activity, haptics, capitals, push to talk) (#2035) 2026-11-20 13:21:16 +00:00
HexTheme.swift fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
HinglishLexicon.swift iOS: Hinglish dictation, Hindi in Latin letters (Experiment, off by default) (#2119) 2026-11-21 00:29:24 +00:00
HinglishRomanizer.swift iOS: Hinglish dictation, Hindi in Latin letters (Experiment, off by default) (#2119) 2026-11-21 00:29:24 +00:00
HomeSwipeCue.swift iOS: a tap after a swiped word starts the next word, and the Metal HUD stays off the home page (#2159) 2026-11-21 07:54:19 +00:00
KeyboardBridge.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
KeyboardSurface.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
SpeechModelInstall.swift iOS: model preparation loads once, keeps moving, and survives the background (#2171) 2026-11-21 10:39:38 +00:00
SpokenCleanupRules.swift iOS: dictation styles apply in the keyboard and read differently, plus Lowercase (#2103) 2026-11-20 21:47:04 +00:00
SpokenLists.swift iOS: format dictated lists, and write out gonna and wanna (#2131) 2026-11-21 03:01:16 +00:00
TranscriptFormatter.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
UserFacingError.swift iOS: fewer paste prompts, and a translate switch in the keyboard (#2134) 2026-11-21 03:24:58 +00:00
VocabularySpelling.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00