Repository navigation
Deploy the site to anoma.ly/hex so /hex/android is live - #2545
Merged
Merged
Conversation
…hare one layout, and Spanish never goes to Parakeet (#2164) * iOS: dictation follows the keyboard's language on Automatic TestFlight build 56 (iPhone 17, iOS 27.3), English and Spanish chosen in Settings › Keyboard › Languages: "dictation for Spanish is incomprehensible". Reproduced in the iOS 27.2 simulator: with the keyboard switched to Español and Dictation language on Automatic, the Hex key menu still said English, so Spanish speech went to an English model. With Switch dictation too on, each switch wrote the keyboard's language as a hand-picked choice, which stayed after Spanish was unticked (English keys, es-ES dictation: stuck in Spanish). - LanguageSettings.keyboardDictationLanguage: with two or more keyboard languages and Automatic, dictation is in the language the space bar shows (KeyboardLanguage.dictationLanguage, the iPhone's region where Apple Speech has it). Not where the iPhone's own language has no layout (Hebrew), unless Switch dictation too is on. - AppleSpeechLanguages.resolve uses it for in-keyboard dictation and Hex; the keyboard's Hex key menu names it; DictationController prepares the new language between dictations when the keyboard switches. - Replaced: Switch dictation too no longer writes the keyboard's language as an explicit dictation language. It puts a hand-picked language back on Automatic at each switch, which then follows live, so nothing is left behind when the list or the switch changes. Verified: KeyboardLayoutTests.testAutomaticDictationFollowsTheKeyboardsLanguage, DictationControllerTests.testAutomaticDictationFollowsTheKeyboardsLanguage, the updated Polish/Ukrainian/French switching tests; live on an iPhone 17 iOS 27.2 simulator (Release, Full Access): Español on the space bar now shows Language Español in the Hex key menu, English shows English, and Switch dictation too cleared a picked es-MX on the next switch. * iOS: English and Spanish together type on the first one's keys TestFlight build 56: with English and Spanish chosen, "the keyboard is always stuck in Spanish, with the extra ñ key stuck on the right of the L key". Black box on Apple's keyboard (iOS 27.2 simulator): adding Spanish offers "Add to English (US) Keyboard", checked by default, which makes one bilingual "English & Spanish" keyboard. With English first it is QWERTY with no ñ key, ñ on a held n (N Ñ Ń Ņ Ň) and English's long presses; English added to the Spanish keyboard keeps the ñ key and Spanish's long presses (ñ, ª, º, l·l). Hex instead showed Spanish's own layout whenever the space bar was on Español, so a bilingual English typist saw the ñ key and Spanish holds. - KeyboardLanguageList.layout: with English and Spanish both chosen, both type on the letters and long presses of whichever comes first; any other language (and Spanish alone, or beside French) keeps its own. - FullKeyboardEngine.layoutLanguage carries it to the keys and the accent menu; language (autocorrect, the Spatial and swipe models, the space-bar label, dictation) still switches on the space bar. The typing models already read ñ typed from n where a layout has no ñ key. Unchanged: the language last switched to is global, as Apple's is (a switch in Messages held in Safari and back), and comes back after the keyboard process restarts. A field gives Hex nothing to pick from: documentInputMode is nil in Messages and Hex's own en-US in a test field that asks for English. Verified: KeyboardLayoutTests.testEnglishAndSpanishTypeOnTheFirstOnesKeys, FullKeyboardEngineTests.testEnglishAndSpanishShareTheFirstLanguagesKeys; live on an iPhone 17 iOS 27.2 simulator (Release, Full Access): English + Español shows QWERTY in both with ñ on a held n, Español + English the ñ key in both, in Messages, Safari and an English-only field, before and after a keyboard restart, with the iPhone's languages English or English + Spanish. * iOS: Spanish dictation never goes to English-only Parakeet Part of the TestFlight build 56 report ("dictation for Spanish is incomprehensible"). Checked every path a Spanish dictation can take: in-keyboard dictation is Apple Speech only, and Hex picks Parakeet V2 only for English that Apple Speech would run on DictationTranscriber. One gap: when Apple Speech gives no language at all (Speech not answering), Hex fell back to Parakeet whatever the language, so Spanish would come out as English words. - DictationController.appleSpeechLanguage decides Apple Speech or Parakeet for both the launch check and defaultTranscriber: Apple Speech's pick unless it is English Parakeet takes (AppleSpeechTranscriber.shouldUse, unchanged); with no pick, English still goes to Parakeet and any other language (the one set, else the keyboard's Automatic follows, else the iPhone's) stays on Apple Speech, whose install then says it can't dictate it. Verified: DictationControllerTests.testSpanishNeverGoesToEnglishOnlyParakeet (es-ES and es-MX on either Apple module, es-ES and es-US with no pick go to Apple Speech; en-US on DictationTranscriber and English with no pick still go to Parakeet).
A TestFlight tester asked for a clipboard manager. Records it with iOS's per-read paste prompt as the main constraint. Docs only.
) * feat(labs): make six everyday features standard and retire three cards * test(settings): keep per-app choices and five existing bindings across saves * docs: describe the released controls and preserved per-app settings * test(labs): refresh the nine-card cut in the Linux renders * Regenerate site/src/labs.json and keep the retired Labs bits unused * Keep Learn from corrections' bit test off a retired bit * test(labs): refresh the Labs renders and drop the print-only card from the toggle list
…kground (#2171) * fix(ios): load Parakeet once and keep its preparation progress moving On iOS 18 Hex prepares Parakeet V2 through FluidAudio. A TestFlight tester (iPhone 14 Plus, iOS 18.6, build 56) said "Preparing model" felt stuck. What it did before (measured on an iOS 26.2 simulator with Parakeet forced): - AsrModels.downloadAndLoad loaded (and on a first run compiled) every model twice: once inside download() to check it, again in load(). - Each of those eight per-model loads reported 50% at its start and 100% at its end, so the bar went 0->50%, jumped to 100%, fell back to 50% and sat there through the encoder's compile, which takes a minute or more on an iPhone's Neural Engine and reports nothing. - The download sent ~21,700 progress callbacks in 10 s, each a main-actor task and a SwiftUI update. - The detail text was English-only and never shown. Now: - ParakeetTranscriber downloads with ModelHub.download (resumable, no load) and loads once with AsrModels.load. downloadAndLoad is no longer used. - ParakeetPreparationProgress gives the download 70% of the bar, then fills the load on a time estimate that keeps creeping however long Core ML takes, never moving back and never reaching 100% before Core ML is done. - Copy per phase, with zh-Hans: "Checking the speech model", "Downloading the speech model", "Optimizing for this iPhone… about a minute" (first compile), "Still optimizing. The first time can take a few minutes." (past twice the estimate), "Loading the speech model" (later launches). - ParakeetCompileRecord remembers the iOS build Core ML last compiled for, so later launches say Loading and use the short estimate. - Progress goes out at most 10 times a second (79 events for a first run). - Home's preparing row and its handoff status line show the detail instead of "Preparing model…"; onboarding's Almost ready shows it beside the percentage. - ParakeetLoadGuard now marks only the load, not the download, so a download cut off by a quit doesn't read as "closed while loading, short of memory". - Invalid artifacts from FluidAudio map to the plain download error too. Verified: xcodebuild test on an iOS 26.2 iPhone 14 Plus simulator (492 passed, 1 skipped); first run 467 MB in 7.8 s, load 1.6 s, relaunch 0.4 s; recordings of home and onboarding in English and Chinese with a simulated 40 s compile. The simulator compiles on the Mac, so real iPhone compile time is unmeasured. * fix(ios): pick up a model download iOS cut off in the background A preparation interrupted by going to the background could end up failed until the person tapped Try again: - StallWatch measured with ContinuousClock, which keeps counting while iOS has Hex suspended. Back in the foreground after 90 s or more, the first poll saw no progress for over the limit and cancelled the download with "The download stopped". A poll that comes back over 5 s late now counts as a suspension and restarts the wait. - Preparation now holds a background task, so iOS gives a download or compile a few more seconds after Hex leaves the screen. - A download failure (stall, URL error, Parakeet download error) that happens while Hex is in the background is tried again once when Hex is active again. FluidAudio resumes each file from its .partial with Range/If-Range, so nothing already downloaded is fetched again. A failure while Hex is open still waits for Try again. FluidAudio streams through its own default-configuration URLSession data tasks and has no hook for a background URLSession, so a download can't keep running while Hex is suspended. Verified: xcodebuild test on an iOS 26.2 iPhone 14 Plus simulator (492 passed, 1 skipped), including the new retry-on-return tests.
…2172) * iOS: arrange each keyboard language's letters on another layout (engine) TestFlight (build 56, iPhone 16 Pro, iOS 27.0.1): a German tester types on the English keyboard but wants QWERTZ, which Apple's Settings offers and Hex didn't. This adds KeyboardLetterLayout (own, QWERTY, QWERTZ, AZERTY, Dvorak) and, per language, the layouts Apple's Keyboard Layout list offers for it, observed black box in the iOS 27.0 simulator (Settings › General › Keyboard › Keyboards › Add New Keyboard, and each layout typed on in Messages, read from screenshots and the accessibility tree only). Each language's own (today's) layout stays first and is the default. - KeyboardLanguage.letterRows(_:) builds the rows; the plain layouts are the same 26 letters in every language (as on Apple's). French's "– French" variants differ only by the ´ key Hex already leaves out, so French offers the plain three. - letterHolds(on:) keeps the language's holds and, on a plain layout without the language's own letter keys, holds them right after their base, as Apple's German QWERTZ/QWERTY (A Ä…, O Ö…, U Ü…) and Spanish QWERTY (N Ñ Ń) do. - KeyboardLayout takes letters:, with Apple's Dvorak geometry (delete ends row 1, row 2 from the edge, shift plus nine letters on narrower keys). - Autocorrect's neighbouring-key cost reads the layout's arrangement (setKeys, partner included); the decoder, swipe typing, next-key growth and Adaptive touch already read the drawn keys, and Adaptive touch keys its contexts by the letters, so a new arrangement is a new context. - LanguageSettings stores the choice per language in the App Group (settings.keyboardLanguages.layouts); unset or not offered is the language's own layout. Typing logs' layout lines name the letters. Nothing changes for anyone who doesn't pick another layout: every language's default rows equal today's (tested). Verified: xcodebuild test, HEXMobile scheme, iPhone 17 simulator iOS 27.2: 498 tests, 0 failures (1 skipped, as before), with new KeyboardLayoutTests for the offered layouts, plain rows, English QWERTZ (y/z swap, English's holds, adjacency), plain-layout holds, Dvorak and per-language storage. * iOS: Settings › Keyboard › Languages › Layout picks each language's layout Each language the keys show (every chosen one, Automatic's while none is, and only the first of English and Spanish together, whose keys both type on) gets a Layout menu listing the layouts Apple offers for it, the current one ticked, in the page's existing row and menu style, with zh-Hans strings. The keyboard reads the choice for KeyboardLanguageList.layout's language, so the bilingual English & Spanish keyboard uses the first language's layout; without the App Group (no Full Access on an iPhone that keeps it from the keyboard) every language types on its own layout, as before. Snapshot fixtures take --keyboard-letters and the -on languages fixture shows English on QWERTZ. README documents the observed layouts and behaviour. Verified: xcodebuild test, HEXMobile scheme, iPhone 17 simulator iOS 27.2: 498 tests, 0 failures (1 skipped, as before), with new FullKeyboardEngineTests for English QWERTZ typing (keys, decoder centres, swipe keys, holds), Spatial autocorrect on QWERTZ, Adaptive touch contexts per layout and the shared English & Spanish layout following the first language.
…ray capitals from suggestions (#2173) * iOS: text replacements go in as on Apple's keyboard, and backspace no longer undoes them TestFlight (Jason, build 56, iPhone 18 Pro Max, iOS 27.3, with a screen recording): "Text replacement doesn't seem to work accurately. At the times where it does, tapping the backspace immediately undoes whatever replacement was done." In the video his shortcut "myem" (his email address) stays as typed on space and on return with Hex, while Apple's keyboard replaces it. Apple's keyboard, black box on the iOS 27.2 simulator (Settings > Text Replacement: myem, tyvm, home, ad2, s.o): - Delete right after a replacement takes only the space; no revert bubble, and the strip shows completions of the last fragment ("com"). After an autocorrection it also takes only the space and shows a "teh" revert bubble above the word. (Hex keeps its deliberate one-backspace undo for autocorrections; only replacements change.) - A replacement goes in on space, "." and return; after "(" or a comma ("hi,myem"); for a shortcut with a digit ("ad2") or a dot ("s.o"); for a shortcut that is a word ("home"). Settings refuses shortcuts with spaces. - Tapping the quoted shortcut keeps it once; typed again it is replaced again, however often it was kept. - After a swipe, space leaves the swiped word, and the strip offers the replacement of a reading that is a shortcut. Changes: - AutocorrectEngine.textReplacement(before:) finds the longest shortcut ending the text at a word boundary, digits and punctuation included. Space, a closing mark and return (FullKeyboardEngine.applyTextReplacement) put it in before any autocorrection; the new line on return still goes in on its own, so Send/Search fields see just "\n". - Removed: the one-backspace undo of a replacement, which also suppressed the shortcut for the session and, after two undos, taught it as a kept word that turned the replacement off for good (the likely reason his "myem" stopped working). Replacements now ignore kept/learned/rejected words. - The strip shows a shortcut with digits or punctuation, also without a dictionary for the language; picking it replaces the whole shortcut. - After a swipe, a reading that is a shortcut shows as its replacement. - Moved the built-in word lists to AutocorrectEngine+Dictionaries.swift (no change) so AutocorrectEngine.swift stays under the 1,500-line cap. Verified on the Mac Studio, iPhone 18 Pro (iOS 27.2 simulator): - xcodebuild test -only-testing AutocorrectEngineTests, FullKeyboardEngineTests: 149 tests, 0 failures (new: testTextReplacementsGoInAsOnApplesKeyboard, testASwipedShortcutOffersItsReplacementAndATappedOneGoesIn; two tests updated from "one backspace puts back the shortcut"). - Live Release build in a hosted field on an iPhone 18 Pro Max simulator: "hello there myem" + space -> "hello there jason@example.com ", delete takes the space then "m"; "ad2" shows "second address" in the strip and goes in on space; "s.o " and "myem" + return go in. * iOS: a fix or a swiped word brings no capital of its own mid-sentence 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.
…rns itself off (#2176) * iOS: Translate what I say says when it pastes as spoken, and nothing turns it off by itself TestFlight build 56 testers saw translation stop "after a while" with no sign of why (a Chinese tester: "翻译功能突然没办法用了,一开始可以"; another lost the Hex key menu's Paste in Hindi / Paste in English pair and had to re-enable translation in Settings). Every failure path in DictationTranslator returned nil, so the transcript went in as spoken with nothing said: no language pack (never downloaded, removed in iOS Settings, or still downloading), a pair Apple can't translate, a TranslationSession whose translate() threw (internalError, as when Apple's Translate app is missing), and build 56's "Paste in <source>" choice, which left pastesTranslation false while Settings' switch still read on. What changed: - DictationTranslator.translate returns a TranslationOutcome (skipped, translated, or failed with a TranslationFailure: notDownloaded, unsupported, failed, plus Apple's error code, never the text). A failed translate() is tried once more in a new TranslationSession; a missing pack or unsupported pair isn't retried. Sessions are never kept. Apple's framework sits behind TranslationEngine so tests stand in for it. - The failure rides DictationPipeline.Stages, KeyboardSnapshot (optional, old snapshots still decode) and in-keyboard dictation's finished phase. When the keyboard inserts such a dictation, both keyboards show "Couldn't translate, pasted as spoken" over the fix ("Download Chinese in Settings") for 8 s: the full keyboard's strip in the Full Access hint's shape with Open Hex, the dictation bar as a tappable two-line note. Both open hex-dictation://keyboard/translation (KeyboardLaunchRequest.translationSettings), which opens Settings › Dictation. VoiceOver announces it. - Settings keeps the last failure (experiments.translateDictation.lastFailure) until a dictation translates, checks status for the pair that failed, refreshes it on foreground (packs can be removed meanwhile), and its Download button invalidates a repeated TranslationSession.Configuration, which translationTask otherwise never runs again after a cancelled download. - One switch: removed the pastesTranslation setting, Settings' "Paste in English" toggle and KeyboardViewModel.pastesTranslation/isTranslating's paste half. A stored pastesTranslation=false from build 56 reads as off in Settings and the keyboard alike, and the next switch removes it, so the two never disagree again. - zh-Hans strings for the new copy. Verified: xcodebuild test on an iPhone 17 simulator (iOS 27.2), 515 tests, 0 failures, new cases in HexKeyGestureTests (missing pack zh->en and en->zh, unsupported pair, retry in a new session, 30 dictations with intermittent failures never sticking, build 56's stored "as spoken", the pipeline both ways, the strip's note) and KeyboardBridgeTests (snapshot round trip and old JSON, the launch URL). Screenshots of both keyboards' notes in English and Chinese. The simulator reports Apple translation unsupported on the device, so real downloads and sessions need an iPhone. * iOS: Hinglish dictations going into another language are translated from Devanagari With Hinglish on (#2119), DictationPipeline romanized Hindi into Latin letters before every step, translation included, so Translate what I say handed Apple's Hindi translator Latin-letter Hindi it can't read: the result came back garbled or unchanged. Now a Hindi dictation that may go into another language keeps Apple Speech's Devanagari through the steps and translation; if it goes in as spoken (off, failed, or skipped) it is romanized then, so it is still Hinglish. Stages.heard stays in Latin letters for learning, as before; Hindi into Hindi is unchanged. Verified: xcodebuild test on an iPhone 17 simulator (iOS 27.2), all tests passing, with HinglishRomanizerTests.testHinglishTranslatesFromDevanagari (the translator gets the Devanagari; a missing pack pastes "Mera phone charge nahi ho raha." and says "Download Hindi in Settings").
…building it every dictation (#2177) * windows: back off the dictation HUD after a failed show instead of rebuilding it every dictation (#2175) * windows: keep a late HUD frame up while the HUD backs off (#2175) A first frame that arrives after its attempt resolved frame-less keeps the backoff for later dictations, but the blocked show must not hide the HUD the recording is watching. The blocked branch now only tears down when nothing is up (a start, which clears shown first), using the Hidden path teardown. Also reorders the meter re-ask so the watch mutex is only taken when a re-ask is due, and uses FirstFrame::start's return to spend the re-ask of a refused start.
* iOS keyboard: key haptic fires on touch-down before the key's work, as a crisp tick
Adam (build 56) said the haptics feel weird. In KeyboardKeyPlaneView.began the
haptic and click came after engine.touchBegan, which for a fast typist first
commits the rolled-over key (autocorrect, suggestions) or deletes, so the tick
could trail the finger by tens of ms. The plane now asks the engine which key
kind the finger lands on (new FullKeyboardEngine.keyKind(at:), a pure hit test)
and fires onKeyDown before any typing; delete's repeat still ticks per step.
The tick itself is now a rigid impact at 0.6 (FullKeyboardView.keyTickStyle /
keyTickIntensity, shared with the dictation bar) instead of light at 0.65:
Apple's key haptic is a light, crisp tick and rigid is the sharpest impact
style. The Hex key's hold and menu keep the fuller light thud. The haptic now
fires before UIDevice.playInputClick rather than after it.
KeyboardViewController reads Settings > Keyboard > Haptics on each bridge sync
(appear and poll) instead of building FullKeyboardSettings on every key press.
Verified: new FullKeyboardEngineTests.testKeyFeedbackFiresOnceOnTouchDownBeforeTheKeyTypes
(rollover ticks before either letter types; space, delete, shift, return and
123 tick once each on the way down; lifting never ticks) and the existing
testEveryLayoutAsksForTheSameKeyHaptics; full HEXMobileTests 383 run, 0 failed
(iPhone 17 sim, iOS 27.2). The simulator has no Taptic Engine: style and
intensity need a real iPhone.
* iOS keyboard: Apple's 43 pt keys on a 54 pt row pitch, so rows sit where fingers expect
Black-box measurement beside Apple's keyboard in the same Messages field
(iPhone 17 simulator, iOS 27.2): Apple's keycaps are 43.0 pt tall on a 54 pt
pitch (rows at 598/652/706/760 pt on screen); Hex drew iOS 26's 45 pt on
56 pt, rows at 581/637/693/749. Hex's hit borders therefore sat 12 to 21 pt
above Apple's on screen, so taps aimed by Apple-trained thumbs landed low on
Hex's keys and crossed into the row below ("the hit box is super weird").
iPhone portrait is now 43 pt keys, 11 pt gaps, 5 pt under row 4 (262 pt, was
270): rows sit 9 pt above Apple's everywhere and borders within 6 to 9 pt.
Row 4 can't go lower: a third-party keyboard's view ends 4 pt above Apple's
row 4 bottom, and dropping the 5 pt margin cost low space-bar taps (held-out
benchmark EN 5.94% -> 6.19% WER). The Duo's cover screen keeps its measured
45 pt on 56 pt. Hit frames still tile the key area (gaps split at their
middles, edge keys to the screen edges), which matched Apple's base borders.
Verified: held-out tap benchmark (2,000 sentences each, Spatial on) EN 824
edits before and after (5.9409%); ES 1,145 -> 1,146 (one sentence better, one
worse, both from the fixed 5 pt next-letter reach). KeyboardLayoutTests updated
for 262 pt and the 54 pt pitch; HEXMobileTests 383 run, 0 failed.
Rebased on #2146: Adaptive touch's contexts now key on the key height and row
pitch too (AdaptiveTouchGeometry), so offsets learned on Hex's 45 pt keys on a
56 pt pitch, in keycap units, aren't read on these rows. A key plane with the
same rows keeps its profile, as before.
* iOS keyboard: the key plane matches Apple's, key for key, on every iPhone
Measured from screenshots beside Apple's keyboard in the same Messages field
(iOS 27.2 simulators: iPhone 17 Pro, 17e, Air, 17 Pro Max, SE 3rd gen; light and
dark; letters, shifted, numbers and symbols pages), black box only.
Geometry (KeyboardLayout):
- Key height and row pitch follow the screen (KeyboardPhoneSize): 43 pt on 54 pt
on 844-874 pt iPhones, 45 on 56 on the Air and Pro Max, 42 on 54 on the SE.
Hex drew 45 on 56 everywhere, rows 11-17 pt above Apple's. Rows now sit on
Apple's lines. On 390/402 pt iPhones Apple's row 4 ends 4 pt below where a
third-party keyboard's view ends (touches below y 799 never reach Hex), so
Hex's row 4 keeps Apple's top edge and is 39 pt tall (bottomRowTrim); its
labels are centred as on Apple's 43 pt row.
- The SE's keys start 6.5 pt in, as Apple's (Hex used 4.5).
- Shift, delete, #+= and 123 are 1.227 pitches less 3 pt (fits all five
iPhones within a pixel; a fixed 1.34 letters was 0.5 pt narrow on the 17 Pro).
- The portrait bottom row stands on row 3's columns: 123 (and emoji, or the
globe) end at z's right edge, space runs x to n, return m to the edge. With no
emoji key 123 fills that block, which is what Apple's own keyboard does with
the Emoji keyboard removed; on the SE Apple's row matches with dictation off.
- Apple's emoji key takes taps only 6 pt inside its sides and 7.5 pt below its
top, the margins typing nothing (mapped by tapping); Hex's emoji key does the
same (Erick hit it by accident).
- Keycaps are pixel-aligned and the corner radius is 7.9 pt (same corner fit as
Apple's, 8.1 by the measuring tool; Hex's 8.5 measured 8.7).
Labels (KeyboardKeyPlaneView), fitted against labels rendered offscreen at known
sizes: lowercase 24.5 pt (was 22.5), capitals 21 pt weight 0.12, digits and
symbols 21.5 pt weight 0.08 with case-sensitive forms, a few symbols at their
own sizes, 123/ABC 17.75 pt, #+= 12.25 pt, shift/delete/return/globe symbols
19 pt; the quote keys show " and ' curly as Apple's (they still type straight).
Result: every keycap edge on every iPhone, page and appearance within 0.00 pt
of Apple's (except row 4's bottom on 390/402 pt and the emoji-less 123);
label boxes within 1 pt (median 0.34 pt), ink within 2% (median), except ^, <
and > on the symbols page (different shapes).
Held-out tap benchmark (2,000 sentences each, taps aimed at Hex's own keys):
EN 5.94% -> 6.41% WER, ES 8.61% -> 9.32%: low space-bar taps now fall below the
view's bottom edge (19.5 pt below the space bar's centre instead of 27.5).
With taps aimed where Apple's keys are (a user used to Apple's keyboard):
EN 21.34% -> 6.97%, ES 23.45% -> 10.04%.
KeyboardLayoutTests updated to the measured numbers (heights 253/260/272,
54/56 pt pitch, shift and delete edges, SE inset, bottom-row columns, emoji
target, tiling with the emoji margins); HEXMobileTests 385 run, 0 failed.
Rebased on #2142: the emoji panel's bar sits from keysBottom, so on these
iPhones it now reaches the panel's bottom edge as row 4 does.
testTheBarsKeysTakeTheWholeBandUnderTheGrid skips its probes below the panel,
where nothing can be hit.
Rebased on #2172: Dvorak's letters size from this shift width
(dvorakLetterWidth reads modifierWidth), so its row 3 of shift and nine letters
still fills edge to edge. Its rows take these heights and pitch like every
layout's.
* iOS keyboard: Settings > Keyboard > Strength for key haptics, Medium by default
Testers on X said Hex's key haptic is too weak beside Apple's keyboard (Tareq:
"add an option to adjust the haptic feedback strength", Erick: "not nearly as
nice as apple keyboard"). The tick was a light impact at 0.65 (0d4f78e5 made it
rigid 0.6).
- KeyHapticStrength (light, medium, strong) in the App Group, read on each
bridge sync (FullKeyboardSettings.hapticStrength, default medium).
- Light is a rigid impact at 0.5, Medium (meant to feel like Apple's crisp
tick) rigid at 0.8, Strong a medium impact at 1.0. The full keyboard and the
dictation bar use the same mapping (FullKeyboardView.keyTickStyle/Intensity).
- Settings > Keyboard shows Strength (Light | Medium | Strong) under Haptics
while Haptics is on, with zh-Hans strings (强度, 轻, 中, 强).
Verified: HEXMobileTests 385 run, 0 failed; the Settings page renders the row
in English and zh-Hans (simulator scene settings-keyboard-end). The simulator
has no Taptic Engine: which intensity matches Apple's tick needs a real iPhone.
* iOS keyboard: the Duo folded matches Apple's keys, and a tester fixture follows the new rows
The Duo folded (iPhone Duo simulator, iOS 27.2 iPhone19-4 runtime, cover screen,
Hex beside Apple's keyboard in Messages; Ethan on X: "a tiny bit off"):
- Apple's row 4 ends 7 pt above the keyboard's bottom; Hex's ended 5 pt above, so
every Hex row sat 2 pt low. keysBottom is 7 folded and upright (the strip stays
the top bar's 32 + 8 pt).
- Apple's keys start 6.67 pt from the screen's side, a third of a point outside
the 452 pt view a third-party keyboard gets; Hex's started 8.0 pt in (a 1 pt
minimum inset). The inset may now be 0, so Hex's keys run to the view's edges.
- Apple's keycaps round about 9.8 pt there (Hex drew 7.9).
- Row 4 stands on the letter columns, as Apple's does folded: 123, globe and
emoji one key wide on q, w and e, space from r, return from l's column. Apple
puts dictation on m's column; Hex has none, so its space bar runs on (a Hex key
right of space takes that slot).
Result: rows on the same y as Apple's, every edge within 0.67 pt (the view's
edge), corners 10.2 vs 10.1 by the same measuring tool. Not measured unfolded
(no unfold tool on the Studio); the unfolded metrics are unchanged.
testTheTestersSentenceComesOutRightWithSpatialAutocorrect (from origin/dev) placed
its taps on the old 45 pt rows on a 56 pt pitch, down to y 242 where row 4 now
ends at 236, so low space taps fell off the keys. Each tap now sits at the same
spot on today's row; the expected sentence is unchanged.
KeyboardLayoutTests: the cover's Apple edge is 6.67 pt, and the bounds checks
allow 0.001 pt of rounding now that keys can touch the view's edge.
Verified: HEXMobileTests all passing (iPhone 17 sim, iOS 27.2); Duo cover
screenshots measured as above.
* iOS keyboard: turned, the keys match Apple's on every iPhone
Measured turned beside Apple's keyboard in the same Messages field (iOS 27.2
simulators: iPhone 17e, 17 Pro, Air, 17 Pro Max, SE), black box:
- Apple's keys are 32 pt on a 40 pt pitch with 2 pt under row 4 on every iPhone
(4 pt on the SE), corners 7.9 pt. Hex drew iOS 26's 27.5 pt on 35.5 pt with
3 pt under, every row 2 to 17 pt below Apple's. The strip stays the top bar's
42 + 8 pt; the keyboard is 204 pt (was 187).
- Row 4 stands on row 1's columns: 123 on q, emoji (or the globe) on w, space
from e to i, return from o to p (KeyboardMetrics.bottomRowReturnColumn, which
the Duo folded now shares with its own 8.5).
- Shift, delete, #+= and 123 on row 3 are 1.33 letters wide turned (the portrait
rule left them 2.3 pt narrow).
- The SE sets its keys 72 pt in from each side, 47 pt wide; Hex's ran 4 pt from
the edges, 60.5 pt wide.
Result: every keycap edge on the five iPhones within 0.5 pt of Apple's turned
(0.00 on all but the SE's delete, 0.5). Apple's SE reaches emoji through the globe
and shows no emoji key turned; Hex keeps its emoji key after the globe, so the
SE's space bar starts one key later. Not measured: the Duo turned (its cover
screen doesn't rotate in the simulator); it follows the iPhone.
Verified: KeyboardLayoutTests (heights 204 and 198 turned, new
testLandscapeMatchesApplesKeys); turned screenshots on all five iPhones.
* iOS keyboard: turned labels and held keys look like Apple's
Black box, beside Apple's keyboard in the same field (iOS 27.2 simulators):
Turned labels (17e, 17 Pro, SE; fitted against labels rendered offscreen at
known sizes and weights): letters, digits and symbols are about 0.875 of their
portrait sizes (lowercase 21.5 pt, capitals and symbols 18.75 pt a little
heavier), with per-symbol sizes where Apple's differ (. , : _ # * • and others);
123 15.5 pt, ABC 17.75 pt, #+= 12.25 pt; shift, delete and return symbols 18 to
18.5 pt (Hex drew 15.5 to 16), and the emoji key's face semibold, as Apple's.
Hex drew 18 and 19 pt labels, about 14% lighter than Apple's. Now each label's
box is within 1 to 1.25 pt of Apple's and its ink within 1% (median) on the 17e
and SE turned.
Held keys: Apple paints a held key one of three greys. A letter under its pop-up
222 (105 dark), which Hex already drew for every key; shift, delete, globe, emoji
and return 197, 197, 201 (131 dark); the space bar 242, 242, 247 (56 dark). 123
and ABC switch the page as they go down and aren't shaded. FullKeyboardPalette
gains keyHeldFill, functionHeldFill and spaceHeldFill; every held key now
measures within 1 grey level of Apple's in light and dark (17e).
Checked, nothing to change: keycaps have no shadow, edge highlight or inner
stroke on Apple's keys (letter or function, light or dark); the fill meets the
panel in one anti-aliased pixel, as Hex's does, and a 32 x 32 px corner differs
by at most 6/255. The keys draw over #2139's opaque backdrop.
Verified: HEXMobileTests passing; screenshots above on the simulators.
* Draw iOS 27's floating key pop-up and let it linger after lift
What: the key pop-up is now iOS 27's bubble: a rounded rectangle (radius 12)
23.33 pt wider than the key and 65 pt tall, floating 3.5 pt above it, with no
border or stem. The letter is 36.5 pt in either case; digits and symbols use the
key's own style scaled 1.5x. The dark bubble shades from 63 to 85 grey, and the
pressed key stays drawn grey under it. Over row 1 the bubble shrinks to the room
there is, down to 50 pt, because an extension can't draw above its view, which
Apple's can. After lift the pop-up and its grey key stay 45 ms, then go in one
frame.
Removed: iOS 26's balloon (a 46 pt bubble on an 8 pt stem that covered the key,
1 px border, 33 pt light label). Also removed: the pop-up disappearing before its
letter reached the field, and edge bubbles kept 2 pt in from the sides (now
pushed in only as far as the screen needs, as Apple's are).
Why: black-box comparison with the system keyboard on the iPhone 17e and 17 Pro
simulators (iOS 27.2), measured from screenshots and 60 fps recordings.
Verified: popups-17e-apple-vs-hex.png comparison, light and dark. On 60 fps
recordings of 120 ms taps, Hex's pop-up now leaves about 47 ms after the letter
lands (Apple about 50). Full HEXMobileTests pass.
* Match Apple's long-press accent callout: arrangement, layout, timing
What: the accent callout now looks and behaves like the system keyboard's
(iOS 27.2 simulators, every English letter, digit and symbol key held and
screenshotted):
- Arrangement: options sit where Apple puts them, the key's own selected over
the key (e: ë é [e] è ê ě ẽ ē ė ę; $: ₽ ¥ € [$] ¢ £ ₩; " « » „ “ ” ["]).
"a" gets two rows (æ ã å ā ă ą over a à á â ä ǎ). The characters stay
#2140's observed lists (KeyboardLanguage.letterHolds, symbolHolds, the
123/#+= list). AccentCatalog.arrangement only places them, and only while its
table lists exactly the same options, so a list change can't drop or invent
one. Languages without a checked arrangement open from the key toward the
middle, as before.
- Geometry: cells are the held key's width + 4 pt (36.3 on a 390 pt iPhone's
letters, 51.7 on the wide . , ? ! ' keys, 67 in landscape). Rows are 47 pt
with 10.5/10.35 pt padding and 20.8 pt corners, 3 pt above the key, kept
6.67 pt from the sides. Sliding picks by row, then by nearest cell.
- Look: the selection is a grey rounded square (227/227/230, dark 87 grey,
6.3 pt corners) behind 21.5 pt regular options, on the pop-up's bubble with no
border. The dark callout lightens toward its bottom.
- Letting go more than 57.5 pt below the key's middle closes the callout with
nothing typed (Apple: 55 pt types, 60 cancels).
- Hold delay 0.36 s: the callout replaces the pop-up about 380 ms in (Apple
382, Hex was 420).
The emoji panel's skin-tone picker passes its own cell width and keeps its
layout and drawing unchanged (AccentMenu.buildFixed, drawFixed).
Removed: the blue selected cell with white medium text, the 1 px border, the
44 pt cells and 4 pt padding, and opening every list sideways from the key with
the base at the thumb end.
Why: press-and-hold visuals should match the system keyboard one to one.
Verified: 17e simulator screenshots of Apple vs Hex holds (e with slide and
drag-off cancel, a, n, u, k, $, 0, ", ', .), light and dark, and landscape (i).
The drag-off typed nothing on both. Updated testLongPressAccentPicker... for
Apple's arrangement. Full HEXMobileTests pass apart from #2142's emoji bar band
test, fixed with the key-plane geometry it depends on.
Rebased on #2164 and #2172: the arrangement is looked up for the layout's
language and letters, as the options are (the bilingual English & Spanish
keyboard holds English's; Spanish on plain QWERTY, whose n also holds ñ, opens
its own list). testEnglishOnQWERTZTypesOnItsOwnKeys checks the selected option
is the key's own instead of the first, since Apple's y reads ÿ ŷ ý [y].
* Match Apple's key-plane micro-animations: shift press, key release, trackpad fade
What, each measured against the system keyboard from 60 fps recordings and
mid-press screenshots on the iPhone 17 Pro simulator (iOS 27.2):
- Shift: a press that turns shift on now shows nothing until lift: no shade,
outline arrow, lowercase letters (ShiftStateMachine.pressShowsOff,
FullKeyboardEngine.keycapLabel). Hex used to shade the key and show capitals on
touch-down. Shift still engages on touch-down, so a chord types a capital, and
the keycaps show capitals once a letter has been typed during the hold. Presses
that turn shift or caps lock off still shade at once, as Apple's do.
- Delete, space, return, globe and emoji stay shaded 60 ms after a tap lifts.
Apple shows them 265-284 ms for a 200 ms tap; Hex showed 200-210 and now
265-277. A delete held long enough to repeat, or used for a word swipe, lets
go at once, as Apple's does.
- Trackpad: the key labels fade out and back in, ease-out over 0.24 s (visible
change 204/198 ms against Apple's 202/200, first step 10 ms after the change,
Apple 13). The space bar unshades as it becomes the trackpad. Hex used to blank
the labels in one frame and keep the space bar shaded. Reduce Motion, or no
window, switches at once. A CADisplayLink drives the fade through a weak ticker,
only while it runs.
- Trackpad hold delay 0.4 s -> 0.35 s: it now starts 363 ms after touch-down,
as Apple's does (Hex was 417).
Unchanged, because Apple's are instant too: pop-up appear/disappear, page
switches (123/ABC/#+=), accent callout open, select and close, and caps lock.
Verified: recordings and screenshots of Apple vs Hex for shift (held from off,
from on and from caps lock), delete/space/return taps (50, 200 and 600 ms),
the trackpad, page switches and accent open. Full HEXMobileTests pass. Tap
latency is untouched (the linger and fade run after lift or after the trackpad
starts).
* Place portrait letter labels where Apple's sit, not centred by advance
What: letter keycaps (letters page, portrait) now draw each letter at its key's
middle plus Apple's measured offset for where that middle falls between whole
points: sixths of a point on 3x screens, quarters on 2x (KeyboardKeyPlaneView
drawLetter, letterNudge3x/letterNudge2x; lowercase and capitals separately).
Capitals move up a pixel (yOffset -1 -> -1.33).
Why: a TestFlight tester (build 56, iOS 27.2.1) said the letters look slightly
off-centre. Measured at native resolution against the system keyboard (iOS 27.2
simulators, ink centroid of each of the 26 letters relative to its keycap's
centre, lowercase and capitals, light and dark), Apple doesn't centre letters by
their advance as plain text does. Its offset depends on the key's position: on
the 17 Pro, keys centred on a whole point have letters 0.2-0.6 pt left of plain
centring, and keys centred on a half point have them 0.3-0.8 pt right. The same
fraction gives the same offset on the Pro Max. Hex's plain centring was therefore
0.27-0.32 pt off Apple's per letter (median; up to 0.82) on 3x screens, and
0.35/0.58 (up to 1.16) on the SE. Capitals also sat 0.27 pt (0.8 px) low on every
letter.
Removed: plain advance centring for portrait letters. Landscape letters, digits
and symbols keep it.
Verified (Apple minus Hex, ink centroids, median|max, pt):
- 17 Pro: lowercase 0.31|0.82 -> 0.09|0.49; capitals 0.27|0.63 -> 0.14|0.42
- Pro Max: lowercase 0.29|0.77 -> 0.10|0.44; capitals 0.28|0.75 -> 0.13|0.53
- Air (held out of the fit): lowercase 0.29|0.77 -> 0.10|0.44; capitals
0.28|0.75 -> 0.13|0.53
- SE (2x): lowercase 0.58|1.16 -> 0.15|0.44; capitals 0.35|0.70 -> 0.12|0.37
- Vertical, capitals on 3x: 0.27 -> 0.06.
Lowercase stays 0.13 pt low and SE capitals 0.28 low: text lands on whole
pixels, so a whole pixel would overshoot. Light and dark measure the same. Full
HEXMobileTests pass.
* Draw Apple's grinning emoji-key face instead of SF Symbols' face.smiling
What: the emoji key draws the face Apple's shows (KeyboardKeyPlaneView
drawEmojiFace): a 19 pt face (18 in landscape) with an open mouth and a band of
teeth, centred 0.67 pt above the key's middle. Light mode draws a 1.58 pt ring;
dark mode draws a solid face with the eyes and mouth cut through to the keycap
(even-odd fill). The teeth are always the light colour.
Why: the key-plane overlays showed Hex's emoji key drawing a closed smile
(face.smiling), and in landscape at 16 pt instead of Apple's 18. Apple's grinning
face isn't a public SF Symbol (face.grinning and the like don't exist), so it is
drawn from primitives sized from measurements of 3x simulator screenshots on the
17 Pro, Pro Max, Air, 17e and SE (iOS 27.2): ring, eyes 2 x 2.67 pt at
(+/-2.78, -2.13), and a mouth 12.33 pt wide, its top 0.5-1.5 pt and its bottom
6.5 pt below the centre. No Apple artwork is copied.
Removed: the face.smiling symbol on the emoji key.
Verified: zoomed Apple vs Hex crops on the 17 Pro in light, dark and landscape
match by eye; within the glyph, 5.2% (light) and 2.0% (dark) of pixels differ by
more than 64/255, mostly a one-pixel horizontal phase. Full HEXMobileTests pass.
* Lay out Spanish holds as Apple's; keep the key's own until the finger moves
What:
- Spanish callouts use the system keyboard's arrangement, read off every letter,
digit and symbol held on the iOS 27.2 Spanish keyboard
(AccentCatalog.spanishOrder). Examples: º ō œ ø õ ô ò ó [o] ö with ö to the
right of o; ū û ù ü ú [u]; l·l [l]; ń [n]; 9ª [9] 9º; [0] 0ª ° 0º. Symbols as
English's. The characters stay #2140's Spanish letterHolds and symbolHolds,
which match these on screen.
- The accent callout keeps the key's own character selected until the finger
moves into another cell, and lifting types the current selection
(FullKeyboardEngine.accentOpenCell, accentIndex). The debug fixtures select a
callout option directly (debugSelectAccent), as a slide to it does.
Removed: lifting choosing the cell under the finger even if the finger never
moved. At the screen's edge the callout shifts, so 0 typed "0º" on a plain hold;
Apple's types "0". Also removed: the fixtures' synthetic move, which landed in
the cell the finger opened in when a long callout shifted (Italian e), so it
selected nothing.
Why: the Spanish system keyboard comparison (17e simulators, both set to
Spanish) showed the arrangement differing and the 0 hold typing the wrong
character.
Verified: Apple vs Hex screenshots of o s d l n z c 1 9 0 held on the Spanish
keyboard all match. A plain hold of 0 now types "0", and slide-then-drag-off
cancels. Lowercase holds confirmed đ (Spanish) vs ď ð (English). Full
HEXMobileTests pass apart from #2142's emoji bar band test, fixed with the
key-plane geometry it depends on.
* Replace the letter-position table with per-scale constants: it didn't generalize
What: portrait letters are again centred by advance, plus a constant per case
and screen scale: lowercase +0.17 pt and capitals 0 on 3x screens, +0.55 and
+0.23 on the 2x SE (KeyboardKeyPlaneView drawLetter). The capitals' one-pixel
lift from cef53885 stays.
Removed: cef53885's letterNudge3x/letterNudge2x tables, which offset each letter
by where its key's middle falls between whole points. They were fitted on the
17 Pro and Pro Max (the Air shares the Max's key phases, so it wasn't an
independent check). On the 17e, held out, they made letters worse: lowercase
0.23 -> 0.42 pt (median, Apple minus Hex), capitals 0.22 -> 0.27, worst cases up
to 1.0. The 17e's half-point keys need the opposite offset from the 17 Pro's.
No model tried (rounding to pixels or points from the screen, the keyboard or
the row; ink-weighted centring; optical sizes) predicted Apple's per-key
scatter across devices; the best managed 0.31 pt RMS against 0.385 for plain
centring.
Why: only the per-case constant holds on every device of a scale. Apple's
lowercase sits 0.13-0.22 pt right of plain centring on all four 3x iPhones
measured, its capitals within 0.13 either way, and the SE's by 0.55 and 0.23.
Verified (ink centroids, all 26 letters, light and dark; median|max, pt):
- Lowercase x: 17 Pro 0.31|0.82 -> 0.25|0.82; Air and Pro Max unchanged
0.29|0.77 (the half-pixel nudge rounds away there); 17e 0.26|0.81; SE
0.58|1.16 -> 0.27|0.69.
- Capitals x: unchanged on 3x (0.25-0.28); SE 0.35|0.70 -> 0.33|0.64.
- Capitals y on 3x: 0.27 -> 0.06.
- Full HEXMobileTests pass.
…er holds call audio (#2179) Settings › Dictation › Microphone (Automatic, iPhone, Bluetooth) replaces the Always use iPhone microphone switch. In a car the old default recorded from the iPhone, often in a cupholder hearing the speakers and the road, while the car's microphone sat unused; Hex's own recording mixes, so the car went on playing over it. Automatic (the default) now records from a wired or USB headset's microphone, from the car's in CarPlay (the driver's microphone Siri uses), else from the iPhone's, so AirPods and other Bluetooth headphones keep playing at full quality and nothing waits for call audio. iPhone is the old default; Bluetooth also takes Bluetooth hands-free microphones (AirPods, Bluetooth car kits, which iOS can't tell from headphones). The stored switch migrates: left on reads as Automatic, turned off as Bluetooth. Changed behaviour: - The input is always set explicitly (MicrophoneRoute). Before, Bluetooth mode set no preferred input, so an iPhone preference set earlier in the same session stuck, and Automatic-style CarPlay/wired choices didn't exist. - The warm keepalive stays on the iPhone's microphone without HFP whatever the choice. Before, with the switch off, it took the headset's or car's hands-free microphone for the whole warm session (up to an hour of call audio). A dictation moves to its input as it starts; a new route device re-pins the keepalive in every mode, not only with Bluetooth allowed. - In-keyboard dictation asks WebKit for the same input by its label (getUserMedia deviceId), read from the keyboard's own session. Before, with the switch off it asked for nothing, and WebKit takes the input of the route already playing, the iPhone's while a car or headphones play over A2DP, so the switch had no effect there. The probe log now lists the inputs offered and the one chosen. Kept: mixWithOthers, no preferred sample rate, RetiredRecorders, keepalive backoff, and the keyboard's resume request after WebKit's capture. Verified: xcodebuild test on an iPhone 18 Pro simulator (iOS 27.2) on the Mac Studio, 519 tests, 0 failures (1 opt-in skip), including new cases for each choice on each route (CarPlay, AirPods, Bluetooth car kit, wired headset, nothing), the keepalive's input, HFP only for Bluetooth, the migration and the controller passing its choice to the capture. Settings row rendered in English and Simplified Chinese. The simulator has no Bluetooth or CarPlay: the route behaviour itself is unverified on an iPhone.
…e-bar cursor on the Dictation bar (#2180) * iOS: remove and add dictation languages right in the keyboard A TestFlight tester (build 56, iPhone 17 Pro, iOS 26.7.2) couldn't take a recognition language off the keyboard's switch, and a new one only showed up after picking it in Hex. - A long press on a language (a dictation bar chip, or a row on the Hex key menu's Language page) shows Remove. Removing takes it out of the recents and keeps it off while it is one of the iPhone's own languages (settings.dictationLanguage.removed); the one set goes back to Automatic. Picking it again brings it back. - Settings › Dictation language has Remove from keyboard for the same list. - More languages… lists every other language Apple Speech has, the iPhone's preferred ones (and their other regions) first, then the rest by name. Picking one adds it. In the dictation bar the list takes the keys' place; on the Hex key menu it is a scrolling page. - The switch now shows while More languages has anything, so removing every language never hides the way to add one back. - Automatic is unchanged and still follows the keyboard's language (#2164). - zh-Hans for Auto, More languages…, Remove and Remove from keyboard. DictationLanguageSwitch.choices takes a removed list (the one set always shows); LanguageSettings.keyboardLanguageChoices builds the list for the keyboard and Settings alike. Verified: xcodebuild test on an iPhone 17 Pro simulator (iOS 26.4), 517 tests, 0 failures, including two new cases in KeyboardBridgeTests. Live in the simulator's real HEXKeyboard with AXe: removed and added languages from the dictation bar, the full keyboard's Hex key menu and Settings, checking the App Group each time; snapshot scenes in English and Chinese, light and dark. * iOS: the dictation bar's space bar moves the cursor A TestFlight tester (build 56) found that long-pressing space on the Dictation bar keyboard couldn't drag the cursor, as the full keyboard's and Apple's can. The bar's space key (KeyboardSurface's TrackpadSpaceKey, replacing its Button) is now the full keyboard's trackpad, with FullKeyboardEngine's own constants: a hold of trackpadHoldDelay (0.35 s since #2178) or a slide of trackpadActivationDistance (10 pt) starts it, and each trackpadPointsPerCharacter (7.5 pt) moves the cursor a character through adjustTextPosition, with a selection haptic per step (Settings › Keyboard › Haptics, Full Access) and a "cursor" typing-log line. The bar's glyphs blank while it slides, as the full keyboard's do: a 0.12 s fade, at once under Reduce Motion. Letting go of a trackpad types nothing; a tap still types a space, and a cancelled touch types nothing. VoiceOver still activates it as a button that types a space. Verified: xcodebuild test on an iPhone 17 Pro simulator (iOS 26.4), all passing. Live in the simulator's HEXKeyboard with AXe on "Running 10 min late, ": a tap typed a space; a slide moved the cursor left (a comma then landed after "min") with no space typed; a 0.9 s hold then a slide moved it right; the screenshot mid-slide shows the blank keys.
…2184) * iOS: Greek keyboard layout A TestFlight tester asked for Greek. Adds KeyboardLanguage.greek ("el", Ελληνικά). It matches the standard Greek layout and the system keyboard's observed long-press options, as the iOS 27.2 simulator's own Greek keyboard shows them (read through accessibility, every letter, 123 and #+= key held for about 3 s with a real touch, the keyboard-provenance survey and converter as since #2140): - Rows: ερτυθιοπ´ / ασδφγηξκλ / ζχψωβνμ, nine, nine and seven keys. The iPhone keyboard has no ; or ς key (; is on 123, ς on a held σ); its row 1 ends in the tonos key ´ (U+00B4) and sits over row 2. - Tonos key: not a dead key. With real touches in Messages, ´ after an unaccented vowel accents that vowel (α´ -> ά, Α´ -> Ά, ϊ´ -> ΐ, ϋ´ -> ΰ); after anything else, an accented vowel included, it types ´ itself. No ¨ key: the diaeresis is only on held ι and υ. GreekTyping holds these rules. - Final sigma: σ types ς while it ends the word and turns back into σ when another letter follows ("ας", then α: "ασα"), as observed. - letterHolds: ε έ; υ ύ ϋ ΰ; ι ί ϊ ΐ; ο ό; α ά; σ ς; η ή; κ ϗ; ω ώ; nothing else, the tonos key included. In capitals the system offers nothing on Σ and only Ί Ϊ / Ύ Ϋ on Ι / Υ, so AccentCatalog drops ς, ΐ, ΰ there for Greek. - Pages: 123 has the ano teleia · where English has ; and ; where English has ?; #+= has ? where English has |. Same key frames as English's. The currency key is $, held as English's; a held " offers French's order. - ; is Greek's question mark, so after "; " auto-capitalization turns shift on and the strip offers sentence starters, as the system keyboard does. Autocorrect uses iOS's el dictionary through the dictionary engine, as Ukrainian does: no typing model. Greek letters are not Latin, so there is no bilingual partner (#2143's check skips it). el/el-GR picks the layout automatically (dictation language, then the iPhone's keyboards and languages; Greek used to fall back to English), the space bar says "Ελληνικά" while switching, and Switch dictation too dictates el-GR. Hex's short next-word lists get Greek entries. Snapshot scenes take --keyboard-layout el. FullKeyboardEngine stays under the 1,500-line cap: the Greek hook lives in GreekTyping.swift and didEdit is no longer private. Verified: the full HEXMobile suite passes (520 tests, 1 skipped) on an iPhone 17 Pro simulator (iOS 27.2), with new Greek cases in KeyboardLayoutTests (rows, pages, frames, holds and capitals, automatic pick, no partner), FullKeyboardEngineTests (typing καλημέρα with ´, final ς and its undoing, ϊ´ -> ΐ, ´ after a consonant, switching) and ShiftStateMachineTests. Live in Messages with the Hex keyboard: typed "Καλημέρα, τι κάνεις;" with the tonos key (U+03AD) and a final ς (U+03C2), held ι and σ, and switched between English and Ελληνικά on the space bar, in light and dark. * iOS: Greek autocorrect restores a missing tonos Greek typed without its accents is common ("καλημερα" for "καλημέρα"), and a word lacking a tonos and a diaeresis ("αυπνια" for "αϋπνία"), or a tonos and its final ς typed as σ ("λογοσ" for "λόγος"), was more than the one edit autocorrect accepts. On the Greek layout, as on the Polish one (#2143), a guess that differs from what was typed only by tonos, diaeresis or σ/ς now costs what one missing Spanish accent does (0.15), plus 0.05 for each further one. Other layouts keep the one-edit rule. Verified: AutocorrectEngineTests pass on an iPhone 17 Pro simulator (iOS 27.2), with the new costs and fixes for καλημερα, Καλημερα, κανεις, αυπνια and λογοσ (over "λόγοι", listed first), a word left alone, and no fix on English; the full HEXMobile suite passes (520 tests, 1 skipped). In Messages the simulator's checker corrected no Greek word ("καλημερα " stayed), as with Polish, so the fixes run against a stub dictionary answering as an iPhone's would; unverified on a physical iPhone. * iOS: Greek dictation, and Lowercase writes a final ς Greek dictation works through Apple Speech: macOS 27.2 lists el-GR for DictationTranscriber only (not SpeechTranscriber), and say -v Melina clips came back with every tonos and final ς, numbers as digits ("10 λεπτά", "7:30") and no punctuation ("Καλημέρα τι κάνεις"). Parakeet is English-only, so el-GR always goes to Apple Speech. Lowercase lowered every capital sigma to σ: Swift's String.lowercased() maps Σ without context, so "ΟΔΟΣ" became "οδοσ". It now uses Foundation's lowercased(with: nil), Unicode's context-aware mapping, which writes ς at a word's end ("οδος", "τους") and σ elsewhere or alone, and lowers Ά Έ Ή Ί Ό Ύ Ώ Ϊ Ϋ. Other languages lower as before; desktop's to_lowercase already does this. Tests: SpeechLanguagePickerTests picks el-GR from DictationTranscriber, by hand and by a Greek iPhone's Automatic, never English. SpokenCleanupRulesTests check Polished (capital, final stop), Casual, Verbatim and Lowercase (final ς, accented capitals, a lone Σ, English unchanged). README notes the macOS run. Verified: the full HEXMobile suite passes (520 tests, 1 skipped) on an iPhone 17 Pro simulator (iOS 27.2). In the simulator Hex picks Greek as the speech model for a Greek iPhone and, with no speech models there, says "Greek isn't available on this iPhone yet. Try English." rather than falling back to Parakeet; dictating itself is unverified there. * iOS: Greek callouts laid out as the system Greek keyboard's #2178 lays English's and Spanish's long-press callouts out as the system keyboard's (AccentCatalog.arrangement); other languages open from the key toward the middle. Greek now has its observed arrangement too: every held letter opens with the key's own on the left (ι ί ϊ ΐ, σ ς, κ ϗ, ...), even on the right-hand keys, and a held " is „ “ ” « » ", as the iOS 27.2 simulator's Greek keyboard showed them; its other symbols are English's. In capitals the arrangement drops ς, ΐ and ΰ, as options(for:) already does, so Σ opens nothing and Ι shows Ι Ί Ϊ. Rebased onto #2178, the capital filter now sits in options(for:) beside its shared upper(). Verified: the full HEXMobile suite passes (530 tests, 1 skipped) on an iPhone 17 Pro simulator (iOS 27.2), with new KeyboardLayoutTests cases for the Greek arrangements (ι lower and upper, κ, Σ none, ", $ as English's).
TestFlight build 56 (AD4gTl68aP78, iPhone 15 Pro Max, iOS 27.2): switching to Hex showed only empty panels, then iOS went back to the previous keyboard. Until a keyboard's first frame iOS shows an empty panel, and it drops a keyboard that is slow to draw or ends while starting. The keyboard did device-only blocking work on that path: - viewDidLoad called AVAudioSession setAllowHapticsAndSystemSoundsDuringRecording synchronously on the main thread (an audio-server round trip). It now runs once per process on KeyboardLocalDictation's audio-session queue, before any dictation's session work on that same serial queue. - viewDidAppear queued the text checker warm-up, Apple Speech's language listing and the capture page's WKWebView with DispatchQueue.main.async, which the run loop can service before the first Core Animation commit. They now run from KeyboardLaunchWork: the text checker and lexicon 0.3 s after appearing, then the optional work (Speech and Translation language lists, capture page) at 0.6 s, only while iOS reports 32 MB of headroom (or none, as in the simulator) and never after a memory warning. Both are cancelled when the keyboard hides. Translation's language list no longer starts from viewDidLoad's first bridge sync. Not reproduced in the iOS 27.2 simulator on 2ef08aa or d23acdf (French alone, English, English+Spanish, French+English; Full Access on and off; Safari and Hex Settings > Keyboard), so the device cause is not confirmed. Release peak footprint there was 30-31 MB for every language; French loads no typing model. Verified: xcodebuild test on an iPhone 15 Pro Max iOS 27.2 simulator, 524 tests, 0 failures, 1 skipped (new KeyboardBridgeTests case for the launch budget); the keyboard comes up in Safari and in Hex's own test field with French, and the capture page is still prepared after the first frame (probe log).
…ts English autocorrect (#2186) * iOS: French dictation gets French spacing before ? ! ; : and inside « » X (Philippe): "When dictating, in some languages punctuation has a space before, like question and exclamation marks in French. Right now they're not inserted." Black box first: - Apple Speech (macOS 27.2.1, say -v Thomas and Amélie): fr-FR and fr-CH write "ça va ?" with a plain U+0020 space; fr-CA's DictationTranscriber writes "ça va?" (its SpeechTranscriber a plain space). None writes U+202F/U+00A0. Hex's Polished, Casual and Notes then took every space before a mark out (fixSpacingBeforePunctuation), so French came out "ça va?". - Apple's Français (France) AZERTY keyboard (iOS 27.2 simulator, real taps in Messages): "Salut" then ? gives "Salut?", "salut ?" keeps the plain space typed, same for ! : ;. The keyboard never adds French spacing. Change: - FrenchSpacing, the dictation pipeline's last step (DictationPipeline.format, after the style, lists, vocabulary spellings and Lowercase; every style but Verbatim, which keeps the model's text). France and every other French: a narrow no-break space (U+202F) before ? ! ; and a no-break space (U+00A0) before : and inside « ». Canada (OQLF): none before ? ! ;, U+00A0 before : and inside « ». Switzerland: U+202F before ? ! ; and inside « », U+00A0 before :. A translation into French is spaced as French (format already takes the target language). - Whatever space was there (none, several, NBSP, NNBSP, thin) becomes exactly one; running it twice changes nothing. Only a mark that ends a word is spaced (followed by a space, the end, another mark or a closing quote or bracket), so 10:30, URLs and ?q=1, a mark typed against a URL or address, emoticons (:) ;-) :D), code in backticks, "::", a mark at a line's start and the second mark of ?! stay as they are. - Full keyboard: unchanged, matching the system keyboard (marks go in as tapped in every French layout). Defaults picked (no tester answer): Swiss guillemets use the narrow space (Guide du typographe); Verbatim is left alone. Verified (iPhone 17 simulator, iOS 27.2, Mac Studio): xcodebuild test, 530 tests, 1 skipped (needs HEX_SPEECH_CLIPS), 0 failures, including new FrenchSpacingTests (pipeline in every style, Canada and Switzerland, no doubled spaces, times/URLs/emoticons/code untouched, idempotent) and FullKeyboardEngineTests.testFrenchMarksGoInAsTyped (fr, fr-CA, fr-CH). * iOS: bilingual autocorrect keeps English as good as alone beside French or German X (Philippe): "Would also be great if the keyboard supported typing multiple languages without having to actively choose which one to use at a given time, like Gboard." What works today: bilingual autocorrect (#2097, #2143, #2164) already pairs any two Latin-script languages with an iOS dictionary (English with Français, Deutsch, Italiano, Português, Polski, Norsk, Română, Español), whatever their order: the first other chosen Latin language is the partner, its dictionary is checked per word and the strip shows both languages' fixes and completions. So no new pairs were needed. But the held-out English benchmark (2,000 Tatoeba sentences, Spatial autocorrect on) got much worse with a partner on: 5.75% WER alone, 7.56% with Français, 7.53% with Deutsch (7.18% with the German Spatial experiment). Causes, measured: - iOS's French and German dictionaries take many English typos for words ("dont", "im", "ive", "dk", "dl", "ro", "tkm"), and a word either language knew was never changed, so "Im" and "dont" stayed (61 and 42 losses). - They also take common English words ("the", "you", "your", "not", "please"), so the words-before lean almost never said English. - The partner's spelling guesses changed names English kept ("Ziri" -> "Zuri"). Changes (AutocorrectEngine): - languageLean: a word both dictionaries know counts, from three letters, for the language whose typing model has it among its commonest (-ln P <= 10). - In a sentence that leans the keyboard's language, a word the partner knows still gets this language's sure fixes (unambiguousFixes, two-letter slips). - Without a lean, Spatial autocorrect may still read the taps as another word, counting the partner's word as a valid one (changed only on its valid-word margin), except words with a sure fix, which the next word decides. - bilingualRevision: at a sentence's start, "Im"/"Dont" become "I'm"/"Don't" at the next word's space when that word leans English (German "Im Haus" stays; the revision's undo is the existing one). - A partner word without a vowel is no word (iOS abbreviations), and the partner's guess of a name is never a fix. - Kept: #2143's guard (workingPartner ignores a dictionary that takes every word), #2164's layout rule (English and Spanish on the first one's keys; other languages keep their own layouts), dictation following the keyboard. Removed: "a word either language knows as typed is never changed" without exception; it now has the exceptions above. Black box (iOS 27.2 simulator): Settings offers "Add to English (US) Keyboard" for French (France, Canada, Switzerland) ("Type in English and French on the same keyboard": one "English & French" keyboard on QWERTY, no switching); Portuguese, Polish, Turkish offer "Add to Existing Keyboard". It fixed "I dont know" and "Dont do it", kept "est" and "merci" after English words; its French data is thin in the simulator ("je pense" -> "he pence"), so its French weighting is unverified. Verified (iPhone 17 simulator, iOS 27.2, Mac Studio, rebased on #2180): - Benchmark (ZZDecoderBench, not committed): English alone 5.75% (unchanged by this change); with Français 7.56% -> 5.79% (correct words broken 125 -> 99, 113 alone); with Deutsch 7.53% -> 5.79%; Deutsch with its Spatial model 7.18% -> 5.70%. Before rebasing (2a023f9): alone 5.24%, Français 7.07% -> 5.24%, Deutsch 7.08% -> 5.27%. - Code-switching probe (centre taps): after "we said that", 1 of 80 French words changes (dont -> don't) and 3 of 72 German (auch, ist, habe), none before; at a message's start and after French or German words, none; slips in French/German words at a message's start fixed as before (26/50, 18/40). - Letter p95 with a partner 4.1-5.4 ms (3.9-5.1 ms before), 2.2 ms alone. - xcodebuild test: 530 tests, 1 skipped, 0 failures, including new AutocorrectEngineTests.testBesideAnotherLanguageEnglishStillFixesItsOwnTypos and the existing bilingual tests (testABilingualKeyboardKeepsBothLanguagesWords, testTheFrenchKeyboardFixesEnglishTyposWithEnglishBesideIt, testAPartnerDictionaryThatTakesEveryWordIsIgnored).
TestFlight build 56 (iPhone 18 Pro, iOS 27.3): in a one-time-code field the strip's "Code from Messages" chip "doesn't actually paste anything". Cause: the chip calls advanceToNextInputMode, because only Apple's keyboard gets codes from Messages and Mail. With Hex and Emoji as the only keyboards (or Hex alone, or another third-party keyboard) the next keyboard is Emoji or nothing, so the tap shows the emoji panel and no code. iOS draws nothing OTP-related above or inside a third-party keyboard and delivers no code to it (no textDidChange, proxy insert or lexicon entry). Fix: the strip offers the chip only when UITextInputMode.activeInputModes has one of Apple's keyboards (not Emoji, dictation or a UIKeyboardExtensionInputMode). Otherwise a one-time-code field gets the plain Paste chip for a fresh copy, or nothing. The chip itself is unchanged. Verified on an iPhone 17 Pro simulator (iOS 27.2, Safari field with autocomplete=one-time-code): before, Hex+Emoji showed the chip and the tap opened Emoji; after, no chip. English+Hex+Emoji (either order) shows the chip and the tap lands on Apple's keyboard, skipping Emoji. New cases in KeyboardClipboardTests; HEXMobileTests 527 passed, 1 skipped.
…#2189) * iOS: swipe guesses read the letters under the path, from where the finger turned and paused X tester (Brandon McConnell): "The swipe keyboard guesses don't appear to account for letters 'under' the swipe." SwipeDecoder already matched the whole path SHARK2-style (location by point and by dynamic time warping, normalised shape, start and end keys, language model), but on the path resampled to 32 evenly spaced points with the touches' times thrown away. A straight stroke runs over the keys between its ends, so words that differ only by a key on that line drew the same ideal path: "tired"/"tied" (i to e over r), "wire"/"write", "tire"/"tie", "greet"/"get", "pit"/"put", and the language model alone chose between them. The decoder now also reads Evidence from the raw path: points where it turns sharply (angle over 0.2 pitch each side) and, from the touches' timestamps, where the finger slowed (time per pitch against the swipe's median). The best 80 words are scored on an edit distance between their keys and that evidence, in order: a turn or pause no key of the word explains costs by its strength, a key the word turns at without a turn or pause near it costs, and a key it goes straight through without a pause on it costs (only when the path has times). SwipeTyping keeps each touch's UITouch.timestamp (KeyboardKeyPlaneView passes it) and hands it to decode and the preview; paths without times, or whose times are all equal (tests), read turns only. Parameters were tuned on the dev sentences and on mined dev sets of common words that share a path, with fingers that stop at every key, keep 60% or 90% of their speed through a straight-on key, or hesitate between keys; lmWeight 1.1 -> 1.0 and locationWeight 40 -> 30 were retuned with them. Benchmark (experiment 2026-11-20-hex-swipe-typing, held-out test sentences, 390 pt, top-1 before -> after): English typical 94.9 -> 97.1, neat 97.5 -> 98.9, sloppy 76.8 -> 81.2, clean 98.1 -> 99.3, 60 Hz 94.9 -> 97.1, Duo split 94.2 -> 95.1; Spanish typical 90.9 -> 94.2, sloppy 77.3 -> 82.5, split 90.5 -> 91.8. Fingers that barely slow on straight-on keys (flow 0.9): 94.9 -> 95.9 and 90.9 -> 93.0; with a mid-stroke hesitation in 30% of words: 94.7 -> 96.0 and 91.0 -> 93.8; no times at all: 94.9 -> 94.9 and 90.9 -> 91.7. Held-out words that share a path (mined, 5 swipes each): English 85.1 -> 96.0, Spanish 81.2 -> 94.5; the hand-picked set with Brandon's examples (tired/tried/tire, great/grant/greet, though/through/tough, where/were/wire, ...) 75.1 -> 89.2. Decode on an M5 Max: median 0.86 -> 0.91 ms, p99 2.72 -> 2.85 ms, max 3.96 -> 4.34 ms (English); Spanish unchanged. Live on an iPhone 17 Pro simulator (iOS 27.2, Release, HID touch paths): tired with a pause on r -> "Tired", the same path without -> "tied", "wire" with a pause on r and "write" with pauses on r and t read as themselves. Kept: #2173's withoutStrayCapital casing and #2159's swipe spacing (untouched; the full suite passes). Tests: SwipeDecoderTests testAPauseOnALetterTheStrokeCrossesReadsIt and testAPauseOffTheWordsKeysCountsAgainstIt (SwipePath.timed), and FullKeyboardEngineTests testASwipeReadsWhereTheFingerPaused (the plane hands the times through). Full HEXMobileTests: 530 run, 0 failed, 1 skipped (iPhone 17 sim, iOS 27.2). * iOS: slide along the emoji categories to scrub the grid, and the whole band under the grid takes them X tester (Brandon McConnell): "The hitbox size for the emoji category buttons in the emoji picker is really small, making it difficult to quickly navigate the emoji picker", and "should be able to swipe through these emoji categories, which is currently unsupported." Black box, Apple's emoji keyboard (iPhone 17 simulator, iOS 27.2, Safari, HID touch paths): the grid scrolls sideways, sections left to right, emoji filling each column top to bottom. A tap on a category jumps the grid to its start when the finger lifts (a held finger moves nothing). A finger sliding along the bar scrubs the grid live and continuously: each icon's slot runs through its own category (its left edge at the category's start, its right edge at the next one's), the grid staying where the finger lifts. Scrolling the grid by hand moves the bar's chip. While scrubbing Apple's bar shows a capsule behind every icon and hides the chip; Hex keeps #2142's chip and moves it with the finger. The simulator has no haptics, so whether Apple's bar ticks is unknown; Hex gives the light selection tick it gives the skin tones, per new category, when haptics are allowed. EmojiCategoryBar now tracks the touch itself instead of one UIButton per category: a tap selects on lift, a move past 8 pt starts a scrub that reports the category under the finger and how far across its slot, and its buttons only draw and speak (VoiceOver activates them through accessibilityActivate). EmojiPanelView's band routing (#2142) now hands every touch under the grid between ABC and delete to the bar, so each category takes the full height to the panel's bottom edge and the full width of its slot (32.6 pt on a 402 pt iPhone); it maps a scrub onto the grid (scrub(toSection:fraction:)), and while a finger scrubs the grid follows the bar rather than the other way round. Live (iPhone 17 Pro simulator, Release, Hex keyboard in a Safari field): taps at y 797 (under the icons, at the panel's bottom edge) and y 760 (between the grid and the icons) open Food and drink and Travel and places; sliding from Frequently used to Symbols moves the grid through every category with the chip under the finger. Memory (footprint, one run): tapping every category peaked at 44.5 MB and scrolling past every emoji by hand at 44.4; one slide across five categories peaked at 46.0, three slides back and forth across the bar at 47.5 and ten at 48.3, back to 42-43 MB resident after. Scrubbing redraws a screen of emoji per move, so its peak sits 1.5-4 MB over browsing; throttling it to 30 or 15 Hz only took off about 1 MB, so it isn't. Tests: EmojiSuggesterTests testTheBarsKeysTakeTheWholeBandUnderTheGrid now checks the bar takes every point of every slot from the grid to the panel's edge (it checked the buttons), and testSlidingAlongTheBarScrubsTheGrid covers tap on lift, a small move staying a tap, the scrub through every category with one tick each, the grid moving within a category, the end of the bar at the end of the grid, and the chip following a hand scroll. Full HEXMobileTests: 530 run, 0 failed, 1 skipped. * iOS: a swipe that comes back to its key types its letter, and "this is a test" swiped stays as typed TestFlight (build 56): "Swipe keyboard doesn't handle next word capitalization correctly. Also forgets to add a space sometimes. For example try swiping 'this is a test'. Example: This Isa test." Reproduced on this branch (rebased on origin/dev 83717ce) with HID touch paths in a Safari field (iPhone 17 Pro simulator, iOS 27.2, Release, Hex keyboard): swipe "this", swipe "is", tap "a", swipe "test" types "This is a test", so #2159 (the space a swiped word keeps pending before a tapped letter) fixed "Isa" and #2173 (withoutStrayCapital) the stray "Is"; shift is on only at the sentence start. A small slide on "a" (8 pt) is still a tap and types "a" too. Still broken: "a" slid a little past the swipe threshold (a key's pitch) and back typed "as", because the decoder reads no one-letter word (Apple's keyboard reads that path as "As" too; it is what the tester's "a" can be). SwipeTyping now reads a swipe that lifts on the key it went down on, never more than 1.6 key pitches from it, as a tap that slid: the swipe ends with nothing typed and the key's letter goes in through the engine's own tap path (the pending space, shift and autocorrect as a tap's), unless the decoder read a word that starts and ends on that key ("lol" on l, "pop" on p). A slide from a that lifts on s still reads "as". Live after the fix: tap, 8 pt slide, and 45 pt out-and-back slide on "a" all type "This is a test". Tests: FullKeyboardEngineTests testThisIsATestSwipedWithASingleLetterBetween (the sequence with "a" tapped, slid a little, and slid out and back, in a field that capitalises sentences; then ". " and "it works" swiped starts the next sentence with a capital). Full HEXMobileTests: 530 run, 0 failed, 1 skipped.
…akeet can't do, and iOS 18 translation (#2190) * iOS: older iPhones and other languages dictate with Apple's on-device recognizer before iOS 26 TestFlight build 56, iPhone XR (3 GB, iOS 18.7.12), sent twice: setup fails every time while loading the speech model, the app closes, then shows a low-memory message; restarting and closing apps didn't help. The tester mainly needs Chinese, which iOS 18 couldn't dictate at all: Parakeet V2 is English only and SpeechAnalyzer needs iOS 26 (the iPhone XR can't get it). Measured (iOS 26.2 simulator, iPhone SE 2nd generation profile, Parakeet forced, phys_footprint sampled every 20 ms plus footprint/vmmap): - Parakeet's encoder is 425 MB on disk, 6-bit palettized (294 constexpr_lut_to_dense ops); Core ML's compiled program for it is 1.19 GB of 16-bit weights (e5bundlecache bnns_program.bnnsir, 1,186,681,184 bytes). - In the simulator that program is mapped clean from disk, so Hex's own dirty memory stays small: first run peak 103 MB during the encoder load and compile (before #2171 77 MB), 90 MB holding the models, 156 MB during a first transcription; the pre-#2171 double load compiled once (1.6 s) and reloaded from cache (60 ms). - The simulator runs the models on the CPU, so the jetsam number that matters is device-only: an iPhone's Neural Engine before the A17 holds the unpacked 1.19 GB, which with Hex's own ~100 MB is about a 3 GB iPhone's whole foreground limit (1.4-1.8 GB), and twice that while build 56 loaded every model twice. Now (SpeechEngineChoice): - iOS 26+: unchanged, Apple Speech or Parakeet, never the recognizer, so iOS 26 never asks for Speech Recognition (App Review notes). Parakeet beside Apple Speech also needs no set-aside load and room to load. - Before iOS 26: Parakeet only for English on an iPhone over 3 GB with no interrupted load and os_proc_available_memory at least 1.4 GB (0, the simulator, counts as unknown). Everything else goes to OnDeviceSpeechTranscriber: SFSpeechRecognizer with requiresOnDeviceRecognition, punctuation, the custom vocabulary as contextual strings, in the language the recognizer has on device (zh-Hans-CN -> zh-CN, zh-Hant -> zh-TW, en -> en-US; OnDeviceSpeechLanguages), else Automatic moves on to the next language as on iOS 26. - Speech Recognition is asked for only as that engine gets ready (onboarding's first page, Set up on home, or a keyboard handoff), after progress copy that says it stays on the iPhone. A launch prepares it by itself only once it's allowed, and then marks the model installed so the keyboard's handoff starts recording. - Parakeet checks os_proc_available_memory right before its load; short of 1.4 GB it sets itself aside (ParakeetLoadGuard.setAside, like an interrupted load) and throws notEnoughMemory, and prepareModel moves on to Apple's engine with a notice instead of letting iOS end Hex. A launch after an interrupted load picks the recognizer (before iOS 26) instead of failing with "Hex closed while loading the speech model": no jetsam loop. - Onboarding says Preparing rather than Downloading for the recognizer, and its wait page's note says speech recognition rather than the model download. - Settings > Dictation language shows before iOS 26 too, listing the recognizer's on-device languages, with where iOS adds them. - defaultTranscriber and appleSpeechLanguage moved from DictationController.swift (1,499 of 1,500 lines) to DictationController+Engine.swift with the launch logic. - zh-Hans for every new string. Verified (with the next commit, on origin/dev acf0f2b): xcodebuild test on an iPhone SE (2nd generation) iOS 26.2 simulator, 546 tests, 0 failures, 1 skipped (AppleSpeechClipTests, as before), including the new DictationControllerTests cases for the choice by OS, memory and language, the fallback after an interrupted or memory-short load, the permission asked only as the recognizer prepares, iOS 26's default engine never being the recognizer, and the locale matching. A probe in that simulator showed the XR choice building OnDeviceSpeechTranscriber and the recognizer reporting no on-device language there (supportsOnDeviceRecognition false for all 63), so transcription with it, the permission prompt and the XR's memory are device-only. The iOS 18 onboarding and Settings copy rendered in zh-Hans in a simulator build that forced those branches. * iOS: Translate what I say translates before iOS 26 through a session in Hex's window Before iOS 26 DictationTranslator skipped every translation, while Settings let Translate what I say be turned on and its language downloaded, so on iOS 18 every dictation went in as spoken without a word. The TestFlight tester on an iPhone XR (iOS 18.7.12, build 56) needs it with Chinese. Apple's Translation framework is there on iOS 18 (LanguageAvailability, TranslationSession.Configuration, prepareTranslation), but a TranslationSession comes only from SwiftUI's translationTask; TranslationSession(installedSource: target:), which DictationTranslator uses, is iOS 26. - TranslationSessionHost: Hex's root view hosts a translationTask; each translation queues its text, sets or invalidates the configuration for its pair, and the task translates the queue with the session it gets. TranslationEngine .hosted is set as the view appears, and DictationTranslator uses it before iOS 26 (the keyboard has none and doesn't translate there). - iOS may not run the task, or the translation, while Hex is in the background (a dictation finished from the keyboard). A translation not answered within 10 s goes in as spoken with the new reason needsHexOpen, not retried; the keyboard's note says "iOS 18 translates only with Hex open" and Settings says the last dictation couldn't be translated while Hex was in the background. - zh-Hans for both strings. Verified (on origin/dev acf0f2b): xcodebuild test on an iPhone SE (2nd generation) iOS 26.2 simulator, 546 tests, 0 failures, 1 skipped, with DictationControllerTests.testBeforeIOS26ATranslationWithoutHexsWindowSaysSo for the reason, its copy and no retry. The simulator says Translation isn't supported on it, so a hosted session translating, in the foreground and in the background, is device-only.
* ios: learn each language separately (experiment) * ios: split KeyboardSurface under the file cap * ios: per-language learning review fixes
….x (#2194) 0.2.0 builds stopped uploading once 0.2.1 was approved (Apple rejects uploads below the highest approved App Store version), and every new version number needs its own beta review before external testers get it. TestFlight now stays on one version, 0.9.0, that is never submitted, so builds flow to testers after one beta review. App Store releases are 1.0.x, cut with the new scripts/marketing-release.sh, which tags ios-beta-appstore-<version> for ci_post_clone.sh to stamp. Replaces the README's 0.2.2 rule. Verified: project.yml sets 0.9.0 for the app, keyboard and widgets; the script parses.
…labels name the variant (#2191) * iOS: Spanish dictation follows the iPhone's region, not always Spain An English + Español keyboard on Automatic with Switch dictation too always dictated with Apple Speech's Spain model (es-ES), even for Latin American Spanish. Apple Speech has only es-ES, es-MX and es-US: es-419, es-CO, es-AR and every other Latin American, United States or unlisted Spanish region now try es-US, then es-MX, before es-ES. Plain es follows the iPhone's Region (es-MX in Mexico, es-US in the US and Latin America, es-ES elsewhere). - The keyboard's quick switch offers one variant per language, and a variant picked by hand survives the space bar switching away and back. - Picking a variant drops its siblings from the recents (nb/nn/no and Hinglish stay one language). - The Hex key's Language row and pages name the region where Apple Speech has more than one of a language ("Español (US)", "English (GB)"). - Settings › Dictation language says "Follows keyboard: English (US) · Spanish (US)" while Automatic follows, refreshed when Hex returns to the foreground. Tests cover the region rule, the picked variant, one chip per language, recents and labels. No iPhone or simulator ran the Spanish variants. * iOS: keep Chinese variants apart, name the Spanish variant on chips
…smart quotes, a two-way trackpad, and key clicks (#2192) * iOS: delete after an autocorrection takes only its space, and the strip offers what you typed X tester Brandon McConnell (and a TestFlight tester about text replacements, fixed in uncorrected version." Apple's keyboard doesn't (black box, iOS 27.2 simulator, a UITextView): after "becuase " became "Because ", delete took only the space and the text view showed "Becuase" with an undo arrow; space then kept "Because ", a letter continued the word, a second delete took a letter, a comma went like a space, tapping the bubble put "Becuase" back without the space, and deleting back to the word later brought the bubble back. Revisions ("well see " -> "We'll see ", bubble "Well see") and splits ("ofthe" -> "Of the", bubble "Ofthe") work the same. Removed: Hex's deliberate "one backspace undoes the correction" (FullKeyboardEngine. deleteBackward's undo branch and AutocorrectEngine's pending undo, consumed by the next delete). Replaced by: - AutocorrectEngine.lastCorrection keeps the latest autocorrection with what was typed, what went in and an anchor (the text before the cursor right after it); it is offered while the text before the cursor reads that again (its last 64 characters for long text), and forgotten on a new field, a new language or a newer correction. The many clearPendingUndo calls after other input are gone: the anchor check covers them. - KeyboardSuggestion.Kind.revert: the strip's left slot shows it in place of the word as it reads, pill-highlighted with Apple's undo arrow (a keyboard can't draw a bubble in the host's text). Tapping it puts back what was typed, suppresses the fix for the session, and counts as an undone autocorrection for Learn how I type and Adaptive touch (whose word taps the delete of the space now keeps for it). Typing logs: autocorrect_undo with src strip, context why revert. - Merges, splits and #2144's revisions go through the same record. - deleteBackward's allowAutocorrectUndo is now takesSwipeBack: it only gates a swipe's whole-word delete, which stays. Verified on the Studio (iPhone 17, iOS 27.2 simulator): AutocorrectEngineTests, FullKeyboardEngineTests and TypingLogTests pass (updated: the keep loop, the revision, the edge-space join, punctuation and Adaptive touch tests now revert from the strip; new: testDeleteAfterAnAutocorrectionTakesOnlyItsSpaceAsOnApplesKeyboard with the black-box cases). * iOS: smart quotes and dashes as the system keyboard types them, per language X tester Brandon McConnell: "no smart quotes/etc." Hex typed straight quotes and two hyphens everywhere. Apple's keyboard (black box, iOS 27.2 simulator, a UITextView with each trait on and off, a text field, Messages, and 15 of its keyboards): - ' and " open at the start, after a space or new line, a bracket or an opening quote, and close elsewhere: 'hi' it's "yes" ("ok") 5'9" became ‘Hi’ it’s “yes” (“ok”) 5’9”. - A second hyphen makes an em dash (a--b is a—b, a third stays a hyphen, delete takes the dash whole); " - " stays. - Autocorrect's apostrophes are ’ (Don’t, I’ll), and the strip shows I’m. - smartQuotesType or smartDashesType .no turns each off; Messages' composer types straight quotes and -- (both off there). - Quotes per keyboard: „ “ ‚ ‘ in German and Swiss German (the apostrophe key types ‘ even inside a word), « » with no-break spaces inside in French, Canadian and Swiss French, „ ” ‚ ’ in Polish, « » in Norwegian, Russian and Ukrainian, “ ” ‘ ’ in English, Spanish, Italian, Portuguese and Romanian. Serbian (no simulator keyboard) gets the English ones. - smartInsertDeleteType changed nothing it types: after a picked suggestion, , . ! ? ; : ) took the suggestion's space ("Hello,") with it on or off; " ( @ kept it, and so did a space typed by hand ("Hello ."). Hex now does the same: - SmartPunctuation.swift: SmartQuotes per KeyboardLanguage, curled() for typed keys and for autocorrect, suggestion, swipe and revert text, the em dash in typeIntoField, and the strip's apostrophes (displayed). Accent picks, emoji and text replacements go in as they are. KeyboardTextTarget gains smartQuotesType and smartDashesType (the proxy's; nil, off, for fixtures); .default counts as on, Smart Punctuation's default, which a keyboard can't read. - The keys still reason with straight quotes: FullKeyboardEngine reads textBefore, the field's text with curly quotes made straight one for one (SmartPunctuation.plain), so tokens, revisions, reverts and swipes keep matching what they typed. - dropsSuggestionSpace: , . ! ? ; : ) right after a picked suggestion delete its space. - AutocorrectEngine.midSentenceMarks gains ' (what ’ reads as now). Verified on the Studio (iPhone 17, iOS 27.2 simulator): AutocorrectEngineTests, FullKeyboardEngineTests, TypingLogTests and EmojiSuggesterTests pass, with new testSmartQuotesAndDashesFollowTheFieldAsOnApplesKeyboard, testSmartQuotesFollowTheKeysLanguage and testMarksGoAgainstAPickedSuggestion. Live in the simulator's HEXKeyboard (Release, App Group) in a UITextView host: 'hi' it's "yes" well--known dont typed ‘hi’ it’s “yes” well—known don’t, straight quotes with smartQuotesType .no, well--known with smartDashesType .no, and the strip showed I’m. * iOS: the space-bar trackpad moves up and down lines, as the system keyboard's does X tester Brandon McConnell: "holding down on the space bar only allows scrubbing horizontally, whereas Apple's keyboard treats it like a cursor on both x/y axes". Apple's (black box, iOS 27.2 simulator, iPhone 17, a UITextView with 17 pt text and 20.3 pt lines, the caret read back from the host): after the hold, the caret moved a line every 15 to 16 pt of finger travel up or down, the first after about 8 (crossings at 9, 24, 39, 54, 72 and 87 pt both ways), kept its x, and stayed on the first or last line past them; in a wrapped paragraph it moved by a wrapped line (about 43 characters in a 360 pt line). Along a line it moved about a character per 6 pt and stopped at the line's ends. A keyboard can only move the cursor by characters (adjustTextPosition), so TrackpadCursor works out the line before or after from the text the field shares around the cursor: lines split at new lines and every lineLength characters (the keyboard's width less 40 pt, at 8.2 pt a character, as the field's width and font can't be read), at the same column, kept across short lines until a move along the line. Vertical steps are trackpadPointsPerLine (15.5 pt), the first half as far; past the first or last line the cursor stays and coming back moves it at once. Horizontal movement is unchanged (7.5 pt a character, crossing line ends as before). The host's context lags the moves: in the simulator a second line up read the text from before the first, and after a move the host shared only the cursor's own line. So each gesture keeps a copy of the text (TrackpadCursor.State) and adds the host's context once it has caught up (it reads the same either side of the cursor). Lines the host never shares stay out of reach. KeyboardTextTarget gains documentContextAfterInput. Not done: Apple's tap with a second finger while holding space starts a selection. The iOS 27.2 SDK's UITextDocumentProxy has documentContextBeforeInput/AfterInput, selectedText (read-only), documentInputMode, documentIdentifier, adjustTextPosition(byCharacterOffset:), setMarkedText(_:selectedRange:) and unmarkText, and UIInputViewController nothing more: no public API makes or extends a selection, and marked text would type provisional text into the field, so Hex doesn't fake it. TrackpadCursor is surface-independent so the dictation bar's trackpad (#2180) can use it too; it isn't wired there here. Verified on the Studio (iPhone 17, iOS 27.2 simulator): FullKeyboardEngineTests (new testTheSpaceBarTrackpadMovesUpAndDownLines), AutocorrectEngineTests and EmojiSuggesterTests pass. Live in the simulator's HEXKeyboard (Release) in a UITextView with four lines: from the end, holding space and sliding up moved the cursor 88 -> 64 -> 41 -> 20 (each line up, same column), further up kept it on the first line, and sliding back down returned it 41 -> 64 -> 88; nothing was typed. * iOS: key clicks: the keyboard's input view adopts UIInputViewAudioFeedback TestFlight: "Cannot hear the iOS typing sound when using your keyboard. Need the clicky sound for my dopamine pls." Hex already called UIDevice.playInputClick() on every key's touch-down, but the UIInputViewAudioFeedback conformance sat on FullKeyboardView, a subview; UIKit plays the click only for the input view itself. In the iOS 27.2 simulator's keyboard log, typing "abc" and a delete reached AudioServices' system sound 1104 0 times with the old view and 4 times (one per press) with the new one. - KeyboardInputView (HEXKeyboard): a UIInputView adopting UIInputViewAudioFeedback, with enableInputClicksWhenVisible true. KeyboardViewController.loadView keeps UIKit's own input view's style, size and sizing flags but makes it this class; nothing else in the controller's lifecycle changes. - Removed: FullKeyboardView's UIInputViewAudioFeedback conformance, which did nothing. keyFeedback plays the click first, through a playInputClick seam tests count. - The dictation bar's key feedback clicks too. - One click for every key (delete, shift, 123 and return included, and each delete repeat): Apple's keyboard plays other sounds for delete and the modifier keys, but the click is the only keyboard sound the API offers a keyboard. - No setting: the click follows Settings › Sounds & Haptics › Keyboard Feedback › Sound (in the simulator, keyboard-audio NO in com.apple.preferences.sounds made it play none). Apple's custom keyboard guide lists playing keyboard clicks among the things that need open access; the simulator played it with the keyboard's Full Access rows removed too, so Hex calls it either way and iOS decides. Verified on the Studio (iPhone 17, iOS 27.2 simulator): FullKeyboardEngineTests (new testEveryKeyClicksOnTouchDown) and HexKeyGestureTests pass; the Release HEXKeyboard launched, laid out and typed as before in a UITextView host, with the click counts above. A real iPhone must confirm the sound itself, with Full Access on and off.
…2197) * iOS: Parakeet's preparation, compile record and load guard take a model name A second Parakeet model (Parakeet Ultra, next commit) needs its own load guard and compile record, and its own words while it downloads, without changing V2's. - ParakeetLoadGuard(model:) and ParakeetCompileRecord(key:) name their UserDefaults keys; the defaults ("parakeet.loadStartedAt", "parakeet.loadInterrupted", "parakeet.compiledForSystem") are V2's keys as before, so V2's state carries over. - ParakeetLoadGuard.forget() clears an interrupted load, for a person who asks to try again. - ParakeetPreparationProgress takes the download's detail, defaulting to V2's "Downloading the speech model". - ParakeetProgressFeed is no longer private to ParakeetTranscriber.swift. Nothing V2 does changes: same keys, same words, same progress. Verified: xcodebuild test on an iPhone 17 Pro Max iOS 26.4 simulator (Mac Studio), 575 tests, 0 failures, 1 skipped, with the next commit applied. * iOS: Experiments › Multilingual model (Parakeet) dictates 25 languages, mixed in a sentence A TestFlight tester (iPhone 17 Pro Max, iOS 26.6.2, build 56) asked for Parakeet Ultra: they mix Dutch phrases and English words in one sentence, which Apple Speech, one locale at a time, gets wrong, and Ultra on desktop Hex gets right. The experiment is off by default. While it's on, Hex dictates Parakeet Ultra's 25 languages (Moondream's post-training of NVIDIA Parakeet TDT 0.6B v3, CC BY 4.0) with FluidInference's Core ML build of it; other languages keep the engine Hex picks without it. - MultilingualParakeetSettings (HEXShared, App Group): the switch, Ultra's languages, and the rule both processes use: the language set, else the keyboard's language Automatic follows, else the iPhone's first, on iPhones with 6 GB or more. - ParakeetUltraModel: the 18 files FluidAudio's v3 path reads, pinned to revision 95eaa59 with sizes and SHA-256 (632 MB), downloaded into Application Support (out of backups) with Range resume from a .partial and a digest check before each file gets its name, hashed in 4 MB chunks drained one at a time (without that the encoder's 594 MB stayed in memory during the check). FluidAudio 0.15.5 has no .ultra (0.17.7 added it) and its loader replaces a folder it can't load with v3's download, so Hex loads the four models itself and hands FluidAudio v3 AsrModels. The pin stays at 0.15.5, so V2 and everything else run the same FluidAudio as before. - ParakeetUltraTranscriber: download through StallWatch (90 s, as V2), stopped if the switch goes off mid-way; load and transcribe as V2. Chosen only with 1.5 GB left (os_proc_available_memory), as #2190 does for V2, and set aside after a load that ended Hex or found too little memory (its own ParakeetLoadGuard keys) until the switch is turned off and on; then home says Hex uses its usual model. - Engine choice: DictationController.defaultTranscriber and prepareAtLaunch ask for Ultra first; with the switch off they only delete a download it left. multilingualParakeetChanged prepares the new engine now, or after the dictation in flight. Download failures count as interruptions, retried once back in the foreground. - Keyboard: the model can't load in a keyboard, so while Ultra takes the dictation language, Dictate and the Hex key open Hex, as before iOS 26 (KeyboardViewController), and KeyboardSpeechPreparation follows the app instead of downloading Apple's model. A warm session still dictates without leaving the app. - Settings › Experiments › "Multilingual model (Parakeet)": "25 languages, even mixed in a sentence. 632.2 MB download. Keyboard dictation opens Hex.", disabled with "Needs an iPhone with 6 GB of memory or more" below that. On downloads it; off deletes it. The preparation bar (#2171) says "Downloading 632.2 MB · Wi-Fi recommended". zh-Hans for every new string. - Acknowledgements and ios/README.md credit Parakeet Ultra, NVIDIA Parakeet TDT 0.6B v3 and FluidInference's conversion (CC BY 4.0). - Onboarding's language line checks for "Parakeet V2" by name, not any "Parakeet", so Ultra isn't taken for English. Measured on the Mac Studio (~/dev/experiments/2026-11-21-hex-multilingual-parakeet, 159 macOS say clips: Dutch-English sentences spoken by Xander and Ellen and spliced with Samantha, pure Dutch, pure English): word error rate on the mixed sentences 7.5% for Ultra against 26.9% for Apple Speech nl-NL (DictationTranscriber) and ~80% for Apple Speech en-US and Parakeet V2; pure Dutch 0.9% (Apple nl-NL 0.4%), pure English 0% (Apple en-US 0%). Core ML on the Mac: compile 7.4 s (V2 11.4 s), same speed as V2. Verified: xcodebuild test on an iPhone 17 Pro Max iOS 26.4 simulator, 575 tests, 0 failures, 1 skipped, with new cases in DictationControllerTests (off by default, language and memory rules, separate guard, download words, pinned files, re-prepare on toggle). In that simulator a fresh install with the switch on downloaded, checked and loaded Ultra in under 10 s and became ready, and the app's ParakeetUltraTranscriber transcribed the test clips (a throwaway case, not committed). The simulator has no microphone here and runs Core ML on the CPU: a real iPhone must confirm load memory, Neural Engine compile time, speed, the keyboard opening Hex, and dictation of real speech. * iOS: Acknowledgements credit Parakeet V2 Hex downloads NVIDIA Parakeet TDT 0.6B v2 (FluidInference's Core ML conversion) to dictate English, and its licence, CC BY 4.0, asks for credit, but Settings › Acknowledgements and the README named only the data Hex ships and, since the previous commit, Parakeet Ultra. - AcknowledgementsView and ios/README.md's Acknowledgements credit NVIDIA's model and FluidInference's conversion, both CC BY 4.0, with links, and say the conversion stores the encoder at reduced precision and Hex uses it unchanged. FluidAudio stays at 0.15.5. Verified: generic build (CODE_SIGNING_ALLOWED=NO) and xcodebuild test on an iPhone 17 Pro Max simulator on the Mac Studio, all tests passing.
TestFlight build 56: "every time that I say a punctuation mark, it just
includes it as text."
Black box first (macOS 27.2.1, say voices Samantha, Paulina, Thomas,
Anna, Alice, Luciana):
- DictationTranscriber already writes every mark (":", ";", "–", quotes,
"(…)", "…", "#", ":-)", apostrophes) in all six languages, so its text
has no names left. It also has false positives of its own ("He has a?
Tattoo", "La coma es opcional" -> "Hola, es opcional").
- SpeechTranscriber writes only "comma", "question mark" and some
French/German/Italian names (virgule, point, Komma, Fragezeichen,
virgola, due punti); "exclamation point", "colon", "semicolon",
"dash", quotes and brackets stay words, often between commas ("I came
semicolon, I saw", "open Paren after lunch close, Paren").
- Parakeet (desktop Hex's unified English model) writes every name as
words with its own marks around them ("noon, comma, see you soon,
period", "tonight question mark?", "well-hyphen known").
- Apple's iPhone dictation commands (support.apple.com, per language):
period, comma, exclamation point, question mark, colon, semicolon,
quote/end quote, open/close parenthesis, dollar sign, hashtag.
Change:
- SpokenPunctuation, a string-rule step inside Polished, Casual and
Notes, after Format lists (so "dash … dash …" stays a list and "comma,
new line" keeps its comma) and before the style's own punctuation;
Verbatim keeps the words. English, Spanish, French, German, Italian
and Portuguese with each language's command words (coma, punto, signo
de interrogación, abrir comillas, punto y aparte; virgule, point
d'interrogation, ouvrez les guillemets; Komma, Fragezeichen,
Anführungszeichen unten/oben, Klammer auf/zu; virgola, punto
interrogativo, apri virgolette; vírgula, ponto final, abre aspas).
Marks attach to the word before, dashes are spaced, hyphen/apostrophe/
arroba join, hashtag and dollar sign prefix, quotes are “ ” / « » / „ “,
closers close only an open quote or bracket, a word after . ? ! is
capitalized, and a mark the model already wrote beside a name is
replaced, never doubled. French spacing still runs last.
- Guards: no conversion after an article, possessive, preposition,
number or noun-making word ("a period of time", "the comma is",
"Oxford comma", "trial period", "ein wichtiger Punkt"), before a word
that continues the noun ("question mark tattoo", "colon cancer",
"punto de vista"), in a compound ("comma-separated"), or between
numbers ("two comma five"). Everyday-noun names (period, point/Punkt/
punto/ponto, question mark, dash, smiley) also need the line end, a
mark after, or a clause start after; colons need words after them.
English "at sign" is left to SpokenCleanupRules.spokenSymbols.
- Settings › Dictation › Spoken punctuation (DictationPunctuationSettings,
App Group key settings.dictationSpokenPunctuation), on by default: the
141 prose sentences stay unchanged. Read at capture start in the app
and by in-keyboard dictation. zh-Hans strings added.
- Polished: a line ending in "," or ";" ("Hi Sarah," before a line
break) no longer gets a period added, and the space before an
emoticon (":-)") is kept.
Verified: xcodebuild test on an iOS 27.2 simulator (Mac Studio), 582
tests, 0 failures, 1 skipped (pre-existing). New SpokenPunctuationTests
in TranscriptCleanupTests: the models' real transcripts per language,
DictationTranscriber text unchanged, 84 English and 57 other-language
prose sentences unchanged, quote/bracket pairing, every style, the
pipeline switch, Lowercase, lists interplay and the setting's default.
…eep a picked variant when the keyboard switches (#2193) * iOS: the pre-iOS-26 on-device pick keeps a Spanish region's own model, then Latin America's * iOS: every Spanish candidate keeps its region, and the README names es-CL
…s does too (#2200) Testers said many apps give Hex no Enter/Send key. The full keyboard always had a Return key, but some of its types didn't match Apple's. The dictation bar's Return was always a plain ↵, even in send, go and search fields, and it ignored enablesReturnKeyAutomatically. So in those fields the bar never looked like it could send. What changed - New ReturnKeyStyle (HEXShared/FullKeyboard/ReturnKeyStyle.swift): the symbol, the blue action style and the accessibility label for each UIReturnKeyType, as observed on Apple's iOS 27.2 keyboard (black box: simulator screenshots and axe describe-ui in a throwaway host app, one field per type). send ↑, go/join/route →, search/google/yahoo magnifier, done ✓ and emergency call (phone) are blue; return ↵, next and continue › are plain keys. - Full keyboard: uses ReturnKeyStyle. Fixes: next showed ↵ (now ›), continue was a blue → (now a plain ›), and emergency call drew the text "SOS" (now a blue phone symbol, like Apple's). The unused text-label path (returnLabel) is removed. - Off return key (enablesReturnKeyAutomatically and an empty field) now looks like Apple's: the glyph at 10% of the label colour, on a grey key (191,192,197; white 0.39 on dark) for the acting types, instead of the darker muted grey. - Dictation bar: its Return key uses the same style (blue send/go/search, disabled while the host asks and the field is empty) and still inserts "\n". Its accessibility label comes from ReturnKeyStyle; "SOS" becomes "Emergency call". - New zh-Hans strings: Return, Send, Go, Join, Route, Search, Next, Emergency call (Done and Continue already existed). Why some apps had no Enter/send: on the full keyboard, Return is present for every text keyboard type. Number pads hand off to Apple's keypad, which has no Return either. Apps such as Messages use the default return type and send from their own button, and Apple's keyboard also shows ↵ there. The gap was the dictation bar's Return, which was always a grey ↵. Verified (Mac Studio, iPhone 17 Pro sim, iOS 27.2) - Apple vs Hex screenshots for every UIReturnKeyType, light and dark, plus empty fields with enablesReturnKeyAutomatically: the full keyboard matches. - Dictation bar, live in a host app: send, go, search, next and emergency call styles shown. Send is grey and ignores taps in an empty field, turns blue after "," is typed, turns grey again after delete, and a tap reaches the host (textFieldShouldReturn counted once). - Generic iOS build (CODE_SIGNING_ALLOWED=NO) succeeded; xcodebuild test: 581 tests, 0 failures, 1 skipped.
Measured beside Apple's keyboard in Messages (iPhone 17 Pro, iOS 27.2 simulator): Apple's bar centres its words and dividers 27 pt above row 1's keycaps (25.3 pt below the panel's edge), but Hex centred them in the 27 pt strip iOS leaves under its band, 5.7 pt lower. Its pressed or autocorrect pill is a 38 pt capsule ending 44 pt down; Hex's was 25.7 pt. A probe confirmed iOS clips a third-party keyboard to its view: nothing drawn in the 17 pt band above it, or below it, shows. Keeping Apple's keyboard height (Ryan's call), the words and dividers now centre 27 pt above the keys (KeyboardMetrics.stripTextCenter; dividers keep Apple's bottom end and lose the 4 pt in the band), and the pill fills the whole strip, 27 pt, ending where Apple's does. Landscape and the Duo are unchanged. Verified: text 19.3-32 pt below the panel vs Apple's 19-31.7, divider bottoms and pill bottoms equal to Apple's (screenshots and numbers at hex-kb.i.vogel.dev); KeyboardLayoutTests and FullKeyboardEngineTests pass (156 tests, 0 failures).
#2201 moved the strip's words up onto Apple's line, 8 pt below iOS's band, but the Hex mark stayed centred in the 27 pt strip, about 5 pt below them. It now centres on the same line (KeyboardMetrics.stripTextCenter), 16 pt tall so it clears the band; the Duo and landscape, where the line is the strip's middle, keep the 19 pt mark. Verified in the iOS 27.2 simulator (iPhone 17 Pro, Messages): the mark spans 17.3-32.3 pt below the panel's edge, centred on the words (19-31 pt).
…n-keyboard dictation (#2499)
#2478 added three keyboard strings without Simplified Chinese, so a Chinese iPhone showed them in English: - "Starting…": the dictation bar's status while the microphone opens; - "Starting microphone": the VoiceOver label of the spinner in Done's spot; - "Transcribing": the recording panel's ✓ label while it transcribes. They're now in ios/HEXMobile/Localizable.xcstrings, worded like the catalog's other dictation states: "Listening…" 正在聆听…, "Transcribing…" 正在转录…, and "Hex couldn't start the microphone." Hex 无法启动麦克风. - "Starting…" 正在启动… - "Starting microphone" 正在启动麦克风 - "Transcribing" 正在转录 The VoiceOver labels take no ellipsis, as their English doesn't. The keyboard target already builds this catalog (project.yml lists HEXMobile/Localizable.xcstrings under HEXKeyboard's sources), so nothing else changes. Verified: - In a Release simulator build, the keyboard's zh-Hans.lproj/Localizable.strings resolves all three (before: missing). - On an iPhone SE (3rd generation) iOS 27.2 simulator in Simplified Chinese, a dictation bar start shows 正在启动… beside the Hex mark, with room to spare before the language and style menus. - HEXMobile suite on an iPhone 17 Pro iOS 27.2 simulator (Mac Studio): 973 tests, 0 failures. - python3 scripts/code-shape.py --check passes. Not verified: VoiceOver reading the two labels (axe can't read the keyboard's accessibility tree).
…ing and capture capsules (#2500)
…te-Last filter, switcher retry, and warm ring cap (#2501)
…, and audio copy gate (#2506)
* free imported model definitions after rename and removal * silence test-only lints on linux The new state-machine tests keep macOS-only helpers and imports; clippy on Linux denies them as unused, and one test cloned a selection only to compare it. * borrow the model definition on macOS-only paths Meeting audio import and Parakeet's macOS load path still passed the ModelRef by value to model_path, is_installed, and validate_gguf_artifact. * address review nits on the imported model definitions Track every rename build with its own Weak, restore the moved doc comments verbatim, name the new registry tests in the feature map, and use is_gguf for the plain runtime checks.
… clipboard restore guard (#2505) * refactor(dictation,paste): share finished-dictation output policy and clipboard restore guard * fix(linux): separate insert and last_dictation lifetimes in LinuxOutputAdapter
* chore(rune): bump Rune pin to 9d4b4636 * fix(history): keep focus in detail card on delete confirmation and refresh Linux goldens
…n't installed (#2511) #2491 (unify dictation routing) put needsModel ahead of every other route: with Full Access on and Hex's model not marked installed (model.installed), Dictate, the Hex key, hold-to-talk, selection Dictate, auto-start and touch-down arming all opened Hex instead of dictating in the keyboard. Its description doesn't list this as a behaviour change, and 1.0.4 never read model.installed to route: in-keyboard dictation uses the keyboard's own speech model (keyboard.md: "in a warm session, else inside the keyboard, else by opening Hex"). Hex writes model.installed false at every launch until its engine is ready (unless Parakeet V2 is on the phone), and it stays false through a first download, Continue without a model, or a failed or interrupted preparation, so those people lost in-place dictation. Each open also counts as the keyboard opening Hex, which puts Keep mic warm back to 15 minutes. - DictationRoute.resolve: with Hex's model not installed, the keyboard dictates by itself where it can (.inKeyboard), else .needsModel as before. #2491's one gain here stays: a warm keepalive with no model still opens Hex rather than sending a start Hex ignores. The bar's trigger now reads Dictate rather than Set up while it dictates in the keyboard. - DictationSSOTTests.testDictationRoutePrecedenceTable says so. - ios/docs/keyboard.md says so. Verified: - iPhone 17 Pro iOS 27.2 simulator, Release builds, model.installed false: f1c1274 (before #2491) dictated in the keyboard from the Hex key and the bar's Dictate; dev (ca7cf2a) opened Hex from both; this change dictates in the keyboard from both. With the keyboard's own model missing as well (keyboardNeedsHex) all three open Hex. With model.installed true all three dictate in the keyboard. - HEXMobile suite on an iPhone 17 Pro iOS 27.2 simulator (Mac Studio): 973 tests, 0 failures. - python3 scripts/code-shape.py --check passes.
…ing speech (#2338) (#2514) With Lower audio, Mute, or Pause media, a hotkey capture keeps no pre-roll and asks for output suppression only once it passes the 300 ms hold; Lower audio then ramps over 120 ms on its own thread. Audio still coming from the speakers in that window was counted as speech the stream missed, so nearly every dictation with something playing fell back to the whole clip. The recording environment now reports the moment suppression actually changed the output, and only when it did: Lower audio sends when the ramp first writes its full target, from the ramp's own thread, so a late Bluetooth readback no longer delays it; Mute when the write lands over a non-zero volume; Pause media the latest of the player pause command being issued and the browser pause being sent, without the browser's confirmation windows. The report is asynchronous, so stopping or another session is never held up behind a ramp. Nothing is reported when the effect changed nothing, was skipped on headphones under Labs › Only on speakers, or was stopped before the target was written. The audio owner maps the reported moment onto the recorded timeline and adds a 40 ms speaker-to-microphone margin; up to one resampler input buffer may still be unprocessed, so the position can sit slightly early, which only ever ignores less speech. The live stream's head is raised with Command::IgnoreHead, applied before it finalizes if it arrives before Finish; one after the finish is ignored. Checks: a_reported_effect_raises_the_head_from_the_recorded_timeline, media_speech_before_output_suppression_took_effect_is_not_a_lost_opening, speech_after_the_raised_head_is_still_a_lost_opening, a_head_raised_before_the_finish_keeps_the_stream, a_head_raised_after_the_finish_cannot_save_the_stream, a_guard_reports_when_the_target_is_written_not_when_the_readback_settles, a_guard_that_changes_nothing_reports_no_moment, and muting_an_already_silent_output_changes_nothing. Linux and Windows keep their current head (ROADMAP). Not measured on a microphone or a device.
* history: optional stats strip above History behind a Labs toggle * history: fit the stats strip in narrow translated windows
`CapturePhase::promote_pending` runs for every audio chunk, but it moved the phase out with `std::mem::replace(self, Self::Idle)` before checking it was `Pending`. A warm-microphone press begins as `Recording`, so the first chunk after the press dropped the active capture: the HUD stopped metering, and the release matched no arm, so nothing finished, submitted, or closed the HUD (#2519). `rearm_recording` had the same shape. Both now restore a non-matching variant untouched, like `take_recording`. Regression tests cover a recording surviving the per-chunk promotion and Pending/Finishing surviving rearm and promote. Regression from #2494.
…2531) * Android: Hex Preview, an APK outside Google Play that updates itself Adds a preview build type: the release build (R8, resource shrinking, arm64-v8a, Android 12+) as ly.anoma.hex.preview, named Hex Preview in the launcher and the keyboard list, signed with its own key from ~/.config/hex-android-preview (or HEX_ANDROID_PREVIEW_KEYSTORE_PROPERTIES), never the Play upload key. Its version code is -PhexPreviewBuild (the release script passes dev's commit count) and its name <versionName>-preview.<build>; -PhexPreviewChannel bakes the channel address. The updater lives only in app/src/preview: it reads latest.json from the channel when the app opens and at most once a day when the keyboard opens (never in a password field), shows a card on Home and one dismissible line in the strip, downloads only after Update (size first on mobile data), checks size, SHA-256 and the signing certificate, then installs through PackageInstaller with REQUEST_INSTALL_PACKAGES and UPDATE_PACKAGES_WITHOUT_USER_ACTION. Settings gets Check for updates automatically and Check now; the preview's privacy text says what the check sends. Strings in English and Simplified Chinese. Play builds (debug, release) compile app/src/play's empty Updates, inlined away. Main code gains only the hooks: StripNotice and the strip's notice row, Updates.appOpened in MainActivity.onResume, Updates.keyboardShown in onStartInputView, the two cards on Home, and HexSettings' Label/Card/Rule/Entry/ Toggle/Action made internal for the preview's cards. Verified on anomastudio: testDebugUnitTest and assemblePreview pass; the release bundle requests only RECORD_AUDIO and INTERNET, has no receiver, no PackageInstaller reference, no updater string or resource and no ly.anoma.hex.updates class in its R8 mapping; the preview APK is signed with the preview certificate. Hex 0.2.2 (upload-signed) and Hex Preview install side by side on the API 36 and API 31 emulators with separate keyboards and settings. * Android: preview-release.sh publishes Hex Preview builds; README section android/scripts/preview-release.sh builds the preview APK on the builder Mac (anomastudio by default) from one commit, numbered by git rev-list --count, checks its signing certificate and version before anything is published, creates a pre-release (never latest) tagged android-preview-<build> at that commit with the APK and its SHA-256, confirms the asset serves those bytes, then fast-forwards the channel branch (android-preview) to a commit holding only latest.json and the README people land on. It refuses a commit not on dev for the real channel, an existing tag, or a build not newer than the channel's. --repo and --channel point it at a test channel (a fork). android/README.md gains a Hex Preview section: the build type, the key and its certificate SHA-256, where the updater lives and how builds are numbered. Verified: bash -n; the end-to-end run against a fork follows in this PR. * preview-release.sh: Java for apksigner on the builder; no shell backticks in the release body apksigner needs a JDK on the builder's PATH, which ferry's login shell lacks; the build and the signature check now share one JAVA_HOME/PATH prefix. The release body was written by a bash-expanded heredoc, so its backticks ran the SHA-256 as a command and dropped both hashes from the body; Python now adds them. Verified: build 2305 published to the R44VC0RP/hex-preview-test fork (channel android-preview-test) with this script; its latest.json and README rendered as expected, and the 2305 release body was corrected by hand. * Hex Preview: a strip line that fits, and Version 0.2.2, build N in Check now The strip's update line was cut off on a Pixel 8 (A Hex Preview update is availa…); it now reads Hex Preview update available. Check now named the build twice (Version 0.2.2-preview.2305 · build 2305); it now shows the version without the preview suffix, then the build. Verified from emulator screenshots of build 2305 on API 36. * preview-release.sh: build detached on the builder, so a dropped ferry connection can't stop it A publish of build 2308 died when ferry's connection to the loaded Studio broke mid-build (ferry stops the remote process tree when the caller goes away). The build now runs with ferry sh --detach, writes its exit code to build.exit, and the script polls for it (15 s, up to an hour), printing the log's tail on failure. Verified: build 2308 then published to the test channel on the fork. * Hex Preview: say that updating closes the keyboard for a moment On the API 31 emulator, an update installed while the keyboard was open in another app closed that keyboard, and it stayed closed until the field was tapped again (API 36: until another field took focus). Hex Preview stays the selected keyboard throughout. The update card now says so under Update and while installing, in English and Simplified Chinese. Verified: compilePreviewKotlin on anomastudio; the behaviour itself on the API 31 emulator with build 2308. * preview-release.sh: retry the builder steps when ferry's connection drops Under heavy load on the Studio, ferry's pipe to it broke on several steps of a publish (copy, signature check, fetching the APK). Each builder step is safe to repeat, so they now retry up to five times, and the detached build is not started twice if its log already exists. Verified: build 2310 published to the fork's test channel with this script.
…ime (#2534) Two LiveDictationTests cases asserted that a touch held for exactly FullKeyboardEngine.accentHoldDelay (0.36 s) is no tap. The times they pass are added to ProcessInfo.systemUptime (LiveDictationPreviewView.shownAt), so (down + 0.36) - down comes back as 0.36 rounded to that uptime's precision: just above 0.36 in some ranges of uptime and just below it in others. The view compares with "< accentHoldDelay", so on a Mac up between 1.5 and 12 days (2^17 to 2^20 s) the exact hold read as a tap and both cases failed: testATapOnTheWordsFinishesTheDictationAsDoneDoes (lines 607 and 610, twice each) and testOnlyAKeysTapAfterTheWordsHaveComeInCounts (line 654). Changed: both holds are now 0.01 s past the delay, as the neighbouring "lifted just inside a key's hold" case is 0.01 s inside it. Test file only; no product code changes, and nothing a person can do holds a key for exactly 0.36 s to the nanosecond. Why now: the Mac Studio passed 2^17 s of uptime (36.4 h) at about 9:45 am ET on 23 Nov. Until then every suite run was green (973 tests, 0 failures on 23f5300); after it, unmodified dev (ae1cdf7, no iOS commit in between) fails these 5 assertions on every run. Verified: reproduced on the Studio (974 tests, 5 failures, all the lines above); the rounding checked directly at the Studio's uptime ((s + 1 + 0.36) - (s + 1) = 0.35999999998603 at s = 137,795). The full suite with this change is run before merge and recorded in the pull request.
…ding spans (#2533) Two-language dictation (Experiments) reads one recording in two languages and keeps, piece by piece, the more confident reading. TwoLanguageMerger could only change language where both readings end a word within 150 ms. Where the language really changes, the reading that can't follow it hears the speech as a few long garbled words or none, so the two rarely end a word together there. The speech on both sides of the change then fell in one piece, which one language won whole, dropping the other's words. Found while looking into a build 147 report ("switch to my native language and it would remove all my English"); the same merge serves the Mandarin-with-English case a build 121 tester reported. - cutPoints also cuts at any word end of one reading that no word of the other spans by more than the 150 ms tolerance either side, so no word of either reading is cut in half there. Scoring, the switch cost and the seam rules are unchanged. - TwoLanguageMergeTests: a case with an English stretch and a Chinese one that never end a word together (times shaped on Apple's own readings); the existing ten cases are unchanged. - ios/docs/dictation.md: the new cut, and that the switch does nothing for a language Apple reads only with DictationTranscriber (Ukrainian, Czech, Polish, Russian, Hebrew, Dutch), which is unchanged. Verified: - Apple's SpeechTranscriber on macOS 27.2.1, en-US and zh-CN readings of a Samantha-then-Tingting clip (19.5 s of English, then Chinese), merged by this file: dev kept 48-51 of 73 English words in two of three runs in either order (72 in the third); with this change 73 of 73 in all six, and 23 of 23 Chinese characters throughout. Single-language clips merge to the same text as before. - HEXMobile suite on an iPhone 17 Pro iOS 27.2 simulator (Mac Studio): 974 tests, TwoLanguageMergeTests all pass; 5 failures, all in LiveDictationTests (testATapOnTheWordsFinishesTheDictationAsDoneDoes, testOnlyAKeysTapAfterTheWordsHaveComeInCounts), which fail the same way on unmodified dev ae1cdf7 on that simulator today. - python3 scripts/code-shape.py --check passes. Not verified on an iPhone.
* preview-release.sh: --dry-run, and publish the APK the dry run checked --dry-run does everything before publishing: the tag and channel checks, the build on the builder, the APK's certificate, app id and version, and the latest.json, README.md and release.md it would publish, written to android/build/preview/<build> for review. It then stops; nothing is created on GitHub. It records the commit, channel address and APK SHA-256 in checked.txt, and a later run without --dry-run for the same commit publishes that same APK without building again (latest.json and README.md are written again with the publish date). Verified: bash -n; a dry run of f1d965a (build 2305) for anomalyco/hex's android-preview channel, which created no tag, release or branch. * preview-release.sh: take the badging line on the builder head -1 on this side closed the pipe while ferry was still sending aapt2's output, so ferry failed with Broken pipe, the retry repeated it five times and the script stopped before its checks. The builder now sends one line. Verified: dry run of f1d965a (build 2305) for anomalyco/hex, below. * preview-release.sh: write README.md before the dry run stops The --dry-run change moved the README heredoc's first line ahead of the publish but left its body below, so a dry run stopped on an unbound $ch. The README body is unchanged from dev's script (diffed). Verified: dry run of f1d965a (build 2305) for anomalyco/hex, below.
…nload (#2543) Hex Preview (the Android build outside Google Play, published today as android-preview-2305) had only a GitHub README as its download page: on a phone the link sits under GitHub's own bars. Ryan asked for a served page at anoma.ly/hex/android that mirrors the iPhone one. Added: - /hex/android (src/iphone.ts renderAndroid, written by scripts/iphone.ts with its social card and sitemap entry): the iPhone page's look and structure, with a Download Hex Preview button, the install steps, how updates work, questions, and help. Its labels and numbers are the Android app's own (Get started, Allow from this source, the 190 MB model, Android 12, hold the Hex key, Check for updates automatically). - /hex/download/android (worker.ts): a 302 to the APK that latest.json on the android-preview branch names, so the button follows every new build without a site deploy. It redirects only to this repository's releases/download/android-preview-* files and answers 404 or 502 in plain text otherwise. - Privacy policy, Hex for Android section: one item for Hex Preview's update check and update download (the same statement the app's own privacy text makes), a link to the Android page, and the policy's date. Nothing is removed. The iPhone page is unchanged. Verified: bun test in site/ (15 pass, two new cases in worker.test.ts for the redirect, its refusal of another origin, and the unpublished case); bun run build --mode dev (typecheck, 3 pages written); the built page and card viewed at phone and desktop widths in Chrome, no horizontal overflow. The redirect against the real branch is checked on dev.anoma.ly after the deploy.
…ish (#2544) What changed: Settings › Dictation › Speech model in keyboard now checks the keyboard plan's language hold after the download too. Dictating in another language than English (Hinglish, French...), the row says "Only for English dictation." instead of the keyboard's last word ("Ready in the keyboard"). The row's text moved into a static KeyboardParakeetStatus.line(...) so it can be checked without the App Group. Why: the keyboard writes .ready once Parakeet V2 loads for English and never clears it when the language leaves English, so a Hinglish user read "Ready in the keyboard" while Apple's hi-IN SpeechTranscriber did every dictation (KeyboardParakeetPlan returns .notEnglish, so the keyboard never uses V2). A build-147 iPad tester reported Hinglish "even on parakeet". Nothing else changes: before the download, notEnglish already said "Only for English dictation."; Two-language and the Multilingual model keep their lines. Verified: DictationSSOTTests.testKeyboardParakeetPlanTable covers the row (ready + notEnglish after download, notEnglish before); full HEXMobile suite on the Studio simulator; code-shape.py --check.
…e can be caught (#2547) TestFlight build 147: "the animation in the emoji section is not cancelable. So I have to wait for my swipe animation to happen completely before I can swipe again." iOS hands a keyboard extension only the touches that land on something its layers draw. The emoji panel and the search's results row are clear, so a finger landing between two emoji, in the 3-6 pt between two rows or beside a category icon never reached the keyboard at all (not even its window): a glide went on to its end, a second fling did nothing, and a swipe that started in a gap didn't scroll. Where the finger lands on an emoji it always worked, which is why it felt random. Both views now have an invisible fill (UIColor.keyboardTouchFill, 0.1% black) under their clear look. Removed nothing. docs/keyboard.md says why. Verified on the iOS 27.2 simulator, Studio load average 55-70, with a probe build that switches the fill (probe in a scratch worktree only): - iPhone 17 Pro, 12 flings each caught by a finger mid-glide: without the fill 4 of 12 flings scrolled at all (the rest started in a gap) and 1 of those 4 catches never reached the keyboard; with it 12 of 12 scrolled and 12 of 12 were caught at once (0 pt further), the touch seen 2-16 ms late. - iPhone 15 Pro, the same: 0 of 12 flings scrolled without the fill, 12 of 12 scrolled and were caught with it (seen 3-18 ms late). - A finger in a row gap mid-glide: 0 of 3 reached the keyboard before, 3 of 3 caught after. A slow drag from a gap: did nothing (3 of 3) before, scrolled 210 pt and back (3 of 3) after. Taps at rest in gaps: none seen before, all after. - Apple's emoji keyboard and a bare UICollectionView in an app stop a glide at a touch in the same places. - The panel looks the same: light and dark screenshots differ by at most 2/255 on 38-85 of 1.4 million panel pixels (the glass's rounded edge). - New case in EmojiPanelLettersKeyTests: every point 4 pt apart of the open panel and the results row draws; it fails without the fill (4,649 and 626 points).
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the site's production to today's
dev(c2b70420) so the Android page is live atanoma.ly/hex/android, as #2124 did for/hex/ios. A direct push is refused by the branch rule, so this is the request: a fast-forward ofproductiontodev.Why
Hex Preview for Android (the APK outside Google Play) was published today, and its page (#2543) is live on the dev site: https://dev.anoma.ly/hex/android. Ryan wants it on
anoma.ly.What goes live with it
Everything under
site/sincee90d9b4b(20 Nov), ten commits. Beyond the Android page:dev(feat(labs): make six everyday features available without switches #1922) but are still Labs in 3.4.0:api-browser-access,app-model-switching,picker-active-first,print-start,quit-closes-window,release-notes-link,shell-completions,vocabulary-biasing. The 3.4.0 app doesn't link to them; shared links would answer 404.dictation-style,history-stats-strip,hud-height,learn-from-corrections,signature,voice-isolation.If the Windows line or the Labs pages should wait for the next desktop release, say so and the Android page stays on the dev site until then.
Checked on
c2b70420bun run buildin production mode passes (79 pages), andbun testpasses (15).bun run check:downloadson that build: all 11 download links answer 200.e90d9b4b: the install scripts, the legacy appcast, the deploy scripts andsite/cloudflare.config.ts./hex/androidanswers 200 and/hex/download/androidredirects to the published APK (68,922,576 bytes).