hex/ios/HEXKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel a7859ab122 iOS: Hinglish dictation, Hindi in Latin letters (Experiment, off by default)
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".
2026-11-20 19:25:09 -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: spatial autocorrect experiment with Google Books models, plus accent and two-letter fixes (#2059) 2026-11-20 16:18:07 +00: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
KeyboardLocalDictation.swift iOS: Hinglish dictation, Hindi in Latin letters (Experiment, off by default) 2026-11-20 19:25:09 -05:00
KeyboardViewController.swift iOS: Hinglish dictation, Hindi in Latin letters (Experiment, off by default) 2026-11-20 19:25:09 -05:00
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00