Avoids HTML escaping.

This commit is contained in:
Sundar M. Vaidya 2014-08-25 11:00:55 +05:45 committed by Tom Morris
parent b1e4a82b0b
commit 858f4b75ce

View File

@ -1732,13 +1732,13 @@ char* TessBaseAPI::GetHOCRTSVText(int page_number) {
hocr_str += "\t";
do {
const char *grapheme = res_it->GetUTF8Text(RIL_SYMBOL);
if (grapheme && grapheme[0] != 0) {
if (grapheme[1] == 0) {
hocr_str += HOcrEscape(grapheme);
} else {
// if (grapheme && grapheme[0] != 0) {
// if (grapheme[1] == 0) {
// hocr_str += HOcrEscape(grapheme);
// } else {
hocr_str += grapheme;
}
}
// }
// }
delete []grapheme;
res_it->Next(RIL_SYMBOL);
} while (!res_it->Empty(RIL_BLOCK) && !res_it->IsAtBeginningOf(RIL_WORD));