phonetic_guide property
Run.phonetic_guide property
Gets a Run.phonetic_guide object.
@property
def phonetic_guide(self) -> aspose.words.PhoneticGuide:
...
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
- class Run