mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
Word replacements: a new list (heard -> write, up to 1,000, the words file's limits, no empty or blank outputs yet) under Settings > Dictation > Custom vocabulary, shown and applied only while that switch is on. They apply in DictationPipeline, so in the app and in-keyboard dictation alike, right before the learned fixes with DictationCorrections.apply's matching (now taking up to 8 words for them), and win over a learned fix with the same heard words. Learned fixes are never changed. A dictation Translate what I say translates gets none; one that goes in as spoken does. Opening: Info.plist (project.yml) exports anomaly.hex.words (public.json, .hexwords, application/vnd.anomaly.hex-words+json) and owns it as a document type copied in (LSSupportsOpeningDocumentsInPlace NO). HexInbox, a small inbox shaped for another file kind later (#2529), copies the file privately, reads it, shows HexWordsReviewSheet over whatever is on screen and deletes both copies when the sheet closes; it logs counts and reasons only. The sheet shows what is added, already there, clashes (Keep mine by default), what this iPhone can't use, what the file skipped, a switch per part, and offers to turn Custom vocabulary on. Strings from the file are Text(verbatim:), direction-isolated and shortened. Add shows a one-line confirmation with Undo; "Undo last import" stays in settings until either list changes or another file is imported. Export: Export words opens a sheet with "Include fixes Hex learned" (off), what is left out and why, then the share sheet with hex-words.hexwords, deleted after sharing. ShareSheet.present gains an optional completion. Every new string has English and Simplified Chinese. Docs: dictation.md and settings-and-home.md. Checked on anomastudio (iOS 27.2 simulator): HexWordsSharedCasesTests (read 59/59, merge 11/11 phone, write 2/2 phone), WordReplacementsTests, CustomVocabulary, DictationLearning, DictationSSOT, DictationController, Greeklish and TranscriptCleanup tests all pass.
8 lines
523 B
Text
8 lines
523 B
Text
/* The microphone permission prompt. */
|
||
"NSMicrophoneUsageDescription" = "Hex 在这台 iPhone 上将你说的话转换为文字。音频绝不会离开这台 iPhone,转录完成后即被删除。";
|
||
|
||
/* The speech recognition permission prompt. */
|
||
"NSSpeechRecognitionUsageDescription" = "Hex 使用 Apple 的设备端语音识别将你说的话转换为文字。你说的任何内容都不会发送到服务器。";
|
||
|
||
/* The kind of file Hex opens: a Hex words file (.hexwords). */
|
||
"Hex words file" = "Hex 词语文件";
|