mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Slide from a letter through a word's letters and lift: the word goes in. People asked for it at launch (four replies, "a must"); iPhone Hex has it. What changed - typing/SwipeDecoder.kt: iPhone Hex's SwipeDecoder (SHARK2-style shape matching with DTW, turn and pause evidence, the word-pair model) ported to Kotlin with the same parameters, reading the mapped HXTM model in place, so it may run off the main thread. Letters without a key read through the keys people swipe (ß on s, French œ/æ on o-e/a-e); iPhone drops those words. SwipeReader adds English's contractions and your personal-dictionary words and ranks rare names lower (not German, whose capitals list marks nouns). - keyboard/KeyPlaneView.kt, SwipeTyping.kt: a letter touch that travels a key's pitch becomes a swipe; its key no longer types, a trail in the keys' ink follows the finger and the strip shows the word so far (read off the main thread every 70 ms). Lifting reads it on the main thread. A drag back to its own key is a tap that slid; another key going down finishes the swipe first. Shift/?123 slides, accents, the space bar's cursor and Delete's slide are unchanged. - keyboard/KeyboardEngine.kt: the word goes in after a space unless the text ends in one or in opening punctuation, with a capital from shift or the sentence; the strip offers the next three readings. A tapped letter goes in after a pending space, closing marks against the word; space never autocorrects or text-replaces it. Delete right after takes the whole word back as Gboard's does (black box, API 36 emulator): the space before it stays, the strip offers the word again, and the next swipe there types its next reading. iPhone also takes the space; Gboard wins where they differ. - Settings › Keyboard › Swipe typing (TypingPreferences.swipe, default on, as on iPhone and Gboard), English and Chinese strings. - benchmark/typing: swipe_paths.py (the iPhone benchmark's path generator, ported; matches the Swift one to 5e-6 pitch), SwipeReplay.java and swipe-bench.py (host JVM or --device), README section with results. Verified - Same held-out paths as the iPhone replay: Android's decoder gives the identical top four for all 12,514 English and 12,346 Spanish swipes. First word right / typed or in the strip: en 96.9/99.6, es 94.3/99.4, de 95.9/99.4, nb 96.4/99.3, fr 95.2/99.3, it 96.0/99.3. - API 36 emulator (app_process against the APK): 1.0-1.4 ms median and 3.5-5.2 ms p99 per swipe. - quality-gate.py all: report identical field for field to origin/dev's. - testDebugUnitTest green; cases added to NeverSuggestTest and InsertionTest only. - In Messages on the emulator, injected swipes: spacing, capitals, punctuation, Delete and swipe-again behave as above. |
||
| .. | ||
| src | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||