Hi,
We have a little problem with the search. Sometimes words get highlighted, sometimes not. They are more or less at the same position at different pages. See the screenshots. We use the default search which comes with MobileReaderControl.js:
searchText: function (pattern, searchUp) {
var pageResults = [];
var me = this;
if (pattern !== '') {
var mode = me.docViewer.SearchMode.e_page_stop | me.docViewer.SearchMode.e_highlight;
if (searchUp) {
mode = mode | me.docViewer.SearchMode.e_search_up;
}
me.docViewer.textSearchInit(pattern, mode, false,
// onSearchCallback
function (result) {
if (result.resultCode === Text.ResultCode.e_found) {
pageResults.push(result.page_num);
me.docViewer.displaySearchResult(result, _(me.jumpToFound).bind(me));
} else if (result.resultCode === Text.ResultCode.e_done) {
alert(i18n.t("endOfDocument"));
}
});
}
},
.
When I debug "result", the quads is an empty array for the not working terms.
Best Regards,
Volker