hex/ios/HEXShared/FullKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 3bb4a4433d iOS: the next word gives the word before its language's accents
TestFlight build 56 (English and Portuguese, iPhone 15 Pro Max): Apple's
keyboard puts "nao sei" right once "sei" shows it was Portuguese. Hex
already wrote "não" for "nao" beside Português (build 56 and dev, checked
on a simulator), but a word one language knows as typed stayed: "voce" is
an English word, so "voce esta" kept "voce".

Bilingual autocorrect now revises the word before when the next word
leans the other language (AutocorrectEngine.accentRevision, called from
revision(of:) after bilingualRevision): a word kept because only one
language knows it takes the other's accents ("voce esta" -> "você esta").
Only a lowercase guess of that dictionary's that adds accents alone, to a
word typed without any, and not when the words before lean the other way.
The revision is tagged with the language it is in (lastRevisionLanguage),
so Learn each language separately and the strip's revert see Portuguese.
workingPartner, knowsAsTyped, languageLean and withoutAddedCapitals lose
private so the new file (AutocorrectEngine+Accents.swift) can use them;
AutocorrectEngine.swift is 4 lines from the 1,500-line cap.

Verified:
- xcodebuild test (HEXMobile, iPhone 17 sim, iOS 27.2): 657 tests, 1
  skipped, 0 failures, with a new case in AutocorrectEngineTests.
- Held-out autocorrect benchmark (2,000 sentences each, synthetic taps),
  before (origin/dev 6f0b20c1) -> after: English alone 5.75% (113 broken)
  -> 5.75% (113), Spanish alone 9.06% (77) -> 9.06% (77), identical
  outputs; English with Português 5.86% (116) -> 5.86% (116), identical;
  Spanish with Português 9.73% -> 9.56% (94 broken both; 22 sentences
  better, 0 worse).
- Live on an iPhone 17 simulator (iOS 27.2), Hex keyboard with English and
  Português, HID key taps: "voce esta " was "Voce esta ", now "Você esta ";
  "nao sei " and "nao " stay "Não sei "/"Não "; "I ate a big lunch", "The
  data is real", "I said no so we left", "Come to me now" and "Sotto voce
  please" unchanged.
2026-11-21 14:33:37 -05:00
..
Emoji iOS: experiment to put the emoji panel's ABC under the emoji key (#2221) 2026-11-21 13:41:53 -05:00
AccentPicker.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -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
AutocorrectEngine+Accents.swift iOS: the next word gives the word before its language's accents 2026-11-21 14:33:37 -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: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
AutocorrectEngine+Vocabulary.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
AutocorrectEngine.swift iOS: the next word gives the word before its language's accents 2026-11-21 14:33:37 -05:00
CzechTyping.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
DeleteWordSwipe.swift iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
FullKeyboardEngine+Keys.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -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+SmartSpace.swift iOS: avoid double spaces when editing a word mid-sentence (#2214) 2026-11-21 12:43:26 -05:00
FullKeyboardEngine+SwipeTyping.swift iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
FullKeyboardEngine+Trackpad.swift iOS: the space-bar trackpad moves like Apple's (#2219) 2026-11-21 13:23:46 -05:00
FullKeyboardEngine.swift iOS: the next word gives the word before its language's accents 2026-11-21 14:33:37 -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: experiment to put the emoji panel's ABC under the emoji key (#2221) 2026-11-21 13:41:53 -05:00
FullKeyboardTouch.swift iOS: the space-bar trackpad moves like Apple's (#2219) 2026-11-21 13:23:46 -05:00
FullKeyboardView+Emoji.swift iOS: experiment to put the emoji panel's ABC under the emoji key (#2221) 2026-11-21 13:41:53 -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: experiment to put the emoji panel's ABC under the emoji key (#2221) 2026-11-21 13:41:53 -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: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
HexKeyGesture.swift
HexKeyViews.swift iOS: a balanced top bar, with a small chip for an autocorrection (#2207) 2026-11-21 10:41:42 -05:00
KeyboardBackdropView.swift
KeyboardClipboard.swift iOS: Code from Messages shows only when Apple's keyboard is on (#2187) 2026-11-21 08:39:11 -05:00
KeyboardKeyPlaneView.swift iOS: the space-bar trackpad moves like Apple's (#2219) 2026-11-21 13:23:46 -05:00
KeyboardLanguage.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
KeyboardLaunchWork.swift iOS keyboard: nothing heavy before the keys' first frame (#2185) 2026-11-21 08:28:59 -05:00
KeyboardLayout.swift iOS: a balanced top bar, with a small chip for an autocorrection (#2207) 2026-11-21 10:41:42 -05:00
KeyboardStripView.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
LanguageLearning.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
never-suggest.tsv
OffensiveWords.swift
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: avoid double spaces when editing a word mid-sentence (#2214) 2026-11-21 12:43:26 -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
TypingDecoder.swift
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