RB
| Description | Defines the base text element within a ruby annotation, representing the main text to which the annotation applies. |
|---|---|
| Namespace | 1.7 2.0 |
| Category | inline |
Attributes
Specifies how the element is placed relative to surrounding content (e.g., block-level or inline flow).
Defines the direction of text flow (e.g., left-to-right, right-to-left, or vertical).
Sets the background color for the element’s content area.
Specifies the color of the border around the element.
Indicates the style of the border (e.g., solid, dashed, dotted).
Defines the thickness of the border line in user space units (such as points).
Determines the space between the element’s border (or boundary) and its inner content.
Applies the primary color (fill or stroke) for the text or graphic content.
Main indicator of type. This semantic association allows tools to present and support interaction with the object in a manner that is consistent with user expectations about other objects of that type.
Differences
Well tagged PDF:
The 'RB' (Ruby Base) element in Well-Tagged PDF identifies the base text that is being annotated with ruby text.
It should encapsulate the main text to which the ruby annotation applies, and must be clearly nested within the corresponding Ruby element.
PDFUA:
In PDF/UA, the 'RB' element is essential for linking the primary text with its ruby annotation, ensuring that the relationship is clear to assistive technologies.
The 'RB' element must be tagged in conjunction with its corresponding 'RT' element, clearly distinguishing the base text for accessible rendering.
Use cases
Tag Relationships
Permitted Parent Tags
Click on any tag to view its details.
Related Matterhorn Protocol checkpoints
- Tags are not in logical reading order.
- Structure elements are nested in a semantically inappropriate manner. (e.g. a table inside a heading).
- The structure type (after applying any role-mapping as necessary) of a structure element is not semantically appropriate.
- A Ruby-related structure element is used in a way that does not conform to Table 338 in ISO 32000-1.