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
- Prepare the parsed attribute values, element states or ordered local lists requested below. Keep attribute presence separate from value.
- Enter tag using the field table, then run the tool.
- Read role, directRubyContext. Interpret flags, units, ordering and placeholder values using the rules below.
- Review any reported issue or failed check, correct the supplied values when appropriate, and verify the result in its intended context.
| Input field | Meaning | Value type and bounds | Requirement |
|---|---|---|---|
| tag | Tag | string; 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 field | Meaning | Value type |
|---|---|---|
| role | Role | string |
| directRubyContext | Direct Ruby Context | boolean |
{
"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
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.