2.5.103 PhRun

The PhRun structure specifies a phonetic text run that is displayed above a text run.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

ichFirst (2 bytes)

ichMom (2 bytes)

cchMom (2 bytes)

ifnt (2 bytes)

A

B

unused1

ichFirst (2 bytes): An unsigned integer that specifies the zero-based index of a character in the phoneticStr field of the associated RichStr (section 2.5.122), where the associated RichStr is the RichStr that contains the rgsPhRun that contains this PhRun (section 2.5.103). The ichFirst field specifies the first character of the phonetic text run. The value of ichFirst MUST be less than the number of characters in the phoneticStr field of the associated RichStr.

ichMom (2 bytes): An unsigned integer that specifies the zero-based index of a character in the str field of the associated RichStr. The ichMom field specifies the location where the phonetic text run begins. The value of ichMom MUST be less than the number of characters in the str field of the associated RichStr.

cchMom (2 bytes): An unsigned integer that specifies the number of characters in the str field of the associated RichStr that this phonetic text run applies to. The value of cchMom MUST be less than or equal to the number of characters in the str field of the associated RichStr.

ifnt (2 bytes): An unsigned integer that specifies the zero-based index of a BrtFont (section 2.4.683) record in the collection of all records directly following BrtBeginFonts (section 2.4.89). The referenced BrtFont specifies the font of the phonetic text run.

A - phType (2 bits): An unsigned integer that specifies a character set used to display the phonetic text run.

Value

Meaning

0x00

The phonetic text run is displayed using the narrow katakana character set. Ignored if the text is not Japanese.

0x01

The phonetic text run is displayed using the wide katakana character set. Ignored if the text is not Japanese.

0x02

The phonetic text run is displayed using the hiragana character set. Ignored if the text is not Japanese.

0x03

No character set conversion is performed to the phonetic text run. Text is displayed as entered.

B - alcH (2 bits): An unsigned integer that specifies the alignment of the phonetic text run.

Value

Meaning

0x00

Left justify All characters of All phonetic text runs above the entire base text.

0x01

Left justify the characters of each phonetic text run above its text run.

0x02

Center the characters of each phonetic text run above its text run.

0x03

Distribute the characters of each phonetic text run above its text run.

unused1 (12 bits):  Undefined. This value MUST be ignored.