mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
TestFlight (Jason, build 56): "Swipe typing keeps auto capitalising in most
cases, even when it shouldn't. It doesn't work how Apple's keyboard does,
where it capitalises only after a full stop." His screen recording also
shows "helli" typed mid-sentence ("myem helli") going in as "Hello", with
"Hello" highlighted in the strip.
Reproduced on dev with the swipe HID tool (iPhone 18 Pro Max simulator, iOS
27.2): shift and auto-capitalisation around swipes are already right after
a comma, a swipe, a strip pick, a delete, a tapped word, a sentence-start
capital turned off, "?" and "!" (#2144, #2159). What still capitalised
mid-sentence was the casing of the candidates:
- Your own words: a Contacts name that is also a common word ("Bell",
"Will", "Young") is a UILexicon term, and the swipe decoder reads the
model's "bell" only as that own word, so it went in as "Bell" wherever
it was swiped. The strip's completions offered it capitalised too.
- Fixes learned at the start of a sentence ("Helli" picked as "Hello"
twice is learned as "Hello"), and guesses iOS returns capitalised, kept
that capital mid-sentence (matchCase keeps a target's own capitals).
Apple's keyboard, black box (iOS 27.2, the simulator's contact Kate Bell):
swiping "the bell rang" gives lowercase "bell"; "taylor" and "kate" come out
"Taylor" and "Kate".
AutocorrectEngine.withoutStrayCapital writes such a word in lowercase when
you didn't type a capital and the dictionary knows it in lowercase. Names
the dictionary knows only capitalised ("Taylor", "Monday"), "I" and its
contractions, words with more capitals ("iPhone"), a capital you typed or
the sentence start gives, and German (nouns) keep theirs. Used for space's
fix (learned typos, Spatial readings, spelling guesses), the strip's
candidates and completions, and swipeCased.
Verified on the Mac Studio, iPhone 18 Pro (iOS 27.2 simulator):
- New tests testAFixBringsNoCapitalOfItsOwnMidSentence and
testSwipedWordsTakeACapitalOnlyWhereApplesKeyboardGivesOne fail on the
previous commit ("hello there's the Bell Will", "Hello" for "helli") and
pass now.
- xcodebuild test -only-testing AutocorrectEngineTests,
FullKeyboardEngineTests, SwipeDecoderTests: 158 tests, 0 failures.
|
||
| .. | ||
| Fixtures | ||
| AutocorrectEngineTests.swift | ||
| CleanupTaggerTests.swift | ||
| CustomVocabularyTests.swift | ||
| DictationControllerTests.swift | ||
| DictationLearningTests.swift | ||
| DotScopeTests.swift | ||
| EmojiSuggesterTests.swift | ||
| FullKeyboardEngineTests.swift | ||
| HexKeyGestureTests.swift | ||
| KeyboardBridgeTests.swift | ||
| KeyboardLayoutTests.swift | ||
| ShiftStateMachineTests.swift | ||
| SwipeDecoderTests.swift | ||
| TranscriptCleanupTests.swift | ||
| TypingLogTests.swift | ||