PhoneticGuide class
PhoneticGuide class
Represents Phonetic Guide.
Properties
Name | Description |
---|---|
base_text | Gets base text of the phonetic guide. |
ruby_text | Gets ruby text of the phonetic guide. |
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)
phonetic_guide = runs[0].phonetic_guide
self.assertEqual('base', phonetic_guide.base_text)
self.assertEqual('ruby', phonetic_guide.ruby_text)
See Also
- module aspose.words