Word J defines control words to specify composite fonts as associated character properties. These control words follow the rule of associated character properties and understand font designation (\af). All other <aprops> are ignored in Word J.
<atext> | <losbrun> | <hisbrun> | <dbrun> |
<losbrun> | \hich \af & <aprops> \dbch \af & <aprops> \loch <ptext> |
<hisbrun> | \loch \af & <aprops> \dbch \af & <aprops> \hich <ptext> |
<dbrun> | \loch \af & <aprops> \hich \af & <aprops> \dbch <ptext> |
Control word | Definition |
\loch | Specifies a run of the characters in the low-ANSI (0x00–0x7F) area. |
\hich | For the characters in the high-ANSI (0x80–-0xFF) area. |
\dbch | Specifies a run of the double-byte characters. |
Word J writes out associated character properties in the styles. In the style sheet, the <dbrun> definition should be used for compatibility with applications that have transparent readers.
{\stylesheet{\loch\af5\hich\af5\dbch\f27\fs20\snext0 Normal;}}
If the composite font definition matches the style, only the control word (\loch, \hich, or \dbch) will be used to distinguish the type of run, along with the font information for transparent readers.
{\fonttbl{\f5\fswiss\fcharset0\fprq2 Arial;}{\f27\froman\fcharset128\fprq1 Mincho;}}
{\stylesheet{\loch\af5\hich\af5\dbch\f27\fs20\snext0 Normal;}}
\pard\plain
{\dbch\f27\fs20 \'82\'b1\'82\'ea\'82\'cd}
{\loch\f5 Test }
{\dbch\f27\'82\'c5\'82\'b7\'81B}
\par}
If one or all of \loch, \hich, and \dbch are missing from the style sheet definition (or the character set doesn't match), Word J will apply appropriate fonts to each character run in the style using the bulleted rules below.
Control word | Font that Word J will apply |
\loch | Same font as \f. |
\hich | Any font whose character set is ANSI_CHARSET. |
\dbch | Any font whose character set is SHIFTJIS_CHARSET. |
If the composite font control words are missing from the character run, Word J will interpret all characters below 0x80 as a \loch run. Characters above or equal to 0x80 will be determined using the following rules:
If the character is in the leading-byte range and the next character is in the trailing-byte range of a double-byte character, it will be treated as a \dbch run (one double-byte character). For example:
\'99\'47à
If the character is in the leading-byte range of a double-byte character but the next character is not in the trailing-byte range, it will be treated as a \hich run (two high-ANSI or low-ANSI characters). For example:
\'99\'FFàÿ
If the character is in the leading-byte range of a double-byte character and is the last character in the run, it will be treated as a \hich run (one high-ANSI character). For example:
\'99\parà
If the character is not in the leading-byte range of a double-byte character, it will be treated as a \hich run (one high-ANSI character). For example:
\'FFàÿ