hex/ios/HEXShared/FullKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 8a4216fdbb
iOS dictation: no spaces or stray full stops around Chinese and Japanese; the bar's emoji panel says Back (#2347)
TestFlight build 121 (iPhone Air, iOS 27.3), a tester dictating Chinese on the
dictation bar: a dictation inserted mid-sentence got a space before and after
it, sentences gained periods in the middle, and the emoji panel's ABC key
returned to the bar, not to letters.

Spacing (TranscriptFormatter.insertionText): no space is added where the
character before or after the cursor, or the dictation's own first or last
character, is written without spaces (Han, kana, bopomofo, CJK and full-width
punctuation; isUnspacedScript). Hangul and Latin text are spaced as before.
Han beside a Latin word or a number also takes no space: Apple's Pinyin
keyboard (iOS 27.0 simulator, black box) commits "iPhone" and "下午" next to
Han with none, and Apple's DictationTranscriber writes "我用iPhone拍了".
A Chinese or Japanese dictation that ends in "。" loses it when the sentence
goes on after the cursor ("我想|去超市" + "买点水果。" read "我想去超市 买点水果。 然后");
a whole sentence put between two keeps it.

Full stops: measured Apple's SpeechTranscriber (zh-CN, macOS 27.2, the module
Hex uses for Chinese) on 18 spoken clips with pauses. It writes a space before
every full-width mark ("牛奶 ,然后") and beside Latin words and numbers ("我用 iPhone拍了"),
which Hex inserted as is; it cuts a dictation into results at pauses of about
1.5 s or more and leaves the cut unpunctuated, which Hex joined back to back
into one run-on clause; and it writes "。" itself at some long pauses mid-phrase.
Now, for zh, ja and yue dictations (writesWithoutSpaces), every style but
Verbatim drops spaces with a CJK character on either side
(closingUnspacedGaps); SpeechSegments.joined puts "," (or "、" beside kana)
between two results that meet without a mark; and Polished ends a Chinese line
that finishes in a Latin word or number with "。", never ".". Apple's own
mid-phrase "。" is left alone (no guesser); DictationTranscriber wrote commas
and no mid-phrase stop for the same clips.

Emoji panel: on the dictation bar the ABC key shows the bar's back chevron
(accessibility "Back", already translated to 返回); the full keyboard keeps ABC.

