コンテンツにスキップ

Defining the Keyboard

このコンテンツはまだ日本語訳がありません。

When you bring a layout over from another keyboard or model a board that is new to the Playground, the keyboard definition tells the editor which keys exist and where they sit. Optional finger assignments and homes let analysis use the way you actually reach those keys.

On an ANSI board such as QWERTY, the long and single-row are part of the physical geometry.

レイヤートリガー · キー集合

レイヤートリガー

MOshift次の打鍵の条件:shift_right
MOshift次の打鍵の条件:shift_left

キー集合

shift_right右手のキー・除外:
shift_left左手のキー

On Bépo, choosing ISO puts the position at the end of the home row and an extra key immediately to the right of the short :

Compose · レイヤートリガー · キー集合 · 注記

Compose

レイヤートリガー

MOshift次の打鍵の条件:shift_right
MOshift次の打鍵の条件:shift_left
MOsym

キー集合

shift_right右手のキー
shift_left左手のキー・除外:

注記

キー詳細
このキーはデッドキーです。
board = "iso"
space_thumb = "left"
[key_grid]
rows = '''
$ " « » ( ) @ + - / * = % skip
skip b é p o è ^ v d l j z w
skip a u i e , c t s r n m ç ⏎
lsh ê à y x . k ' q g h f rsh
'''
space = "spc"
right_alt = "altgr"

The iso board defines the grid groups rows, space, right_alt. space_thumb assigns the separate Space key.

To model the dedicated keys around Space on QWERTY (Mozc), choose JIS and give those positions a shared key_grid.bottom. The four main rows contain 15, 13, 14, and 13 slots; bottom contains ten.

Compose · レイヤートリガー · キー集合

Compose

  • 確定した文字列: ー
  • 確定した文字列: え
  • 確定した文字列: う
  • 確定した文字列: い
  • 確定した文字列: お
  • 確定した文字列: 「
  • 確定した文字列: あ
  • 確定した文字列: 」
  • 確定した文字列: 、
  • 確定した文字列: 。

レイヤートリガー

MOshift次の打鍵の条件:shift_right
MOshift次の打鍵の条件:shift_left

キー集合

shift_right右手のキー
shift_left左手のキー

The grid is a string of physical key IDs. For example, Bépo’s ⏎ ID remains in the grid even though its base binding produces no text. skip removes a slot altogether. Key assignments describe what the retained keys do.

FieldWhat to enter
board"ansi", "iso", "jis", or a board table describing the main rows, hand columns, and thumb keys.
key_grid.rowsWhitespace-separated key IDs. ANSI uses rows of 14, 14, 13, and 12 slots; ISO uses 14, 13, 14, and 13. Use skip for an absent key. Keep every retained key ID distinct.
key_grid.space, key_grid.right_altOptional separate position IDs for ANSI and ISO Space and Right Alt.
key_grid.bottomJIS uses a separate grid of ten bottom-row slots instead of the ANSI/ISO Space and Right Alt fields.
fingermapANSI or ISO presets include "standard", "angle_mod", "meteorite", and "nokwts". Their _wide forms shift the right-hand nonthumb assignments and homes, not the physical keys.
fingermap.grid, fingermap.home_keysFor a custom assignment, mirror the key grid, including skip slots. Use digits 0–4 from left pinky to left thumb and 5–9 from right thumb to right pinky. Name a retained home key for every used finger, including fingers used only in an alternate fingering.
space_thumbUse "left" or "right" for ANSI/ISO Space; the default is left. It must agree with the assignment when the custom map includes Space.

Chog v2 gives each hand its own half of an ortholinear board and puts both thumb keys on the final row. On ortho and column-staggered boards, each row lists the left-hand keys first. A custom fingermap follows the same shape, and boards with thumbs disabled have no thumb row:

[board]
type = "ortho"
rows_above = 1
rows_below = 1
hands = { left = { outer_columns = 1, inner_columns = 1 }, right = { outer_columns = 1, inner_columns = 1 } }
thumbs = { enabled = true, left = { outer_columns = 0, inner_columns = 0 }, right = { outer_columns = 0, inner_columns = 0 } }
[key_grid]
rows = '''
skip x k l c p z y o h , skip
skip n t r d m ' s a e i skip
lsh b v j g w q f u ; . rsh
spc magic
'''

The ortho board specifies rows_above, rows_below, hands, thumbs before listing its key_grid.rows. The hand geometry sets outer_columns, inner_columns; the thumb geometry uses its own enabled, left and right, outer_columns, inner_columns fields.

