PageAnalysis analysis = page.getAnalysis(contents, true);
Collection<PageElementTag> tags = analysis.getTags(PageElementTag.TAG_OTHER_TYPO);
for (PageElementTag tag : tags) {
String chapterId = PageAnalysisUtils.getCurrentChapterId(analysis, tag.getBeginIndex());
if ((suggestionIgnore == null) || (!suggestionIgnore.contains(chapterId))) {
Parameter word = tag.getParameter("word");
Parameter find = tag.getParameter("find");
Parameter replace = tag.getParameter("replace");
Parameter disabled = tag.getParameter("disabled");
if ((word != null) && (find != null) && (replace != null) && (disabled == null)) {
String wordValue = word.getValue();
String findValue = find.getValue();
String replaceValue = replace.getValue();
if ((wordValue != null) && (findValue != null) && (replaceValue != null)) {