mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Hex inserted a text replacement exactly as stored, so "Brb" (typed with a capital, or auto-capitalised at a sentence start) became "be right back" where Apple's keyboard writes "Be right back". Apple's keyboard (black box, iOS 27.2 sim, Messages, replacements brb -> "be right back", mip -> "My iPhone", omw -> "On my way!"): "Brb" -> "Be right back" (typed or auto-capitalised), "brb" -> "be right back", all caps "BRB" -> "be right back" (as stored, not uppercased), and stored capitals always stay: "omw"/"OMW" -> "On my way!", "mip"/"Mip"/"MIP" -> "My iPhone". Hex now matches: the replacement's first letter is capitalised only when the shortcut was typed with a leading capital and isn't all caps (a one-letter shortcut counts as a leading capital), and only if that letter is lowercase in the stored text; otherwise it goes in as stored. The same casing is used on space, on punctuation, in the strip, with Autocorrect on or off and in bilingual autocorrect. Verified: new AutocorrectEngineTests case (the eight cases above mid-sentence, the strip, auto-capitalised at a sentence start with Autocorrect on and off); full HEXMobileTests suite (469 tests) passes; live in Messages on an iOS 27.2 sim with Hex: all eight cases and "brb" at a sentence start come out as on Apple's keyboard. |
||
| .. | ||
| 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 | ||