This commit is contained in:
Jim O'Regan 2015-07-20 10:08:15 +01:00
commit 541408763d
5 changed files with 8 additions and 6 deletions

2
README
View File

@ -1,7 +1,7 @@
Note that this is a text-only and possibly out-of-date version of the Note that this is a text-only and possibly out-of-date version of the
wiki ReadMe, which is located at: wiki ReadMe, which is located at:
https://github.com/tesseract-ocr/tesseract/blob/master/README.md https://github.com/tesseract-ocr/tesseract/blob/master/README
Introduction Introduction
============ ============

View File

@ -1490,8 +1490,10 @@ char* TessBaseAPI::GetHOCRText(int page_number) {
hocr_str.add_str_int(" ", bottom); hocr_str.add_str_int(" ", bottom);
hocr_str.add_str_int("; x_wconf ", res_it->Confidence(RIL_WORD)); hocr_str.add_str_int("; x_wconf ", res_it->Confidence(RIL_WORD));
if (font_info) { if (font_info) {
hocr_str += "; x_font "; if (font_name) {
hocr_str += HOcrEscape(font_name); hocr_str += "; x_font ";
hocr_str += HOcrEscape(font_name);
}
hocr_str.add_str_int("; x_fsize ", pointsize); hocr_str.add_str_int("; x_fsize ", pointsize);
} }
hocr_str += "'"; hocr_str += "'";

View File

@ -64,7 +64,7 @@ TESS_API TessResultRenderer* TESS_CALL TessBoxTextRendererCreate(const char* out
TESS_API void TESS_CALL TessDeleteResultRenderer(TessResultRenderer* renderer) TESS_API void TESS_CALL TessDeleteResultRenderer(TessResultRenderer* renderer)
{ {
delete [] renderer; delete renderer;
} }
TESS_API void TESS_CALL TessResultRendererInsert(TessResultRenderer* renderer, TessResultRenderer* next) TESS_API void TESS_CALL TessResultRendererInsert(TessResultRenderer* renderer, TessResultRenderer* next)

View File

@ -27,7 +27,7 @@
# #
# All the rest is auto-generated. # All the rest is auto-generated.
if [ "$1" == "clean" ]; then if [ "$1" = "clean" ]; then
echo "Cleaning..." echo "Cleaning..."
rm configure aclocal.m4 rm configure aclocal.m4
rm m4/* rm m4/*

View File

@ -39,7 +39,7 @@ extern INT_VAR_H(classify_integer_matcher_multiplier, 10,
#include "cutoffs.h" #include "cutoffs.h"
namespace tesseract { namespace tesseract {
class UnicharRating; struct UnicharRating;
} }
struct CP_RESULT_STRUCT { struct CP_RESULT_STRUCT {