Grammar:
Ruby-align:auto | Left | Center | Right | Distribute-letter | Distribute-space | Line-edge
Parameters:
Auto: The alignment is determined by the browser. For Ideographic (East Asian text), align with the distribute-space value. Align with center values for Latin text
Left: aligned to the base width
Center: Center alignment based on base width. If the base width is less than the width of the ruby text, center the base width in the width of the ruby text
Right: Align to the base width
Distribute-letter: If ruby text is wider than the base width, ruby text is evenly distributed across the base width. If ruby text is wider than or equal to the base width, align the center
Distribute-space: If ruby text is wider than the base width, ruby text is evenly distributed across the base width. In ruby text, the last character after the first character is preceded by a blank area of half a word. If ruby text is wider than or equal to the base width, align the center
Line-edge: If ruby text is not adjacent to the edge of the row, it is centered. Otherwise, the Ruby text line is above the base text edge
Description
Sets or retrieves the alignment position of the annotation text or pronunciation guide (reference ruby object) specified by the Rt object.
See my other books for Ruby objects and RT objects.
The corresponding script attribute is rubyalign. Please refer to the other bibliography I have written.
Example:
Ruby {ruby-align:right;}
Specific examples:
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
Example diagram