mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* iOS: make the four dictation styles read differently
TestFlight build 48 testers saw no difference between Polished, Casual,
Notes and Verbatim. On Apple Speech's already punctuated output, Polished,
Notes and Verbatim wrote the same text unless the transcript had a filler,
and Casual differed only by lowercasing everything.
- Polished: full sentences. Fillers trimmed (adds desktop's "erm"), each
sentence capitalized, English "i" written "I", every paragraph ended.
Chinese and Japanese end with "。", and a sentence already ending in "。"
no longer gets a second "." ("好的,明天见。." before).
- Casual: texting. Sentences may start lowercase and English "I" is "i",
but acronyms, names inside a sentence and words with inner capitals
("iPhone") keep their case; an opening "yeah" or "ok" loses its comma;
no final full stop on a message of one line and up to three sentences
(was: one sentence).
- Notes: concise. Several sentences become a "- " list, "Intro: a, b and
c" bullets its items, an opening "so", "yeah", "first," or "and then"
goes, and lines drop their final full stop. Spoken markers work as
before.
- Verbatim: unchanged.
The style hints and their zh-Hans strings follow the new behaviour.
Replaced: Casual's whole-text lowercasing, which also lowercased names
mid-sentence ("john"), is now sentence-start lowercasing; lowercasing
everything moves to a separate Lowercase setting in a later commit.
Verified: xcodebuild test on an iPhone 17 simulator (iOS 27.2), 306 tests,
0 failures. New cases in TranscriptCleanupTests; the Casual inputs in
KeyboardBridgeTests and one DictationControllerTests case changed from
Title Case to the casing a speech model writes.
* iOS: in-keyboard dictation applies the dictation style
In-keyboard dictation (iOS 26+, the path most people use) inserted Apple
Speech's text after learned fixes, Clean up what I say and translation,
and never ran TranscriptFormatter, so the style picked in Settings ›
Dictation or the Hex key's menu changed nothing there. It also skipped
custom vocabulary. Only dictation through the app (in the app, the
keyboard's warm session and cold start, the Action Button, Control
Center) formatted.
Both paths now run one DictationPipeline (HEXShared): learned fixes,
custom vocabulary, Clean up what I say, Apple Intelligence's cleanup
(app only: refine, which the keyboard doesn't pass), translation, the
style, then the spellings again. The style is deterministic string work
with no model, so the keyboard needs no more memory; the tagger keeps its
own headroom check and #2045's start guard is unchanged.
KeyboardLocalDictation reads the style and custom vocabulary from the App
Group when transcription finishes, as it read the style before, and
records the spelled and formatted stages in typing logs.
Replaced: DictationController's inline post-processing steps (same order,
now in DictationPipeline.run).
Verified: xcodebuild test on an iPhone 17 simulator (iOS 27.2), 307 tests,
0 failures. testInKeyboardDictationWritesEachStyleAsTheAppDoes runs each
style through the app's DictationController and the keyboard's pipeline
with Clean up what I say off and on (real tagger model) and checks they
match and that the four styles differ. A fixed-transcript table before and
after (no transcription in Simulator) showed the keyboard column unchanged
by style on origin/dev and equal to the app column after.
* iOS: Settings › Dictation › Lowercase, as on desktop
Testers asked for desktop's lowercase option on mobile. Desktop's
Lowercase is a built-in transformation (src/personal_commands.rs,
str::to_lowercase) that runs last on the final text: everything goes
lowercase, custom vocabulary and replacements included ("OpenCode
shipped." becomes "opencode shipped", src/rune_ui/output.rs).
Mobile matches it: a Lowercase toggle under Settings › Dictation, right
below Style, off by default (DictationLowercaseSettings, App Group key
settings.dictationLowercase). DictationPipeline lowercases after the style
and the vocabulary's second spelling pass, so it applies to every style and
every path: the app, the keyboard's warm session and cold start, the
Action Button and Control Center (read when recording starts, like the
other dictation settings) and in-keyboard dictation (read when
transcription finishes, like the style). Custom vocabulary is lowercased
too, as on desktop. Casual with Lowercase on writes what Casual wrote
before the previous commit. Strings "Lowercase" and "Lowercases
everything" are desktop's, with its zh-Hans "小写" / "全部转为小写".
Verified: xcodebuild test on an iPhone 17 simulator (iOS 27.2), 309 tests,
0 failures, including testLowercaseRunsAfterTheStyleAndVocabulary,
testLowercaseAppliesOnlyWhenCaptured (Action Button path, mid-capture
toggle ignored) and the keyboard/app parity test with Lowercase on.
|
||
| .. | ||
| CleanupTagger | ||
| TypingModel | ||
| ContainingAppOpener.swift | ||
| HEXKeyboard.entitlements | ||
| Info.plist | ||
| KeyboardLocalDictation.swift | ||
| KeyboardViewController.swift | ||
| PrivacyInfo.xcprivacy | ||