5 Commits
Author SHA1 Message Date
Ryan Vogel 60cea784e5 iOS keyboard: Slovenčina, on Czech's keys with Apple's Slovak long presses (#2462)
Asked for on X ("Looking for Slovak one"). Adds KeyboardLanguage.slovak ("sk",
Slovenčina), an ordinary language as Czech and Hungarian are, matched to
Apple's iPhone Slovak keyboard on iOS 26.5 and 27.2 simulators (iPhone 17 Pro):

- Keys: Apple's Slovak input mode uses Czech's software layouts
  ("Czech-Slovak" default, "QWERTY-Czech-Slovak"; InputMode_sk.plist). The
  capture tool's geometry (four pages, portrait and landscape, both runtimes)
  shows the same rows as Czech: qwertzuiop / asdfghjkl´ / yxcvbnmˇ, English's
  123 and #+= pages, English's held symbols. Slovak shares Czech's rows, layouts
  ("QWERTZ – Slovenčina", "QWERTY – Slovenčina"), key coordinates and pages
  (KeyboardLanguage.typesOnCzechKeys).
- Long presses: Apple's Slovak options (Keyboard-sk.plist; screenshots of every
  key held on 26.5, the capture tool's menus on 27.2): ô first on O, á ä on A,
  ľ ĺ on L, ŕ on R, ď on D, ť on T, and so on; nothing on ´ or ˇ (Czech's ˇ holds
  the ring). Apple's callout leaves the base letter out; Hex keeps it first, as
  in every language.
- ´ and ˇ: real-touch sequences on Apple's Slovak keyboard (every letter then
  each key, capitals, both runtimes identical) match Czech's rules except that
  ˇ after u types itself (no ů); ô and ä are never composed. CzechTyping now
  takes the language.
