Legal Keystrokes
One way to type uppercase “A” on QWERTY is to hold Right Shift while pressing the letter. The letter press matches the text. The decoder must also find the layer actions and state that make the press legal.
Layers and Steps
Section titled “Layers and Steps”Types A
The search starts from a chosen press and works back through the activations needed to reach it. For uppercase “A”, acquiring Right Shift and then pressing the letter can be one step: the press uses the layer just acquired. The search only admits such acquisitions when the step has a press that needs them. The release is a separate event, licensed here by the letter that used Shift. If another uppercase letter follows, a route can keep Shift held into the next step. A release can also be licensed by the need to free a finger for an upcoming press. The search keeps the alternatives that satisfy those rules; the cost model later determines whether a longer hold is worthwhile.
A step records one move through the physical typing rules. It can carry several events, such as a layer acquisition and the press it enables. It records the output progress, successor decoder state, and ordered events needed for later pricing. When the same decoder state and text context recur, the decoder reuses the list of possible steps. Acquiring, pressing, and releasing are separate events; a key already held remains part of the event’s context.
A Sustained Shift
Section titled “A Sustained Shift”On the QWERTY fingermap, the right hand types both letters of “UI”. The same Left Shift hold serves both presses, so the second step can use the active layer it inherits.
Types UI
Simultaneous Chords
Section titled “Simultaneous Chords”On Semo-e (세모이),
The Playground supplies the compiled Semo-e chord as a whole event. Keymaxx also accepts grouped chord inputs directly. If the onset, vowel, and final consonant arrive as separate lists, it can test each group in order. For “강”, discarding the wrong onset also discards its vowel and final combinations. The surviving combinations keep their raw output and physical keys.
The partial match belongs to one observed target sequence. When a grouped output spans several written positions, binding follows the positions in that sequence before offering the chord.
Pending Text
Section titled “Pending Text”An input method can commit text and keep the same press relevant to the next character. In Mozc’s romaji input, the second press below commits “っ” and starts another pending consonant. The last press completes “か”. The pending state shows why the middle press participates in both parts.
On Korean two-set, the vowel in “가난.” (“poverty.”) moves the final consonant of pending “간” to the start of the next syllable. The first syllable commits as “가”; the next stays pending until the period.
The period has no rule in the pending syllable state. The composer commits “난”, returns to its initial state, and handles the same physical press there as punctuation. If the target ends with “가난” instead, end of input finalizes “난” without another press. Pending Korean text lives in the composition state. In the Arabic example, the alef had already been sent and the written matcher was waiting for a mark. The two kinds of progress have separate state.
The JIS Kana voicing mark replaces the “か” already on screen with “が”. Both presses remain in the route and can have prices. The written position advances when the second press provides the target.
The shared text lookup carries the exact written suffix state when a replacing key can use it. It needs that state to determine what the key can replace or leave behind.
Candidate choice has a different source of ambiguity: a reading can bring up several written words. For example, Japanese “はし” can lead to either “橋” or “箸”. An annotated corpus supplies the intended input form for the written text. The analyzer prices the strokes for “はし”. If the entry’s written form is “橋”, Trace can align the input form’s strokes to that written character. Choosing an item from the candidate list is outside the typing model.
Physical History
Section titled “Physical History”Several physical histories can expose the same layout behavior. Afterburner can type “if so” with Skip Magic for the “s”: it reads past Space to the prior F press. The Skip Magic rule can also supply the “s” in “long story”, where the press before Space was G. In “with style”, the H press before Space makes the same key offer “y”.
Types if so
After Space, F and G give the same Skip Magic operation. H differs at that point. An ordinary S press takes all three to the same two-press history, Space then S. To determine which histories can share a state, Keymaxx first groups them by every current outcome the layout could observe, including any live repeat observations. It then checks where each possible next producer leads. A producer that leads to different groups separates the histories. The refinement repeats until each producer leads histories in one group to the same successor group.
The proof applies to future layout behavior. Both routes retain their physical events and finger assignments; pricing can still distinguish histories the layout treats alike. The written-text quotient shares a current lookup. This physical-history automaton also checks future transitions.
Shared Step Rows
Section titled “Shared Step Rows”The same immediate question can recur after the candidate search has narrowed the text. On QWERTY, “a key” and “a layout” both start with the ordinary “a” press from the initial decoder state. Their first text lookup can share one row of possible steps.
The row holds the physical events, written advance, licensing information, and successor state of each step. A graph edge refers to the row by its stable identity. The text quotient determines which observations can share a request. The row cache determines whether to construct the steps again. A small set of state and text IDs can be addressed directly as a grid. When that grid grows past its storage bound, the index moves its filled cells into a sparse table addressed by the same pair of IDs. The stored step relation remains fixed.
When to Build the Rows
Section titled “When to Build the Rows”Preparing a closed table over the discovered decoder states and available text contexts gives later workers one immutable table to consult. Keymaxx checks its size as the known state set grows. At the bound, it keeps the rows already prepared and supplies the remaining rows on request. Both constructions return the same events, advances, and successor states for a given context.
Word Graphs and Corpus Context
Section titled “Word Graphs and Corpus Context”A sequence of steps can repeat inside different words. In the corpus spelling graph, “monkey” and “key” already share the same written tail. To share its typing graph, Keymaxx also needs matching decoder conditions and the retained text beyond the tail.
The word graph owns the separator when a sequence continues. In the corpus from the first page, “key” at the end of “find the key” owns just “key”. Inside “the key works” it owns “key” and the following space. The decoder indexes those two remaining forms separately. The graph for the continuing form can keep the state needed by the next word.
The word graph records how a route enters a word, where it can move within it, and which conditions it leaves behind. A word boundary gives this graph a useful place to index work. Held layers, remembered presses, and pending output carry across the boundary.
On Afterburner, Skip Magic can read the press before a space: the two Skip Magic presses below produce the first letters of “the” and “end”.
Types at the end
Each Skip Magic reads past the immediately preceding space. The first reads the last press of “at”; the second reads the last press of “the”. Both letters also have ordinary producers. This trace shows how the earlier physical press makes the extra route available.
The layout state explains the extra press offers. The corpus’s WordChains supply the next words those presses can reach.
The Text a Word Can Read
Section titled “The Text a Word Can Read”The forward walk also limits how much of the following word a graph needs. Magic Sturdy can send “ but” with the Magic key after a comma. In “bread, butter and jam” and “bread, buns and jam”, the two following words agree through “bu”. The next letter decides whether the “ but” offer fits. Once the attempted output either completes or runs out of matching text, it needs no further letters to decide.
Keymaxx starts those forward walks near a word’s end, including its separator when another word follows. It extends them along observed corpus continuations while an output can still use the text. When all such walks stop, the following text can wait for the next word’s graph. The width depends on the layout’s outputs, separately from how many preceding physical events pricing uses.
Where a Press Lands
Section titled “Where a Press Lands”A reusable word graph can start partway through a word. In Magic Sturdy’s “bread, butter and jam”, the Magic key after the comma writes the space and first three letters of “butter”. The successor enters “butter” at offset three, with “ter” still to type.
Types , butter
The exit stores both the exact landing offset and the written suffix state. The letter-by-letter route can enter “butter” before its first letter, so the entries stay distinct. The same graph can also serve two occurrences once their exact typing conditions and remaining text agree.
Source Conditions Across Words
Section titled “Source Conditions Across Words”Take three corpus entries: “at the end”, “cut the end”, and “be the change”. The first two occurrences of “the” lead to “end”; the third leads to “change”. WordChains retains that evidence alongside the spelling of “the”. A graph reached through “at the” can use the record for “end”; the “change” record belongs to the source path through “be the”.
The layout’s outputs determine how far the search requests text at a word boundary. Within the retained source context, the graph opens only the following entries witnessed there. Farther ahead, the destination word can consult its own rows. When a wider path matters to counts, the analyzer follows the original occurrences to recover its exact weight.
Entries at Word Boundaries
Section titled “Entries at Word Boundaries”The search starts at “at”, “cut”, and “be”, where the source entries begin. Typing the ordinary “at” and “cut” paths leaves both at the start of “the” after T and Space, with the same retained written suffix and “end” ahead. The matching entry opens one graph for “the”; its two source occurrences remain available for counting. “Be” arrives at “the” after E and Space, with “change” ahead, so it opens a separate entry.
The new entries open the next wave. After T and Space, either ordinary T or Skip Magic supplies the first letter of “the”. H, E, and Space then take both routes to the same entry for “end”. The route from “be” uses ordinary T for that letter and carries on to its recorded successor, “change”. Boundary propagation passes each new exit state to its source-conditioned successor. The search expands each distinct entry once, and finishes when no new entries remain. The original two occurrences still count as two even though they share the same graph.
Finger Assignments
Section titled “Finger Assignments”A sequence of physical events can admit more than one way to use the fingers. Keymaxx puts authored alternatives in a prefix trie over physical event sequences and their assigned fingers. A state remembers which declaration prefixes are still possible. The decoder pairs that state with the current state of the physical candidate graph. Routes that reach the same pair can share a continuation, and the decoder builds just the pairs it reaches. A declaration must finish as written, even if it spans several steps. Equivalent assigned streams count once.
Chog v2 declares a finger alternative for the “sy” sequence at the start of “system”. The ordinary index finger and the declared middle finger can both press the same key for “y”. The “sa” in “same” leaves the ordinary assignments in place.
Types sy
Types sa
Both assignments use the right index for the first press. The ordinary route uses it again for the second, so the pair is same-finger. The declared route uses the right middle for the second. At one unit per press, both ways of typing just “sy” cost two. Each contributes half the weight, giving a same-finger count of one half for this isolated pair.
A held key can occupy the finger needed for the next press. Keymaxx can keep the release decision open until it knows the next press’s assigned finger. It waits to cut a path until those decisions are settled. Pricing compares the admitted events using their effective fingers.