mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Settings › Experiments › Hinglish (Hindi in Latin letters). While it is
on, Hindi dictation is written in Latin letters the way people text it
("meeting kal 5 baje hai"), in the app and in-keyboard dictation alike.
Hindi is also offered in the Hex key's language menu and named
"Hinglish" there and in Settings › Dictation language.
- HinglishSettings (App Group key experiments.hinglish; the launch
argument --experiment-hinglish turns it on in simulator scenes).
- DictationPipeline runs HinglishRomanizer as its first step, only for
Hindi and only while the experiment is on. Learned fixes, custom
vocabulary, the style (#2103) and Lowercase then work on the Latin
words. The new Stages.heard (Latin for Hinglish) is what learning
compares with the inserted text. It replaces the raw transcript, so
Devanagari isn't learned against Latin edits.
- DictationController reads the setting when a capture starts, as it
does for Lowercase. KeyboardLocalDictation reads it at transcription.
Both stay string rules with no model, so the keyboard's memory guard
(#2045) needs no new headroom.
- DictationLanguageSwitch: nativeName/nativeNames return "Hinglish" for
hi while on, and choices(hinglish:) offers hi-IN after the recents
when Apple Speech lists it. KeyboardViewController passes the setting
and adds it to the menu's signature.
- AppleSpeechLanguages.options and DictationLanguageRow name Hindi
"Hinglish" while on.
- zh-Hans strings for the new row. settings-*-on scenes turn it on. The
keyboard fixture puts a --dictation-language missing from its list
first, for the Hinglish menu scene.
Not changed: Apple Speech still picks the module (SpeechTranscriber for
hi-IN where available, which already writes Latin), and nothing changes
while the experiment is off.
Verified: xcodebuild test on an iOS 27.2 simulator (iPhone 17 Pro):
372 tests, 0 failures, 1 skipped. New tests:
- HinglishRomanizerTests.testStylesAndLowercaseApplyToHinglish
- DictationLanguageSwitchTests.testHinglishOffersHindiByThatName
Screenshots of settings-experiments-on, full-keyboard-languages
(--experiment-hinglish --dictation-language hi-IN) and
settings-dictation-on with hi-IN show the toggle, "Hinglish" ticked in
the Hex key's menu, and Dictation language "Hinglish".
|
||
| .. | ||
| FullKeyboard | ||
| TypingLog | ||
| AppleIntelligenceCleanupSettings.swift | ||
| AppleSpeechModule.swift | ||
| CleanupReconstruction.swift | ||
| CleanupTagger.swift | ||
| CleanupTokenizer.swift | ||
| CustomVocabularySettings.swift | ||
| DictationCorrections.swift | ||
| DictationEditInference.swift | ||
| DictationEditTracker.swift | ||
| DictationLanguage.swift | ||
| DictationLanguageSwitch.swift | ||
| DictationPipeline.swift | ||
| DictationTranslation.swift | ||
| DotScope.swift | ||
| DotScopeShader.metal | ||
| EmptyCapture.swift | ||
| HexTheme.swift | ||
| HinglishLexicon.swift | ||
| HinglishRomanizer.swift | ||
| HomeSwipeCue.swift | ||
| KeyboardBridge.swift | ||
| KeyboardSurface.swift | ||
| SpeechModelInstall.swift | ||
| SpokenCleanupRules.swift | ||
| TranscriptFormatter.swift | ||
| UserFacingError.swift | ||
| VocabularySpelling.swift | ||