hex/ios/HEXShared
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel bbd46f81c5 iOS: spoken punctuation in dictation
TestFlight build 56: "every time that I say a punctuation mark, it just
includes it as text."

Black box first (macOS 27.2.1, say voices Samantha, Paulina, Thomas,
Anna, Alice, Luciana):
- DictationTranscriber already writes every mark (":", ";", "–", quotes,
  "(…)", "…", "#", ":-)", apostrophes) in all six languages, so its text
  has no names left. It also has false positives of its own ("He has a?
  Tattoo", "La coma es opcional" -> "Hola, es opcional").
- SpeechTranscriber writes only "comma", "question mark" and some
  French/German/Italian names (virgule, point, Komma, Fragezeichen,
  virgola, due punti); "exclamation point", "colon", "semicolon",
  "dash", quotes and brackets stay words, often between commas ("I came
  semicolon, I saw", "open Paren after lunch close, Paren").
- Parakeet (desktop Hex's unified English model) writes every name as
  words with its own marks around them ("noon, comma, see you soon,
  period", "tonight question mark?", "well-hyphen known").
- Apple's iPhone dictation commands (support.apple.com, per language):
  period, comma, exclamation point, question mark, colon, semicolon,
  quote/end quote, open/close parenthesis, dollar sign, hashtag.

Change:
- SpokenPunctuation, a string-rule step inside Polished, Casual and
  Notes, after Format lists (so "dash … dash …" stays a list and "comma,
  new line" keeps its comma) and before the style's own punctuation;
  Verbatim keeps the words. English, Spanish, French, German, Italian
  and Portuguese with each language's command words (coma, punto, signo
  de interrogación, abrir comillas, punto y aparte; virgule, point
  d'interrogation, ouvrez les guillemets; Komma, Fragezeichen,
  Anführungszeichen unten/oben, Klammer auf/zu; virgola, punto
  interrogativo, apri virgolette; vírgula, ponto final, abre aspas).
  Marks attach to the word before, dashes are spaced, hyphen/apostrophe/
  arroba join, hashtag and dollar sign prefix, quotes are “ ” / « » / „ “,
  closers close only an open quote or bracket, a word after . ? ! is
  capitalized, and a mark the model already wrote beside a name is
  replaced, never doubled. French spacing still runs last.
- Guards: no conversion after an article, possessive, preposition,
  number or noun-making word ("a period of time", "the comma is",
  "Oxford comma", "trial period", "ein wichtiger Punkt"), before a word
  that continues the noun ("question mark tattoo", "colon cancer",
  "punto de vista"), in a compound ("comma-separated"), or between
  numbers ("two comma five"). Everyday-noun names (period, point/Punkt/
  punto/ponto, question mark, dash, smiley) also need the line end, a
  mark after, or a clause start after; colons need words after them.
  English "at sign" is left to SpokenCleanupRules.spokenSymbols.
- Settings › Dictation › Spoken punctuation (DictationPunctuationSettings,
  App Group key settings.dictationSpokenPunctuation), on by default: the
  141 prose sentences stay unchanged. Read at capture start in the app
  and by in-keyboard dictation. zh-Hans strings added.
- Polished: a line ending in "," or ";" ("Hi Sarah," before a line
  break) no longer gets a period added, and the space before an
  emoticon (":-)") is kept.

Verified: xcodebuild test on an iOS 27.2 simulator (Mac Studio), 582
tests, 0 failures, 1 skipped (pre-existing). New SpokenPunctuationTests
in TranscriptCleanupTests: the models' real transcripts per language,
DictationTranscriber text unchanged, 84 English and 57 other-language
prose sentences unchanged, quote/bracket pairing, every style, the
pipeline switch, Lowercase, lists interplay and the setting's default.
2026-11-21 09:30:41 -05:00
..
FullKeyboard iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
TypingLog iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05: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: dictation picks the car's mic in CarPlay, and a warm session never holds call audio (#2179) 2026-11-21 07:21:46 -05: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: Latin American Spanish dictates with US or Mexican Spanish, and labels name the variant (#2191) 2026-11-21 09:15:50 -05:00
DictationLanguageSwitch.swift iOS: Latin American Spanish dictates with US or Mexican Spanish, and labels name the variant (#2191) 2026-11-21 09:15:50 -05:00
DictationPipeline.swift iOS: spoken punctuation in dictation 2026-11-21 09:30:41 -05:00
DictationTranslation.swift iOS: Apple's on-device recognizer for older iPhones and languages Parakeet can't do, and iOS 18 translation (#2190) 2026-11-21 08:49:11 -05: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
FrenchSpacing.swift iOS: French spacing in dictation, and a second language no longer hurts English autocorrect (#2186) 2026-11-21 08:37:33 -05: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: dictation picks the car's mic in CarPlay, and a warm session never holds call audio (#2179) 2026-11-21 07:21:46 -05:00
KeyboardSurface+ViewModel.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
KeyboardSurface.swift iOS: Latin American Spanish dictates with US or Mexican Spanish, and labels name the variant (#2191) 2026-11-21 09:15:50 -05:00
MicrophoneChoice.swift iOS: dictation picks the car's mic in CarPlay, and a warm session never holds call audio (#2179) 2026-11-21 07:21:46 -05:00
MultilingualParakeetSettings.swift iOS: Multilingual model (Parakeet Ultra) experiment, off by default (#2197) 2026-11-21 09:29:13 -05: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
SpokenPunctuation.swift iOS: spoken punctuation in dictation 2026-11-21 09:30:41 -05:00
TranscriptFormatter.swift iOS: spoken punctuation in dictation 2026-11-21 09:30:41 -05: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