PhoneticGuide

Inheritance: java.lang.Object

public class PhoneticGuide

Represents Phonetic Guide.

Methods

MethodDescription
getBaseText()Gets base text of the phonetic guide.
getRubyText()Gets ruby text of the phonetic guide.

getBaseText()

public String getBaseText()

Gets base text of the phonetic guide.

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());
 Assert.assertEquals("base", runs.get(0).getPhoneticGuide().getBaseText());
 Assert.assertEquals("ruby", runs.get(0).getPhoneticGuide().getRubyText());
 

Returns: java.lang.String - Base text of the phonetic guide.

getRubyText()

public String getRubyText()

Gets ruby text of the phonetic guide.

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());
 Assert.assertEquals("base", runs.get(0).getPhoneticGuide().getBaseText());
 Assert.assertEquals("ruby", runs.get(0).getPhoneticGuide().getRubyText());
 

Returns: java.lang.String - Ruby text of the phonetic guide.