Zum Inhalt springen

Layout Fields and Operators

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Each field describes one candidate layout. These catalog entries include the accepted names, aliases, and compatible value types.

A credit can match even when the layout name does not. Use name for layout variants, or use author with ~ to match a shared credit:

author ~ "Dvorak"

Layout metadata#

Layout queries filter candidate layouts before analysis. This is a separate language from metric queries: its fields describe layout metadata and authored behavior, while explicit metric references supply numeric values.

Layout name#

name

Matches the display name of the layout.

Author#

author

Matches the layout author.

Publication year#

year

Matches the four-digit year when the layout was first published.

Family identifier#

family

Matches the layout family identifier.

Layout identifier#

id

Matches the independent layout identifier.

Layout origin#

origin

Matches whether the layout is published or user-owned.

Accepted values: published, own.

Draft status#

draft

Matches whether the candidate is a draft.

A layout can define combos even when the selected corpus uses none of them. The field has_chords tests for authored combos, regardless of what the selected corpus uses:

has_chords

Authored features#

Has Magic rules#

has_magic

Matches layouts with at least one nonempty magic rule.

Aliases: magic.

Has repeat behavior#

has_repeat

Matches layouts using any supported repeat behavior.

Aliases: repeat.

Repeats output#

has_repeat_output

Matches layouts using repeat-output behavior.

Aliases: ro.

Skip-repeats output#

has_skip_repeat_output

Matches layouts using skip-repeat-output behavior.

Aliases: sro.

Repeats keystrokes#

has_repeat_keystroke

Matches layouts using repeat-keystroke behavior.

Aliases: rk.

Skip-repeats keystrokes#

has_skip_repeat_keystroke

Matches layouts using skip-repeat-keystroke behavior.

Aliases: srk.

Has duplicate key output#

has_duplicate_output

Matches layouts where two different physical keys can produce the same nonempty literal output.

Aliases: dup.

Has chords#

has_chords

Matches layouts with at least one authored chord.

Aliases: chords.

Has output with multiple graphemes#

has_multi_grapheme_output

Matches layouts with a literal output containing more than one extended grapheme.

Aliases: multi.

To see which layouts clear a threshold for a metric you already saved, use this saved-metric template. It uses metric to look up an available result and > to compare it in the formula’s units:

metric('saved-metric-id') > 2.5

Saved metric value#

Saved metric value#

metric('stable-id')

Reads the numeric result of a saved metric by its stable definition ID. The ID must be a nonempty single-quoted string; display names are not identifiers.

metric('saved-definition-id') > 2.5

Combine tests with & and |. See layout query grammar when the order of operations matters.

Layout query operators#

These are the complete operators accepted by the layout-query parser. Parentheses group expressions. Boolean operators combine filters; comparison and arithmetic operators work with compatible field or metric values.

Negation#

!

Negates a boolean expression.

Both conditions#

&

Requires both boolean expressions to match.

Either condition#

|

Requires either boolean expression to match.

Equality#

=

Matches equal values.

Inequality#

!=

Matches unequal values.

Text contains#

~

Matches when the left text contains the right text.

Less than#

<

Matches when the left numeric value is smaller.

At most#

<=

Matches when the left numeric value is no larger.

Greater than#

>

Matches when the left numeric value is larger.

At least#

>=

Matches when the left numeric value is no smaller.

Addition#

+

Adds numeric metric values.

Subtraction#

-

Subtracts numeric metric values.

Multiplication#

*

Multiplies numeric metric values.

Division#

/

Divides numeric metric values.

Exponentiation#

^

Raises a numeric value to a power.