Ray Smith
2c837dffc3
Result of clang tidy on recent merge
2016-11-07 10:46:33 -08:00
Zdenko Podobný
916897da1b
print text2image info to stdout instead of strerr
2016-09-01 13:38:06 +02:00
Stefan Weil
6ec1a0a09b
fileio: Replace assert with tprintf() and exit(1)
...
Assertions are good for programming errors, but not for wrong user input.
The new code no longer needs File::ReadFileToStringOrDie, so remove that
method.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-08-30 07:13:56 +02:00
Stefan Weil
3420acabe5
text2image: Add linefeed to error message
...
This changes the error message for a missing font from
Could not find font named Times New Roman.Please correct --font arg.
(missing space after first sentence) to
Could not find font named Times New Roman.
Please correct --font arg.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-08-28 21:33:52 +02:00
jm
b69561c802
fixed #390 by introducing new rotate_image flag
2016-08-15 18:16:35 +02:00
amitdo
724fb894ac
Check that pango's suggested font name is not an empty string
...
On msys2 pango seems to always returns empty string for the suggested
font. It's a good idea to check that the string is not empty before
printing it - on all platforms.
2016-06-19 13:40:17 +03:00
Amit Dovev
034d666e7a
Replace use of TLOG_FATAL() with tprintf() and exit(1) ( #349 )
...
Asserts should not be used for missing or invalid input in the command
line! This leads to a bad UX.
2016-06-16 12:10:53 +03:00
Shreeshrii
c3a7fab349
Replace asserts with tprintf() and exit(1)
...
Asserts should not be used for missing or invalid input in the command
line! This leads to a bad UX.
2016-06-14 14:35:05 +03:00
Ray Smith
19c26f0646
Removed warning about ligatures and fixed root font dir
2015-07-10 15:56:33 -07:00
Ray Smith
4c7ab0caea
Fixed font lists, improved wordlist management
2015-06-12 10:56:40 -07:00
Ray Smith
941d87057e
Fixed training build
2015-05-13 17:46:58 -07:00
Ray Smith
6be25156f7
Major updates to training system as a result of extensive testing on 100 languages
2015-05-12 18:04:31 -07:00
Zdenko Podobný
769fef8c96
fix training tools build
2014-08-13 22:07:44 +02:00
theraysmith@gmail.com
9f4d6fd668
Added ability to just list available fonts for text, and to underline words for training
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1142 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-08-11 23:19:06 +00:00
theraysmith@gmail.com
97080412fd
Bunch of minor bug fixes/cleanups
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1106 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-05-21 15:48:48 +00:00
theraysmith@gmail.com
cda8e748b1
Fixed some formatting issues
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1083 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-04-25 01:25:42 +00:00
theraysmith@gmail.com
42bfdc21d8
Fixed issue 1134
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1082 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-04-25 01:07:26 +00:00
theraysmith@gmail.com
84e0f6470f
Fixed issue 1132
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1081 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-04-24 21:46:57 +00:00
theraysmith@gmail.com
f244ab3fc6
New training tool text2image
...
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@965 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2014-01-09 18:04:20 +00:00