Authoring Layouts
Esta página aún no está disponible en tu idioma.
In the Playground, choose New layout to start from a blank layout or duplicate an existing layout to use it as a starting point. The layout editor keeps the TOML source, diagnostics, preview, and analysis together. Resolve any diagnostics before saving; use Save As when you want the edited layout to remain separate from the document you opened.
Every layout source starts with schema_version = 1 and includes name, author, languages, and year. List one or more distinct language tags, such as en, fr, or de. For languages with multiple current writing systems, include the script, such as sr-Latn or sr-Cyrl. Put the layout’s main intended language first, followed by any secondary languages. For example, use languages = ["fr", "en"] for a layout designed for French that can also type English. When you open embedded analysis from a family page, it starts with the first available corpus in the primary language’s corpus-picker order, not alphabetical order. CoMeRe comes before Wordfreq in French. If the primary language has no published corpus, it uses the normal Playground default. Optional metadata includes author_link and links.
For a Japanese layout (languages = ["ja"]), declare what its keys produce. Set input_forms = { ja = "kana" } for kana output or input_forms = { ja = "romaji" } for rōmaji input. Tatoeba comparisons use one rōmaji spelling per reading.
languages = ["en"]Board and key grid
Section titled “Board and key grid”The board supplies slots, coordinates, finger assignments, and home positions. Use board = "ansi" or board = "iso" for a fixed staggered board. ANSI key-grid rows contain 14, 14, 13, and 12 tokens; ISO rows contain 14, 13, 14, and 13. Ortholinear and column-staggered boards use the board builder’s row and column counts around the home positions.
ISO moves the separate ANSI backslash position into the home row immediately before Enter, and adds the LSGT position between short Left Shift and Z. LSGT uses the left pinky by default; the extra home-row key uses the right pinky. Enter has one ID in the last home-row slot. Its L-shaped cap extends into the row above, but its logical position, legend and chord anchor stay on the home row. Keep the ID only on that row. Use a retained ID bound to none to show the cap without output; skip removes it.
For example, this ISO fragment retains both extra positions and a visible Enter:
board = "iso"fingermap = "standard"
[key_grid]rows = '''skip skip skip skip skip skip skip skip skip skip skip skip skip skipskip q w e r t y u i o p skip skipskip a s d f g h j k l ; ' # enterlsh < z x c v b n m , . / rsh'''space = "spc"right_alt = "altgr"
[layers.base]default = "literal"bindings = { enter = "none", lsh = "none", rsh = "none", altgr = "none" }ANSI and ISO presets use fingermap = "standard", "angle_mod", "meteorite", or "nokwts". Append _wide to any preset to move the right-hand nonthumb assignments and homes one column right. Physical key positions stay fixed, the exposed center column uses the left index, and left-hand and thumb assignments stay unchanged.
For a custom map on ANSI, ISO or a board-builder layout, use fingermap.grid and fingermap.home_keys. On ANSI and ISO this replaces the preset string. The finger grid has exactly the same groups, rows, columns, and skip cells as key_grid. Digits 0–4 denote left pinky, ring, middle, index, and thumb; 5–9 denote right thumb, index, middle, ring, and pinky. Home entries map those digits to retained key IDs, not output text or row numbers. Declare a home for every used finger, including explicit alternate fingerings; the referenced key must use that finger in the grid or a declared alternate. Omit unused fingers. Homes are never inferred from the custom grid’s shape.
For example, these fragments describe a ten-key ortho board with one row of eight main keys and a row of two thumb keys:
[key_grid]rows = """a s d f j k l ; spc shift"""
[fingermap]home_keys = { 0 = "a", 1 = "s", 2 = "d", 3 = "f", 4 = "spc", 5 = "shift", 6 = "j", 7 = "k", 8 = "l", 9 = ";",}
[fingermap.grid]rows = """0 1 2 3 6 7 8 9 4 5"""Custom ANSI and ISO maps also mirror the separate key_grid.space and key_grid.right_alt fields. A retained Space uses space = "4" or space = "5" to select the modeled left- or right-thumb position. An explicit space_thumb must agree. Right Alt keeps its physical position and takes its finger from fingermap.grid.right_alt. Inspect and analysis use the same custom assignments and home positions.
ISO layouts can be exported as TOML. Printable OS configuration downloads remain ANSI-only.
The key grid assigns stable key IDs to those slots. Tokens are separated by whitespace inside multiline strings. An ID can be a number or punctuation such as $ or ,; it does not have to look like a programming-language identifier. Each retained key ID must be unique within the layout. Key IDs and chord names share one namespace, so a chord cannot reuse a retained key ID.
Use the base printable output as the key ID for letters, digits, and symbols. Write kana directly (for example, か), not as a romanization or a board position code such as ad01. In a TOML mapping, quote non-ASCII IDs, as in "か". Keep IDs distinct where duplicate outputs need disambiguation, and use meaningful IDs for activators and nonliteral behaviors. Align corresponding columns by display-cell width, leave a clear gap between hands, and place ortho/colstag thumb positions on their own final row. ANSI and ISO Space and Right Alt use their separate key-grid fields. Since spaces only separate tokens, count the whitespace-delimited IDs per row and hand programmatically instead of relying on visual character widths.
Omit bindings already supplied by a literal default, such as z = "z". Write bindings and combos as brace-delimited inline mappings inside their owning layer, one item per line with commas between entries; a trailing comma is optional. Keep nested behaviors on the same line and keep layer properties such as rules in their authored order. The authoring formatter applies this convention while preserving the parsed document.
On layout pages, use concise high-level framing where useful and preserve source rationale or ambiguity that TOML cannot represent. Avoid restating implementation metadata already encoded in TOML, such as inferred number-row keys.
Use skip for unused board slots. A skipped slot has no key and does not appear in any layer. Built-ins model output-producing keys and their activators rather than every key found on a physical keyboard.
Our built-in naming convention favors lowercase semantic IDs: yl and yr for two Y keys, lsh and rsh for shift activators, and spc for space. This convention is not a restriction on user-authored key names.
Compact layers
Section titled “Compact layers”A literal default makes a key output its ID, with a few overrides for duplicate outputs or activators:
[layers.base]default = "literal"
bindings = { yl = "y", yr = "y", lsh = { type = "momentary", layer = "shift" }, rsh = { type = "momentary", layer = "shift" },}
[layers.shift]default = "transparent"case_map = "us-english"spc resolves to a space. none is a no-output binding, and ____ is transparent. Spell out "none" and "transparent" in the default field. To output reserved text literally, use an explicit object such as { type = "output", value = "none" }. A single key with no output may have a display-only legend, for example "小" = { type = "none", label = "小" } for a chord-only key. The legend is not typed. The layer’s Notes shows the default tap behavior, and the chords show what the key does in combination. Use this only when the legend communicates something the tap output does not.
Give a dead-key prefix a complete display label, for example "^" = { type = "dead_key", label = "◌̂" }. The same label appears on its keycap and in rule references; Inspect identifies it in Notes with “This key is a dead key.” The label is never typed. Add contextual rules for the supported compositions; declaring a dead key does not supply a Compose table. Try Out cancels an unmatched text key or another dead key with visible feedback, so these cases do not need individual blocked rules. See the dead-key reference.
A case map transforms output supplied by a transparent mapped layer. "us-english" supplies letter pairs such as aA and US symbol pairs such as 2@ and /?. An explicit map is an array of two-grapheme strings, for example case_map = ["aA", "bB", "2@"]. Pair endpoints must be distinct and cannot occur in multiple pairs.
"bepo-1.0" supplies the direct base-to-Shift pairs from the Bépo 1.0 keyboard convention: accented pairs such as éÉ, punctuation/digit pairs such as "1 and /9, and U+0020 Space → U+00A0 No-Break Space. It does not uppercase an arbitrary French alphabet or normalize a corpus. AltGr output, dead-key/no-output exceptions, and modifier activators remain explicit. See the exact 48 pairs in the reference. Selecting a map does not change the board or add the ISO-only ê key to an ANSI layout.
ISO Bépo accent-first subset
Section titled “ISO Bépo accent-first subset”The shipped ISO Bépo pilot keeps ê/Ê on the extra key beside Left Shift and ç/Ç beside Enter. Its scoped dead-key rules use the source layer as well as the physical key; they do not normalize the corpus.
Press the prefix first, release AltGr if used, then type the letter. Acquire Shift after the prefix for uppercase. The exact supported pairs are:
| Prefix source | Letters → lowercase / uppercase results | Prefix then unmodified Space |
|---|---|---|
Base ^ (circumflex) | a e i o u → â ê î ô û / Â Ê Î Ô Û | ^ |
AltGr+i (diaeresis) | a e i o u y → ä ë ï ö ü ÿ / Ä Ë Ï Ö Ü Ÿ | " |
AltGr+é (acute) | e → é / É | ' |
AltGr+è (grave) | a e u → à è ù / À È Ù | U+0060 backtick |
AltGr+ç (cedilla) | c → ç / Ç | U+00B8 ¸ |
These pairs and spacing outputs come from the Xorg libX11 Compose table. i,a stays ia; Shift+^, then a stays !a. Backspace cancels an empty prefix without removing earlier text. Dead+Space resets the prefix before the next letter.
The pilot supports only the combinations in this table. Bépo’s version 1.0 dead-key guide also documents circumflex then 1 → ¹ and repeated circumflex → ^; those valid combinations are omitted here. Try Out cancels unlisted successors with visible feedback; a,^,^,a produces aa. This is the pilot’s refusal policy, not a universal OS fallback: Bépo’s portability guide describes platform differences. Multi-dead sequences and general Compose/IME are not implemented.
Momentary layers remain fixed until their activators are released: after Shift→AltGr→release Shift, release/reacquire AltGr before beginning a third-level prefix. This pilot does not reproduce full XKB dynamic modifier behavior.
The source defaults to base, regardless of other active layers. Use source_layer when a second alphabet has its own mapped Shift:
[layers.a2]default = "literal"
bindings = { a = "x",}
[layers.shift2]default = "transparent"case_map = "us-english"source_layer = "a2"The named source can appear before or after the mapped destination and does not need to be active. It must exist, differ from the destination, and have no case map of its own. A transparent destination reads the source layer’s authored behavior. Source none and a missing combo are opaque. If the source is transparent, ordinary lookup continues below the destination without applying that destination’s map. An explicit destination binding bypasses the source and map.
Mapping applies to every grapheme produced by the source behavior, including contextual defaults and rule outputs. A held or locked mapped layer maps the complete output; one-shot maps its first grapheme. A rule’s key context is unchanged by case mapping: a base after_keys = ["a"] can match mapped Shift+A, while { press = "a", layer = "shift" } requires that precise mapped-layer action.
See the Layout TOML Reference for field forms, validation constraints, and the exact transparent-key and transparent-combo boundaries.
Choose the layer form by whether it derives from a lower layer, not its name. Use a transparent default and the applicable case map for a case-mapped layer, with only real exceptions. Use a spatial grid for an independent layer, such as a symbol layer, second alphabet, or independent Shift. Put none in cells with no output, and use layer-local aliases for nonliteral behaviors. Use ____ only for keys that actually inherit.
For example, a sparse symbol layer over three rows of three retained keys can show every position:
[layers.symbols]grid = '''! @ #none none nonenone none none'''Built-in symbol layers use none for unused keys rather than falling through to another layer.
Put inferred inside a layer table to record physical key positions absent from the original source on that layer:
[layers.base]default = "literal"inferred = ["minus"]Every listed ID must exist in the physical key grid. The marker is layer-local metadata and does not change behavior. It does not propagate through transparent lookup or case mapping, so place inferred in each affected layer and list that layer’s inferred positions explicitly.
Inferred keys use a subdued background in the key grid and retain their finger-colored outlines. Inspect also identifies them in Notes. A shared note lists all affected keys together; a key with several notes appears beside each relevant note.
Layer grids and aliases
Section titled “Layer grids and aliases”A layer can instead provide a whitespace-delimited grid. Its rows follow the key grid after removing skip slots and empty rows. If the key grid has named groups, the layer supplies matching groups.
Tokens in a layer grid are outputs or aliases local to that layer’s bindings table. They do not have to be the stable key IDs. In a layer with a default, however, bindings is keyed by stable key ID. A layer uses either a default or a grid, not both.
Key sets, activations, and chords
Section titled “Key sets, activations, and chords”Named key sets live at the top level. The anchors field specifies the anchor keys eligible immediately after activation. Use a set name or an inline list of stable key IDs:
[key_sets]right_letters = ["j", "k", "l"]
[layers.base]default = "literal"
bindings = { lsh = { type = "momentary", layer = "shift", anchors = "right_letters" },}Key sets can select keys directly, by hand or finger, or by behavior on one layer. They can also reuse an earlier set and combine expressions with union, intersection, and difference:
[key_sets]right_side = { hand = "right", except = ["spc"] }index_fingers = { union = [{ finger = "left_index" }, { finger = "right_index" }] }typing_keys = { layer = "base" }letters = { diff = [{ ref = "typing_keys" }, ["lsh", "rsh", "spc"]] }left_letters = { intersect = [{ ref = "letters" }, { hand = "left" }] }letters_and_thumbs = { union = [{ ref = "letters" }, { union = [{ finger = "left_thumb" }, { finger = "right_thumb" }] }] }A ref may name only an earlier declaration. Layer selectors may name a later layer, and include physical keys with authored behavior on that layer other than none or transparent. They do not inherit lower-layer outputs or add combo members. Nested empty literals, unions, and intersections are allowed, but the complete expression for every named set must contain at least one key. Use diff for exclusions; there is no selector for a home row or an absolute complement.
Character classes and equivalence groups are separate top-level declarations for output-pattern rules:
[character_classes]vowels = ["a", "e", "i", "o", "u"]accented = ["é", "ê"]front_vowels = { intersect = [{ ref = "vowels" }, ["e", "i"]] }
[character_equivalences]e_variants = ["e", "é", "ê"]Class expressions use ref, union, intersect, and diff, with backward references. Nested expressions may be empty, but each complete named class must contain a character. Equivalence groups are disjoint, and every member must also appear in a character class, a layout output, or a literal output-condition slot. They are used only when an output-pattern slot explicitly names { ref = "class" } or a member such as { equivalent = "e" }; the member selects its group. Literals remain literal, and matching never changes the output.
Omitting anchors leaves the activation unrestricted. Anchor sets constrain entry into the activated layer; they do not constrain release. Every member of an anchor chord must belong to the set. Built-in shifts use opposite-hand sets, excluding keys whose base output is space. These constraints define accepted analysis paths; Try Out still lets a manually pressed wrong-hand Shift activate.
Chords name two or more stable keys, with their behavior assigned separately in each layer’s combos mapping:
[chords]jc = ["j", "c"]
[layers.base]default = "literal"
combos = { jc = ";",}The authoring schema also supports one-shot activation, repeat, skip-repeat, contextual magic, and tap-hold bindings. A tap-hold’s hold branch may activate a momentary layer, but cannot activate a one-shot layer. Layer names are references, not hidden display instructions: naming a layer shift does not assign it a special icon.
Alternate fingerings
Section titled “Alternate fingerings”[[alt_fingerings]] adds an exact native event fragment that analysis may choose as another path. The ordinary board fingering remains available; typing-path and cost resolution decide which path is used. Matching uses physical key or chord identity, not output text or a layer-specific binding. A layout can declare at most 4096 alternate fingerings, each with one to eight events.
This fragment changes the finger used for two existing physical keys:
# `a` and `b` must already be retained physical keys with bindings.[[alt_fingerings]]events = [ { press = "a", fingers = { a = "RM" } }, { press = "b", fingers = { b = "RI" } },]A chord press assigns fingers by constituent physical key ID, rather than chord order or chord name:
[chords]th = ["t", "h"]
[layers.base]default = "literal"
combos = { th = "x",}
[[alt_fingerings]]events = [{ press = "th", fingers = { t = "LM" } }]Omitted chord members use their board-assigned fingers. Several members may use the same finger. Finger codes are LP, LR, LM, LI, LT, RT, RI, RM, RR, and RP. Across the declaration, at least one press assignment must actually differ from the board finger.
Set hold = true to select the text-producing hold branch of an existing tap-hold binding:
[layers.base]default = "literal"
bindings = { qu = { type = "tap_hold", tap = { type = "output", value = "qu" }, hold = { type = "output", value = "q" } },}
[[alt_fingerings]]events = [{ press = "qu", hold = true, fingers = { qu = "RI" } }]hold defaults to false. This branch choice is separate from an acquired hold, which keeps a key or chord held across later events:
[layers.base]default = "literal"bindings = { lsh = { type = "momentary", layer = "shift" },}
[layers.shift]default = "transparent"
[[alt_fingerings]]events = [ { acquire = ["lsh"] }, { press = "a", fingers = { a = "RM" }, sustained = ["lsh"] }, { release = ["lsh"] },]Each event is exactly one of press, acquire, or release. acquire and release take one to nine unique key or chord names and do not accept finger overrides. sustained names the exact triggers held unchanged across an event. Omission means none are held, not any held set. A changed trigger cannot also be sustained. A press accepts at most nine sustained triggers; for acquire or release, changed and sustained triggers together cannot exceed nine.
The sequence is a fragment, so its first event may begin with triggers held and its last may leave triggers held. Between adjacent events, the earlier post-event held set and later pre-event held set must agree exactly.
Composition
Section titled “Composition”Add a composition.transitions table when a sequence of key presses
types different text from those presses on their own:
[composition.transitions]"" = { q = { next = "q" } }q = { a = "か", "shift a" = { commit = "か", next = "q" } }The empty state is where typing starts. A string commits text and returns
to that state. Use next to change state without committing, or commit
with next to do both. A bare key ID refers to the base layer; quote
"layer_id key_id" for another layer. Use one space between the IDs and
none inside either ID. A layer switch is not a composition input.
Pending text defaults to the state name. Set display in
composition.states to show something different. By default that text
also commits at the end of the sequence or before retrying a key from the
empty state. Set final_text on a state to commit something else without
changing the live display, for example n = { final_text = "ん" }.
Set composition.commit_on_exit = false to reject other incomplete states.
Contextual rules
Section titled “Contextual rules”Keep ordinary defaults in bindings and combos, then add conditional changes to the layer’s rules array:
[layers.base]default = "literal"rules = [ { after_keys = ["t"], set = { magic = "h" } }, { after_keys = ["x", {}], swap = ["w", "e"] }, { after_output = "qu", case_map = "shift", cycle = ["q", "y", "u"] },]
bindings = { magic = "x", again = { type = "repeat", repeat_kind = "output" },}Every rule has one context and one operation. after_keys lists previous output-producing presses, ordered oldest to newest. A bare key belongs to the containing layer. Use { press = "a", layer = "shift" } for a precise layer action. The last two positions also accept {} as a wildcard or { keyset = "left", layer = "base" } for a named key set. Older positions must name concrete keys or chords, and a context cannot consist entirely of wildcards.
Add word_start = true to an after_keys rule to require the oldest matched press to begin the word. For example, { after_keys = ["a", "b", "c"], word_start = true, set = { magic = "x" } } matches those three presses at sequence start or after a press whose output ends with a space. No press in the matched run may emit a space. An anchored list must name its first position. Without the anchor, a key-history suffix may cross spaces. These rules follow completed presses, so a key that emits several letters still occupies one position.
after_output matches a produced-text suffix without deleting that text. A compact string remains a literal multi-grapheme suffix. An array consumes one grapheme cluster per slot, so ["q", { ref = "vowels" }, { equivalent = "e" }] selects a literal q, a vowel, and any member of the group containing e. Add word_start = true to anchor either form before its first slot at sequence start or immediately after a space; punctuation is not a separator. If the layout declares one case map, it is selected automatically for case-aware matching. With several maps, case_map names the layer whose map applies; otherwise no automatic case equivalence is added, while explicit classes and equivalence slots still apply. An explicit equivalence slot still uses its declared group when case_sensitive = true.
set accepts a string shorthand or a structured outcome. swap and cycle
route targets through their original defaults: [a, b, c] makes a produce
b’s default, b produce c’s, and c produce a’s. These operations act
on the defaults that existed before the rules, not on another rule’s result.
rules = [ { after_keys = ["a"], set = { magic = { type = "output", value = "qu", delete_previous_output = true } } }, { after_keys = ["t"], set = { again = { type = "repeat", repeat_kind = "keystroke" } } }, { after_keys = ["x"], set = { magic = { type = "none" } } },]An output outcome with delete_previous_output = true replaces the entire output of the immediately preceding ordinary press. The immediate after_keys slot must be named; a key set qualifies, while a wildcard in that slot does not. It does not delete one character from a multi-grapheme output, and it cannot be triggered by after_output or a default. A completed deletion cannot be deleted or output-repeated again. Repeat and skip-repeat use repeat_kind = "output" or "keystroke"; the latter runs the earlier key or chord behavior again. none completes a no-output action without advancing completed-output history or consuming a one-shot. blocked refuses execution.
Add branch = "tap" when a target is a tap-hold key or chord. Tap branches may use none or blocked; contextual hold branches are invalid. Add on = "combos" when the targets are chord names; bindings are the default. Rule targets must have ordinary output, dead-key, none, blocked, repeat, or skip-repeat defaults, or an unanchored one-shot default. Momentary, lock, anchored activation, transparent, and contextual defaults are not valid targets.
For one target and tap branch, the more-specific valid context wins; authored order does not make the first broad match win. prefer = "after_output" is the default; prefer = "after_keys" reverses that priority. case_sensitive = false is the default and permits automatic case-equivalent matching without changing output; true requires exact case, while explicit mapped-layer contexts remain exact. All rules for one target and tap branch must use the same preference and case-sensitivity setting. default_when_shadowed = "miss" offers the default only as a separate miss when the matching winner is not a blocked outcome; default_when_shadowed = "blocked" suppresses that shadowed fallback. Neither setting turns the selected outcome into blocked, and there is no layer fallthrough. All rules for one target and tap branch must use the same shadow policy.
Costs and validation
Section titled “Costs and validation”Omit [cost] to use the default typing-path objective. It compares sequences
that produce the same output. For example, pressing a key once costs 100. Two
presses of that same key cost 217: 100 each for the actions and 17 for repeating
the key with the same finger. Moving that finger one key unit instead costs
19, for a total of 219.
| What is priced | Default cost |
|---|---|
| Active key event | 41 per event, 34 per distinct physical key, and 25 per distinct effective finger |
| Sustained hold | 9 per distinct held finger for each later press that retains the hold; no additional sustain charge on acquisition or release |
| Shadowed-default miss | 120 extra for the timeout, plus the ordinary price of the physical action |
| Same-finger pair | 17 for repeating the same key; otherwise 19 per key unit of Euclidean distance |
| Lateral stretch | 11 per key unit of positive excess over the effective fingers’ home spacing, starting at 0.75u; same-hand non-thumb pairs only |
| Row change | 7 per vertical key unit, plus 13 per vertical key unit if the change is discordant; same-hand distinct non-thumb fingers only |
| Skip-one and redirect | One-seventh of the same movement cost for the endpoint pair, plus exactly one redirect charge: 1 for ordinary, 4 for weakish, 8 for weak |
Presses, hold acquisitions and releases all pay the ordinary active-event price. Held keys are not active keys on later presses. The movement terms round each distance to half-key-unit increments, with midpoint ties going to the even increment. Movement sums over active key pairs, excluding holds sustained throughout the window. The resolver multiplies the default prices by 14 internally so half steps and skip-one costs remain exact integers.
Set [cost] only to replace the whole default. The three expressions price
one keystroke, two adjacent keystrokes, and three adjacent keystrokes
respectively. This example defines a simpler custom objective:
[cost]uni = "5"bi = "akp.sf.count * 5"tri = "ends.akp.sf.count"The example charges 5 per keystroke, 5 per qualifying adjacent same-finger key
pair, and 1 per qualifying pair between trigram endpoints. akp abbreviates
active_key_pairs: keys actively involved in movement within the window. It
includes first-event press, release, or transient sustain and second-event
press, acquire, or transient sustain, while excluding keys held continuously
throughout the window. ends abbreviates endpoints.
default_when_shadowed = "miss" makes the fallback available after a timeout.
The default objective already prices it. To model that timeout in the custom
example, add a surcharge to its unigram:
uni = "5 + 6 * current.miss.count"Replace uni in the [cost] table and keep the other expressions. current
selects the candidate window; miss filters unigram windows to fallback misses.
Its count is 0 or 1, so this expression charges 5 normally and 11 for a miss.
The surcharge represents the cost of waiting; it is not a duration in milliseconds.
Every uni result must be a positive integer. bi and tri results must be
nonnegative integers; use "0" to disable either contribution. These expressions
use the same predicates and arithmetic as metric queries, but operate on one
candidate n-gram before a typing path is chosen. Corpus frequencies and weights
are therefore unavailable. No automatic scaling or default penalties apply to an override, and an undefined result must be handled explicitly before it can be a
cost.
Use the editor diagnostics and preview while you work. When the source is valid, save the current document or use Save As to create an independent saved layout. The Layout TOML Reference lists every accepted field, form, default, and validation rule.