/** * @return the phonetic (ruby) string associated with this run or an empty String if none exists */ public String getPhonetic() { StringBuilder text = new StringBuilder(64); // Grab the text and tabs of the text run // Do so in a way that preserves the ordering XmlCursor c = run.newCursor(); c.selectPath("./*"); while (c.toNextSelection()) { XmlObject o = c.getObject(); if (o instanceof CTRuby) { handleRuby(o, text, true); } } // Any picture text? if (pictureText != null && pictureText.length() > 0) { text.append("\n").append(pictureText).append("\n"); } c.dispose(); return text.toString(); }
/** * Returns the string version of the text, with tabs and * carriage returns in place of their xml equivalents. */ @Override public String text() { StringBuilder text = new StringBuilder(64); // Grab the text and tabs of the text run // Do so in a way that preserves the ordering XmlCursor c = run.newCursor(); c.selectPath("./*"); while (c.toNextSelection()) { XmlObject o = c.getObject(); if (o instanceof CTRuby) { handleRuby(o, text, false); continue; } _getText(o, text); } c.dispose(); return text.toString(); }
XmlCursor c = r.newCursor(); c.selectPath("child::*"); while (c.toNextSelection()) {
int beginTextPos = 0, beginCharPos = 0, textPos = 0, charPos = 0; CTR ctRun = rArray[runPos]; XmlCursor c = ctRun.newCursor(); c.selectPath("./*"); try {
XmlCursor c = run.getCTR().newCursor(); c.selectPath("./*"); while (c.toNextSelection()) {
/** * @return the phonetic (ruby) string associated with this run or an empty String if none exists */ public String getPhonetic() { StringBuilder text = new StringBuilder(64); // Grab the text and tabs of the text run // Do so in a way that preserves the ordering XmlCursor c = run.newCursor(); c.selectPath("./*"); while (c.toNextSelection()) { XmlObject o = c.getObject(); if (o instanceof CTRuby) { handleRuby(o, text, true); } } // Any picture text? if (pictureText != null && pictureText.length() > 0) { text.append("\n").append(pictureText).append("\n"); } c.dispose(); return text.toString(); }
XmlCursor c = run.newCursor(); c.selectPath("./*"); while (c.toNextSelection()) {
XmlCursor c = r.newCursor(); c.selectPath("child::*"); while (c.toNextSelection()) {
/** * Returns the string version of the text, with tabs and * carriage returns in place of their xml equivalents. */ @Override public String text() { StringBuilder text = new StringBuilder(64); // Grab the text and tabs of the text run // Do so in a way that preserves the ordering XmlCursor c = run.newCursor(); c.selectPath("./*"); while (c.toNextSelection()) { XmlObject o = c.getObject(); if (o instanceof CTRuby) { handleRuby(o, text, false); continue; } _getText(o, text); } c.dispose(); return text.toString(); }
XmlCursor c = r.newCursor(); c.selectPath("child::*"); while (c.toNextSelection()) {
XmlCursor c = run.newCursor(); c.selectPath( "./*" ); while ( c.toNextSelection() )
XmlCursor c = run.newCursor(); c.selectPath( "./*" ); while ( c.toNextSelection() )
XmlCursor c = ctr.newCursor(); c.selectPath( "./*" ); while ( c.toNextSelection() )
int beginTextPos = 0,beginCharPos = 0, textPos = 0, charPos = 0; CTR ctRun = paragraph.getRArray(runPos); XmlCursor c = ctRun.newCursor(); c.selectPath("./*"); while(c.toNextSelection()){
int beginTextPos = 0, beginCharPos = 0, textPos = 0, charPos = 0; CTR ctRun = rArray[runPos]; XmlCursor c = ctRun.newCursor(); c.selectPath("./*"); try {
XmlCursor c = ctr.newCursor(); c.selectPath( "./*" ); while ( c.toNextSelection() )
XmlCursor c = ctr.newCursor(); c.selectPath( "./*" ); while ( c.toNextSelection() )
XmlCursor c = run.getCTR().newCursor(); c.selectPath("./*"); while (c.toNextSelection()) {
XmlCursor c = run.getCTR().newCursor(); c.selectPath("./*"); while (c.toNextSelection()) {