- Typing: as Czech. The iPhone's sk dictionary behind autocorrect where it is
  listed (Czech's missing-diacritic cost, "dakujem" -> "ďakujem"), else nothing
  changed or suggested; never Czech's dictionary. The iOS 26.5 and 27.2
  simulators list no sk dictionary (and their cs_CZ, hu_HU, pl_PL accept
  "qzxjvkq"). No typing model.
- Dictation: DictationTranscriber lists sk-SK on both simulators
  (SpeechTranscriber is unavailable there), so Automatic dictates sk-SK and the
  keys follow it. Replaced: a Slovak dictation language used to type English
  QWERTY (testTheLayoutFollowsTheDictationLanguage asserted that; now Slovak).

Verified: focused tests on the Studio (KeyboardLayoutTests, the new
testSlovakTypesOnCzechKeys and testSlovakFollowsCzechAndGuessesNothingWithout-
ADictionary, Czech's tests); Hex installed as a real keyboard captured beside
Apple's on both runtimes; full suite in the PR description.
2026-11-24 18:21:24 -05:00
Ryan Vogel d277ffcf03 iOS keyboard: Svenska, Apple's Swedish keys and long presses, the iPhone's sv dictionary (#2558)
Two TestFlight testers asked for a Swedish keyboard (builds 98 and 147). Hex had Norsk and no
Svenska, so a Swedish iPhone typed on English QWERTY with English autocorrect ("läsa" became
"Lisa", "över" "over"). Svenska is an ordinary language, as Slovak (#2462) and Turkish (#2496)
are built:
- Keys: Apple's one Swedish software layout, "QWERTY-Swedish-Finnish" (InputMode_sv): Norwegian's
  rows with ö ä for ø æ, named "QWERTY – Svenska". Read from Apple's keyboard with the capture
  tool: every letter key within 1 pt of Apple's on the iPhone 17 Pro and SE, iOS 27.2, portrait
  and landscape; 123 and #+= pages as English's.
- Holds: Apple's Swedish options with every key held on 27.2 (Ø on Ö, Æ on Ä, nothing on Å, no
  å ä ö on A or O), in Apple's arrangement (AccentCatalog.swedishOrder); $ holds kr second.
- Quotes: ” and ’ to open and to close (SmartQuotes.swedish), as Apple's Swedish keyboard types
  them on 26.5 and 27.2.
- Typing: the simulators' sv_SE dictionary is a real one (rejects "qzxjvkq", fixes "tacck",
  guesses "köttbullar" for "kottbullar"), so Swedish uses it, as Hungarian does; without an sv
  dictionary nothing is changed or suggested. Short Swedish word lists for the strip replace
  Norwegian's in place (AutocorrectEngine.swift stays at 1,498 lines). No typing model.
- Dictation: Automatic follows sv-SE (DictationTranscriber lists it; SpeechTranscriber doesn't).

Verified: new cases in existing test files (KeyboardLayoutTests, FullKeyboardEngineTests+Layouts,
+Punctuation, AutocorrectEngineTests); the typing gate (en es de fr pl, deterministic hashing)
byte-identical to dev 2b5f2ae8 and to a second dev run; code-shape.py --check no hard problems;
xcodebuild test on the Studio on this head (see the pull request).
2026-11-24 18:20:36 -05:00
Ryan Vogel a1d7b7ef50 iOS keyboard: Dutch (Nederlands) as a keyboard language (#2742)
What: Nederlands joins Settings › Keyboard › Languages (KeyboardLanguage.dutch,
"nl"). It types on the English QWERTY letters, as Apple's Dutch keyboard does,
with AZERTY and QWERTZ offered; holds Apple's Dutch accents (á ä, é ë, í ï, ó ö,
ú ü first on the vowels, ç, ñ, and j́ on J for a stressed íj́; Apple offers no ij,
so neither does Hex); the #+= page's € holds € $ £ ¥ ₩ ₽ as Polish's does; uses
the iPhone's nl dictionary (nl, nl_NL, nl_BE) for autocorrect and suggestions;
reports nl-NL as its input mode; pairs with English (or another Latin-script
language) through bilingual autocorrect; and Switch dictation too dictates
nl-NL (or the iPhone's own nl region). nl and nl-BE identifiers now map to it, so
Automatic on a Dutch iPhone types Dutch instead of English.

Why: asked for three times (Ryan's tag on X, a TestFlight tester who wants three
languages at once, a third person). Apple's layouts, holds and currency come
from the iOS 26.5 and 27.2 simulator runtimes' TextInput_nl.bundle
(Keyboard-nl.plist, InputMode_nl.plist), read the way Polish's observed holds
match its own plist.

Not in this change: a Hex typing model for Dutch, so no spatial autocorrect or
swipe typing in Dutch; IJ capitalisation at a sentence start.

AutocorrectEngine.swift's sentence starter comment is reflowed to one line to
stay under the 1,500-line cap.

Verified: build-for-testing for iOS Simulator on basebook succeeded;
scripts/code-shape.py --check passes. The tests (KeyboardLayoutTests,
FullKeyboardEngineTests testDutchTypesAndSwitches, AutocorrectEngineTests
testDutchRestoresAMissingDiaeresis) have not run yet.
2026-11-24 17:28:03 -05:00
Ryan Vogel d7b690661e iOS Settings: Home refreshes again while it shows, Into field falls back to the words over the keys, the speech model card lands on its row, docs match (#2471)
Four regressions from the Settings rework (#2450), nothing renamed or reordered:

1. Home and its setup sheet read the setup state once a second again while
   they show and Hex is active (.task(id:) on the navigation stack, stopping
   on any Settings page or in the background), as well as on foreground and
   the keyboard's Full Access report. #2450 dropped the 1 Hz loop, so a
   change made with Hex still in front never showed: the keyboard's Allow
   Paste flag (Hex's own field) and a keyboard added from Settings beside Hex
   in Split View. Timed on an iPhone 17 Pro simulator (iOS 27.2), Hex in
   front: at 0304eb1c neither showed in 8 s; now 1.2 s and 1.4 s (147: 1.1 s
   and 1.0 s); the setup sheet 1.8 s; the Keyboard page, by design, not.

2. Live words, Into field: where Type as I speak can't type this dictation
   (Translate what I say on, or a field LiveFieldTyping never types in:
   secure, password, one-time code or card number fields, a selection, a
   two-thumb Dictate's range, an app that reports no text), the words now
   show over the keys instead of nowhere, as build 147's two switches did.
   LiveDictationSettings.liveWords maps the two stored keys to what one
   dictation does; nothing stored changes. LiveFieldTyping.types(in:) is the
   field check its init already made; KeyboardLiveTyping.takesTyping adds
   the two-thumb case, read through LiveDictationText.fieldTakesTyping.

3. Home's "New: Hex's own speech model" card opens Settings › Dictation at
   Speech model in keyboard (SettingsPageScaffold.startsAt, a
   ScrollViewReader): the row's title lands at y 571 instead of 812 of
   874 pt. Opening Dictation from Home's list still starts at the top.

4. ios/docs/settings-and-home.md, dictation.md, verification.md and
   ios/README.md describe Settings as it is: Live words and its three
   choices, the three Keyboard cards, the four Experiments groups (21
   switches, 20 off a foldable), iOS Settings ↗, HEXMobile/Settings/.

Verified: testIntoFieldShowsTheWordsOverTheKeysWhereItCantType in
LiveDictationTests (DictationLearningTests.swift); the timed Home runs and
landing positions above on the simulator; full suite and code-shape --check
in the PR.
2026-11-22 23:00:12 -05:00
Kit Langton a8fc43367b Split ios/README.md into area docs under ios/docs/ (#2447)
Move every capability section verbatim into the doc that owns it:
onboarding-and-setup, keyboard, dictation, settings-and-home,
build-and-test, verification, acknowledgements and releasing.
ios/README.md now keeps the status summary, an area-doc index, a short
layout table and the build/test commands.
2026-11-22 18:16:37 -08:00