Verified: new cases in KeyboardBridgeTests, TranscriptCleanupTests
(SpokenCleanupRulesTests) and EmojiPanelLettersKeyTests; existing English,
Spanish, German and French cases unchanged and passing; on an iOS 27.0
simulator with the dictation bar, Paste dictation of a planted dictation into
a UITextView: origin/dev gives "我们明天 下午 去公园吧。" and
"我想去超市 买点水果和牛奶。 然后回家做饭。", this change "我们明天下午去公园吧。" and
"我想去超市买点水果和牛奶然后回家做饭。"; the chevron returns to the bar.
2026-11-22 03:47:53 -05:00
..
Emoji iOS dictation: no spaces or stray full stops around Chinese and Japanese; the bar's emoji panel says Back (#2347) 2026-11-22 03:47:53 -05:00
AccentPicker.swift iOS keyboard (iPad): Apple-sized accent menus docked, fitting emoji icons floating; the lost first taps measured (#2325) 2026-11-22 00:52:26 -05:00
AdaptiveTouch.swift iOS: the full keyboard matches the system keyboard one to one (#2178) 2026-11-21 07:20:46 -05:00
AdaptiveTouchLabels.swift iOS: Adaptive touch, personal key centres learned on device (Experiment, off by default) (#2146) 2026-11-21 06:13:04 +00:00
AutocorrectEngine+Accents.swift iOS: the next word gives the word before its language's accents (#2231) 2026-11-21 14:35:35 -05:00
AutocorrectEngine+Dictionaries.swift iOS: text replacements fire like the system's and stay put, and no stray capitals from suggestions (#2173) 2026-11-21 06:10:45 -05:00
AutocorrectEngine+Distance.swift iOS: words mid-sentence stay lowercase unless you capitalized them (#2218) 2026-11-21 14:35:10 -05:00
AutocorrectEngine+Vocabulary.swift iOS: words mid-sentence stay lowercase unless you capitalized them (#2218) 2026-11-21 14:35:10 -05:00
AutocorrectEngine.swift iOS: the next word gives the word before its language's accents (#2231) 2026-11-21 14:35:35 -05:00
CzechTyping.swift iOS keyboard: a late host echo keeps the swipe's pending space (#2273) 2026-11-21 19:14:42 -05:00
DeleteWordSwipe.swift iOS keyboard: a late host echo keeps the swipe's pending space (#2273) 2026-11-21 19:14:42 -05:00
DictationUndo.swift iOS: Undo dictation works after the cursor moves, and goes when it can't (#2240) 2026-11-21 15:15:23 -05:00
FullKeyboardEngine+Field.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
FullKeyboardEngine+HostText.swift iOS keyboard: a late host echo keeps the swipe's pending space (#2273) 2026-11-21 19:14:42 -05:00
FullKeyboardEngine+Keys.swift iOS keyboard: optional number row on iPhone (Settings › Keyboard › Number row) (#2327) 2026-11-22 01:32:20 -05:00
FullKeyboardEngine+Revert.swift iOS: avoid double spaces when editing a word mid-sentence (#2214) 2026-11-21 12:43:26 -05:00
FullKeyboardEngine+Selection.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
FullKeyboardEngine+SmartSpace.swift iOS keyboard: a late host echo keeps the swipe's pending space (#2273) 2026-11-21 19:14:42 -05:00
FullKeyboardEngine+SwipeTyping.swift iOS keyboard: a late host echo keeps the swipe's pending space (#2273) 2026-11-21 19:14:42 -05:00
FullKeyboardEngine+Trackpad.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
FullKeyboardEngine.swift iOS keyboard (iPad): the iPad mini's own rows on every docked iPad, the Hex key in Apple's dictation slot (#2332) 2026-11-22 01:47:25 -05:00
FullKeyboardPalette.swift iOS: Return follows the app's return key type, and the dictation bar's does too (#2200) 2026-11-21 09:54:57 -05:00
FullKeyboardSettings.swift iOS keyboard: optional number row on iPhone (Settings › Keyboard › Number row) (#2327) 2026-11-22 01:32:20 -05:00
FullKeyboardTouch.swift iOS: a quick space tap that drifts still types a space, and space keeps its place in a rollover (#2233) 2026-11-21 14:36:17 -05:00
FullKeyboardView+Emoji.swift iOS: a 38 pt top bar with room above its words, on a glass-coloured material instead of a fixed-colour panel (#2256) 2026-11-21 17:06:06 -05:00
FullKeyboardView+FullAccess.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
FullKeyboardView+Selection.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
FullKeyboardView+Vocabulary.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
FullKeyboardView.swift iOS keyboard: the globe opens the list where Apple's keyboard is split, so the host doesn't crash (#2340) 2026-11-22 03:21:48 -05:00
GermanCapitals.swift iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
GreekTyping.swift iOS keyboard: a late host echo keeps the swipe's pending space (#2273) 2026-11-21 19:14:42 -05:00
HexKeyGesture.swift iOS: the keyboard starts listening on touch-down, with its capture page ready when it opens (#2089) 2026-11-20 20:04:35 +00:00
HexKeyViews.swift iOS: a 38 pt top bar with room above its words, on a glass-coloured material instead of a fixed-colour panel (#2256) 2026-11-21 17:06:06 -05:00
KeyboardBackdropView.swift iOS: the keyboard is iOS's own glass again; the backdrop shows only over an earlier Hex keyboard iOS left on screen (#2302) 2026-11-21 21:29:58 -05:00
KeyboardClipboard.swift iOS: Paste and Code from Messages give way to suggestions in chat boxes (#2279) 2026-11-21 18:28:10 -05:00
KeyboardKeyPlaneView.swift iOS keyboard (iPad): the iPad mini's own rows on every docked iPad, the Hex key in Apple's dictation slot (#2332) 2026-11-22 01:47:25 -05:00
KeyboardLanguage.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
KeyboardLaunchWork.swift iOS: the dictation bar can start dictating by itself (Auto-start: never, on switch, always) (#2267) 2026-11-21 17:08:50 -05:00
KeyboardLayout.swift ios: match apple's keyboard margins and 123 key on the duo's cover screen (#2336) 2026-11-22 02:24:41 -05:00
KeyboardPadRows.swift iOS keyboard (iPad): the iPad mini's own rows on every docked iPad, the Hex key in Apple's dictation slot (#2332) 2026-11-22 01:47:25 -05:00
KeyboardStripView.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
LanguageLearning.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
never-suggest.tsv iOS: never suggest slurs, and swear words only when asked (#2093) 2026-11-20 20:17:31 +00:00
OffensiveWords.swift iOS: never suggest slurs, and swear words only when asked (#2093) 2026-11-20 20:17:31 +00:00
ReturnKeyStyle.swift iOS: Return follows the app's return key type, and the dictation bar's does too (#2200) 2026-11-21 09:54:57 -05:00
ShiftStateMachine.swift iOS: Greek keyboard, tonos autocorrect, and a final ς in Lowercase (#2184) 2026-11-21 08:26:30 -05:00
SmartPunctuation.swift iOS keyboard: a late host echo keeps the swipe's pending space (#2273) 2026-11-21 19:14:42 -05:00
SwipeDecoder.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
SwipeTyping.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
TextChecking.swift iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
TrackpadCursor.swift iOS: the space-bar trackpad moves like Apple's (#2219) 2026-11-21 13:23:46 -05:00
TrackpadSelection.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
TrackpadSelectionStrip.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
TypingDecoder.swift ios keyboard: read a missed space with a slip, and run-together words (#2244) 2026-11-21 16:15:02 -05:00
TypingJournal.swift iOS: hold the bar to dictate, Learn how I type on, a plain centred Paste, and typing logs off (#2210) 2026-11-21 12:11:58 -05:00
TypingJournalLearning.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00