Ruby Character - ANSI

ANSI

ISO/IEC 6429 (also known as ECMA-48) which defines the ANSI escape codes also provided a mechanism for ruby text for use by text terminals, although few terminals and terminal emulators implement it. The PARALLEL TEXTS (PTX) escape code accepted six parameter values giving the following escape sequences for marking ruby text:

  • CSI 0 \ (or simply CSI \ since 0 is used as the default value for this control) — end of parallel texts
  • CSI 1 \ — beginning of a string of principal parallel text
  • CSI 2 \ — beginning of a string of supplementary parallel text
  • CSI 3 \ — beginning of a string of supplementary Japanese phonetic annotation
  • CSI 4 \ — beginning of a string of supplementary Chinese phonetic annotation
  • CSI 5 \ — end of a string of supplementary phonetic annotations

Read more about this topic:  Ruby Character