base_text property

PhoneticGuide.base_text property

Gets base text of the phonetic guide.

@property
def base_text(self) -> str:
    ...

Examples

Shows how to get properties of the phonetic guide.

doc = aw.Document(file_name=MY_DIR + 'Phonetic guide.docx')
runs = doc.first_section.body.first_paragraph.runs
# Use phonetic guide in the Asian text.
self.assertEqual(True, runs[0].is_phonetic_guide)
self.assertEqual('base', runs[0].phonetic_guide.base_text)
self.assertEqual('ruby', runs[0].phonetic_guide.ruby_text)

See Also