Board fieldWhat it does
board.rows_above, board.rows_belowCounts of rows on either side of home.
board.hands.left, board.hands.rightThe hands present. Each starts with four home columns. outer_columns adds columns toward the pinky, and inner_columns adds them toward the thumb.
column_overridesOn one hand, override a column’s row count or y_offset. A positive offset moves down; four quarter-key units make one key unit.
board.thumbsIf enabled, describe the thumb cluster of each present hand. Each starts with one home thumb key. When disabled, omit the separate hand dimensions.
board.key_centersOptional measured centers in quarter-key units, x rightward and y downward, for all retained keys. Provide a custom fingermap with homes when using measured centers.
マジックルール · レイヤートリガー · キー集合 · 注記

マジックルール

直前:割り当て
s
u
l
l
e
p
u
l
a
l
s

レイヤートリガー

MOshift次の打鍵の条件:shift_right
MOshift次の打鍵の条件:shift_left

キー集合

shift_right右手のキー
shift_left左手のキー・除外:

注記

キー詳細
元の定義にないキーです。
直前の出力を繰り返します。

Birdie shortens and offsets individual columns through column_overrides. Kéa (TouLi V2.0) instead declares explicit key centers for all retained keys. Each half uses its own ergonomic frame; the gap is for display.

qx
レイヤートリガー · キー集合

レイヤートリガー

MOshift次の打鍵の条件:shift_right
MOshift次の打鍵の条件:shift_left

キー集合

shift_right右手のキー・除外:
shift_left左手のキー
Compose · レイヤートリガー · 注記

Compose

レイヤートリガー

MOaltgr
MOshift
MOshift
MOaltgr
MOlevel5

注記

キー詳細
このキーはデッドキーです。

Boards and key grids#

ANSI board#

board = "ansi"

Uses the built-in four-row ANSI geometry. key_grid.rows must contain rows of exactly 14, 14, 13, and 12 tokens.

Choose board = "iso" for the ISO positions and L-shaped Enter described in the ISO board entry below.

Fragment: ANSI board and key grid
board = "ansi"

[key_grid]
rows = '''
skip skip skip skip skip skip skip skip skip skip skip - skip skip
skip q w e r t y u i o p skip skip skip
skip a s d f g h j k l ; skip skip
lsh z x c v b n m , . / rsh
'''
space = "spc"

ISO board#

board = "iso"

Uses the built-in four-row ISO geometry. key_grid.rows must contain exactly 14, 13, 14, and 13 tokens. Compared with ANSI, the second row has no separate backslash position, the home row has an extra key immediately before Enter, and the bottom row has the LSGT key between short Left Shift and Z.

The LSGT position uses the left pinky by default; the extra home-row position uses the right pinky. Named presets, their _wide forms, and custom maps work on ISO.

Enter is one retained key in the final home-row slot. Its L-shaped cap extends into the row above, while its logical position, legend and chord anchor remain on the home row. Do not repeat its ID in the second row. Bind it to none when it should remain visible without producing text; skip removes its outline.

ISO layouts can be exported as TOML. Printable OS configuration downloads remain ANSI-only.

Fragment: ISO board and key grid
board = "iso"
fingermap = "standard"

[key_grid]
rows = '''
skip skip skip skip skip skip skip skip skip skip skip skip skip skip
skip q w e r t y u i o p skip skip
skip a s d f g h j k l ; ' # enter
lsh < z x c v b n m , . / rsh
'''
space = "spc"
right_alt = "altgr"

ANSI and ISO fingermaps#

fingermap = "standard"

Selects finger assignments on ANSI or ISO without changing physical key positions. Each preset also has a _wide form: the right nonthumb fingers and homes move one column right, the exposed center column uses the left index, and left/thumb assignments remain unchanged.

Custom fingermap and homes#

[fingermap]
home_keys = { 0 = "a", 3 = "f" }
[fingermap.grid]
rows = "0 skip skip 3"

Supplies a custom map on ANSI, ISO or ortho boards. On ANSI and ISO it replaces the preset string. fingermap.grid mirrors every key_grid group, row width, and skip cell with digits 0–9. Digits run from left pinky (0) to left thumb (4), then right thumb (5) to right pinky (9).

fingermap.home_keys maps each used finger digit to a retained key ID assigned to that finger, either primarily or through an explicit alternate fingering. Every used finger needs a home; unused fingers are omitted. Home coordinates are taken from those keys, never guessed from row placement.

