File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1477,11 +1477,7 @@ char* TessBaseAPI::GetHOCRText(int page_number) {
1477
1477
do {
1478
1478
const char *grapheme = res_it->GetUTF8Text (RIL_SYMBOL);
1479
1479
if (grapheme && grapheme[0 ] != 0 ) {
1480
- if (grapheme[1 ] == 0 ) {
1481
- hocr_str += HOcrEscape (grapheme);
1482
- } else {
1483
- hocr_str += grapheme;
1484
- }
1480
+ hocr_str += HOcrEscape (grapheme);
1485
1481
}
1486
1482
delete [] grapheme;
1487
1483
res_it->Next (RIL_SYMBOL);
@@ -1945,8 +1941,8 @@ void TessBaseAPI::SetDictFunc(DictFunc f) {
1945
1941
* Sets Dict::probability_in_context_ function to point to the given
1946
1942
* function.
1947
1943
*
1948
- * @param f A single function that returns the probability of the current
1949
- * "character" (in general a utf-8 string), given the context of a previous
1944
+ * @param f A single function that returns the probability of the current
1945
+ * "character" (in general a utf-8 string), given the context of a previous
1950
1946
* utf-8 string.
1951
1947
*/
1952
1948
void TessBaseAPI::SetProbabilityInContextFunc (ProbabilityInContextFunc f) {
You can’t perform that action at this time.
0 commit comments