public class PhoneticGuide
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBaseText()
Gets base text of the phonetic guide.
|
java.lang.String |
getRubyText()
Gets ruby text of the phonetic guide.
|
public java.lang.String getBaseText()
Examples:
Shows how to get properties of the phonetic guide.
Document doc = new Document(getMyDir() + "Phonetic guide.docx");
RunCollection runs = doc.getFirstSection().getBody().getFirstParagraph().getRuns();
// Use phonetic guide in the Asian text.
Assert.assertEquals(true, runs.get(0).isPhoneticGuide());
PhoneticGuide phoneticGuide = runs.get(0).getPhoneticGuide();
Assert.assertEquals("base", phoneticGuide.getBaseText());
Assert.assertEquals("ruby", phoneticGuide.getRubyText());
public java.lang.String getRubyText()
Examples:
Shows how to get properties of the phonetic guide.
Document doc = new Document(getMyDir() + "Phonetic guide.docx");
RunCollection runs = doc.getFirstSection().getBody().getFirstParagraph().getRuns();
// Use phonetic guide in the Asian text.
Assert.assertEquals(true, runs.get(0).isPhoneticGuide());
PhoneticGuide phoneticGuide = runs.get(0).getPhoneticGuide();
Assert.assertEquals("base", phoneticGuide.getBaseText());
Assert.assertEquals("ruby", phoneticGuide.getRubyText());