ruby/rt/rp Structure Lookup

Classifies ruby as the annotation container, rt as annotation text and rp as fallback parentheses. This vocabulary lookup does not validate a complete ruby content model.

Description

Ruby annotations pair base text with pronunciation or explanatory text.

Ruby annotations pair base text with pronunciation or explanatory text. Ruby is the container, rt provides annotation text and rp supplies fallback parentheses.1

Classifies ruby as the annotation container, rt as annotation text and rp as fallback parentheses. This vocabulary lookup does not validate a complete ruby content model.

When to use ruby/rt/rp Structure Lookup

Use this for the following task: Classifies ruby as the annotation container, rt as annotation text and rp as fallback parentheses. This vocabulary lookup does not validate a complete ruby content model.

Prepare the parsed attribute values, element states or ordered local lists requested below. Keep attribute presence separate from value.

How to use ruby/rt/rp Structure Lookup and understand its results

  1. Prepare the parsed attribute values, element states or ordered local lists requested below. Keep attribute presence separate from value.
  2. Enter tag using the field table, then run the tool.
  3. Read role, directRubyContext. Interpret flags, units, ordering and placeholder values using the rules below.
  4. Review any reported issue or failed check, correct the supplied values when appropriate, and verify the result in its intended context.
Input fieldMeaningValue type and boundsRequirement
tagTagstring; choose "ruby", "rt", "rp"Required

Select the element name. Return its role and flag rt/rp as elements used directly in ruby context.2

ruby → container; rt → annotation; rp → fallback-parentheses

This summarizes the declared operation. Units, indexing, inclusivity and exceptional cases are explained in the surrounding text.

Output fieldMeaningValue type
roleRolestring
directRubyContextDirect Ruby Contextboolean
json
{
  "input": {
    "tag": "rt"
  },
  "output": {
    "role": "annotation",
    "directRubyContext": true
  }
}

Limitations and assumptions

This does not validate the complete ruby content model or render annotations.

This evaluates supplied local information; it does not fetch a page or run a browser. Malformed requests produce input errors. A successfully evaluated request can still contain false flags, empty result lists or a result outside the supplied threshold; those outcomes have the meanings stated above.

Alternative or Complementary methods

Choose cite/q/blockquote Inline-Block Classify for this operation: Classifies cite, q and blockquote by standard content category and meaning. Phrasing content is reported rather than a CSS display guarantee. For a complementary task, use b/i vs strong/em Semantic Split for this operation: Classifies b, i, strong and em by standard meaning: attention, alternate voice, importance or stress emphasis. Font weight and style are not inferred.

Further background: HTML / accessibility reference: ruby/rt/rp Structure Lookup.

References

  1. HTML / accessibility reference: ruby/rt/rp Structure Lookup — WHATWG

  2. ruby/rt/rp Structure Lookup — tool.io

Similar or alternative tools

  • cite/q/blockquote Inline-Block Classify

    Classifies cite, q and blockquote by standard content category and meaning. Phrasing content is reported rather than a CSS display guarantee.

  • b/i vs strong/em Semantic Split

    Classifies b, i, strong and em by standard meaning: attention, alternate voice, importance or stress emphasis. Font weight and style are not inferred.

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies