mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* Android typing: Auto-capitalisation off adds no capitals The keyboard's new Settings › Keyboard › Auto-capitalisation (#2272) only stopped shift coming on by itself; autocorrect still added capitals. As on iPhone (AutocorrectEngine.addsCapitals), TypingWord.addsCapitals = false now means nothing adds a capital you didn't type: - replacement() lowercases its fix ("im" -> "i'm"; "i", "monday" and German "haus" stay as typed, since the fix would be what you typed); - the word before revised by the next ("id like" -> "i'd like"); - the strip's slots and predictions() (no sentence-start capital, no "I", no name capitals). Your own words and shortcuts keep their capitals, and so does a capital you typed. Default true: nothing changes until the keyboard sets it (wiring note in the PR). Verified: testDebugUnitTest passes, with autoCapitalisationOffAddsNoCapitals in NeverSuggestTest; end to end on the API 35 emulator with the preference wired locally, "i think id help on monday" lands as "I think I'd help on Monday" with the setting on and as typed (with "i'd") with it off. * Android typing: French and Italian words between words The release check on 0.2.0 found no strip suggestions for French and Italian in an empty field, after a comma or after a word the pairs don't know: TypingWord's sentence-starter, clause-starter and common-word tables had only en, es, de and nb. They gain fr (je le la; et mais je; de la et le je à) and it (io il la; e ma che; di e che la il a), iPhone Hex's own lists (AutocorrectEngine.sentenceStarters, clauseStarters, commonWords), which the other four Android tables already copy. Checked against the Google Books counts the models come from: the common words are the books' commonest (French de la et le à, Italian di e la che il, "a" seventh) plus iPhone's conversational "je". German and Bokmål already have all three tables. Verified: testDebugUnitTest passes, with everyLanguageOffersWordsBetweenWords (three words at a sentence's start, after a comma and after an unknown word in all six languages); the replay's next-word strip hits rise from 2,188 to 2,272 (French) and 1,663 to 1,712 (Italian); live on the API 35 emulator the empty French field shows Le | Je | La and Italian Il | Io | La (best in the middle). * Android typing: what the end-to-end check found (accents, the French apostrophe key) The benchmark sentences were typed through the installed keyboard into a real field (API 35 emulator, touches injected at the benchmark's points scaled onto the keyboard's own keys) and compared with the replay given the keyboard's measured geometry. Engine-side findings fixed here: - A sentence's first word typed with the automatic capital ("E", "A") counted as typed in capitals, so the next word never revised it: Italian "E andato" stayed instead of "È andato". revision() now leaves alone only two letters or more in capitals. - French's AZERTY apostrophe key sits on the letter rows and the keyboard sends a touch on it to the likelier neighbour, but right after "l" or "d" the word list makes "n" likelier than the apostrophe (the books split "l'" and "d'" off), so "l'imprimerie" could type "lnimprimerie". likelierKey now counts the apostrophe as the likeliest key right after an elided article or pronoun at a word's start. Replay (benchmark only): - types French's apostrophe as the keyboard does: a touch on that key goes through likelierKey like a letter's, and a letter's touch can go to it. French 935 -> 883 word errors from that alone (the keyboard already did it), 864 with the elision odds above. - takes an optional measured geometry (key centres, touch cells, pixels per dp; Replay MODEL SET LANG OUT GEOMETRY.json) and then any number of sentences, so it can type exactly what the keyboard was given. Verified on the Studio: replay word errors English 707, Spanish 1,033, German 714, Bokmål 627, Italian 753 unchanged, French 935 -> 864. End to end 300 en / 300 es / 300 de / 200 nb / 200 fr / 200 it sentences: every difference is the keyboard's double-space period, two intermittent lost taps at a sentence start, and French AZERTY's pitches as the keyboard measures them (a keyboard-side fix, in the PR); with those pitches the replay matches 198 of 200 French sentences. testDebugUnitTest passes (66 tests). |
||
| .. | ||
| main | ||
| release | ||
| test/java/ly/anoma/hex | ||