A custom ANSI or ISO space cell must be thumb 4 or 5 and selects that modeled thumb position. If space_thumb is present it must agree. right_alt keeps its physical coordinates and uses the custom grid assignment.

ANSI and ISO Space thumb#

space_thumb = "left"

Assigns the authored Space key to one thumb on ANSI or ISO. Include the separate space key-grid group.

Parameterized ortho board#

[board]

Builds one or two hands around four home-row finger columns. type must be ortho; column stagger is expressed with y_offset, not a separate board type.

Fragment: two five-column hands and two thumbs
[board]
type = "ortho"
rows_above = 1
rows_below = 1
hands = { left = { outer_columns = 0, inner_columns = 1 }, right = { outer_columns = 0, inner_columns = 1 } }
thumbs = { enabled = true, left = { outer_columns = 0, inner_columns = 0 }, right = { outer_columns = 0, inner_columns = 0 } }

Rows above home#

board.rows_above = 1

Sets the number of complete main-key rows above the home row. Use 0 when the board has none.

Rows below home#

board.rows_below = 1

Sets the number of complete main-key rows below the home row. Use 0 when the board has none.

Present hands#

board.hands = { left = {...}, right = {...} }

Lists the hands present on the board. At least one of left and right is required; a one-handed board may omit the other.

Hand outer columns#

board.hands.*.outer_columns = 0

Adds columns beyond the pinky home column. A main hand is four home-finger columns wide before inner and outer columns are added.

Hand inner columns#

board.hands.*.inner_columns = 1

Adds columns beyond the index-finger home column. The resulting hand width is outer_columns + 4 + inner_columns.

Column overrides#

board.hands.*.column_overrides = [...]

Supplies per-column changes. The array may be shorter than the hand width; omitted trailing entries use the board row counts and zero offset.

Index 0 is the outermost column on the left hand and the innermost column on the right hand. Use {} for a listed column with no changes.

Fragment: five staggered columns
column_overrides = [ { y_offset = 4 }, {}, { y_offset = -1 }, {}, { y_offset = 2 } ]

Column rows above home#

board.hands.*.column_overrides.*.rows_above = 0

Shortens this column above home. It cannot exceed board.rows_above.

Column rows below home#

board.hands.*.column_overrides.*.rows_below = 0

Shortens this column below home. It cannot exceed board.rows_below.

Column vertical offset#

board.hands.*.column_overrides.*.y_offset = -1

Moves every key in this column vertically in quarter-key units. 4 is 1u; positive values move down and negative values move up.

Thumb configuration#

board.thumbs = { enabled = true, left = {...}, right = {...} }

Configures the thumb row. Enabled thumbs require one dimensions object for each present hand; disabled thumbs must omit both hand objects.

Thumb keys enabled#

board.thumbs.enabled = true

Controls whether the board has physical thumb keys. When true, key_grid.rows ends with one combined thumb row; when false, that row is absent.

Thumb hand dimensions#

board.thumbs.left | board.thumbs.right

Describes one hand’s thumb cluster. Its presence must match the corresponding main hand when thumbs are enabled.

Thumb outer columns#

board.thumbs.*.outer_columns = 0

Adds thumb keys on the pinky side of the home thumb. A thumb cluster has one home key before inner and outer columns are added.

Thumb inner columns#

board.thumbs.*.inner_columns = 0

Adds thumb keys on the index side of the home thumb. The resulting cluster width is outer_columns + 1 + inner_columns.

Key grid#

[key_grid]

Whitespace-delimited tokens assign stable IDs to physical slots. Outer blank lines are ignored. Interior blank rows retain their alignment.

skip removes a slot and every corresponding layer binding. Other IDs must be unique; punctuation, Unicode, and numbers are accepted. Key IDs and chord names share one namespace.

Main key-grid rows#

key_grid.rows

Defines the main physical matrix. Ortho boards use this as their only group: main rows come first and, when thumbs are enabled, one combined thumb row comes last.

ANSI rows contain exactly 14, 14, 13, and 12 tokens. ISO rows contain exactly 14, 13, 14, and 13 tokens, with the single Enter ID at the end of the home row.

ANSI and ISO Space group#

key_grid.space = "spc"

Defines the separate Space position on ANSI or ISO.

ANSI and ISO right-Alt group#

key_grid.right_alt = "alt"

Defines the separate right-Alt position on ANSI or ISO.