[tesseract-ocr] push by zde...@gmail.com - fix Issue 1398 on 2015-02-06 22:47 GMT

3 views
Skip to first unread message

tesser...@googlecode.com

unread,
Feb 6, 2015, 5:47:33 PM2/6/15
to tesserac...@googlegroups.com
Revision: 09b0c91fc9bd
Author: Zdenko Podobný <zde...@gmail.com>
Date: Fri Feb 6 22:44:58 2015 UTC
Log: fix Issue 1398

https://code.google.com/p/tesseract-ocr/source/detail?r=09b0c91fc9bd

Modified:
/api/baseapi.cpp

=======================================
--- /api/baseapi.cpp Thu Sep 18 01:10:17 2014 UTC
+++ /api/baseapi.cpp Fri Feb 6 22:44:58 2015 UTC
@@ -1477,11 +1477,7 @@
do {
const char *grapheme = res_it->GetUTF8Text(RIL_SYMBOL);
if (grapheme && grapheme[0] != 0) {
- if (grapheme[1] == 0) {
- hocr_str += HOcrEscape(grapheme);
- } else {
- hocr_str += grapheme;
- }
+ hocr_str += HOcrEscape(grapheme);
}
delete []grapheme;
res_it->Next(RIL_SYMBOL);
@@ -1945,8 +1941,8 @@
* Sets Dict::probability_in_context_ function to point to the given
* function.
*
- * @param f A single function that returns the probability of the current
- * "character" (in general a utf-8 string), given the context of a previous
+ * @param f A single function that returns the probability of the current
+ * "character" (in general a utf-8 string), given the context of a previous
* utf-8 string.
*/
void TessBaseAPI::SetProbabilityInContextFunc(ProbabilityInContextFunc f) {
Reply all
Reply to author
Forward
0 new messages