hex/ios/HEXKeyboard
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
..
CleanupTagger iOS: clean up what I say with an on-device tagger (experiment) (#2023) 2026-11-20 01:29:41 +00:00
TypingModel iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
ContainingAppOpener.swift Open Hex from the iPhone keyboard and show live keyboard setup (#599) 2026-10-31 09:56:02 -07:00
HEXKeyboard.entitlements Set up Hex Mobile internal TestFlight releases (#1997) 2026-11-19 11:48:49 -05:00
Info.plist iOS: plain permission prompts and no pre-prompt Allow button, for App Review (#2058) 2026-11-20 16:13:36 +00:00
KeyboardInputView.swift 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
KeyboardLocalDictation.swift iOS: spoken punctuation in dictation 2026-11-21 09:30:41 -05:00
KeyboardViewController.swift iOS: Multilingual model (Parakeet Ultra) experiment, off by default (#2197) 2026-11-21 09:29:13 -05:00
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00