Stefan Weil
b3bd23edb7
Remove whitespace at line endings
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-19 13:53:31 +01:00
Stefan Weil
b95598a0b1
Merge pull request #2070 from pndaza/master
...
add missed letters ( ၌ ၍ ၎ ၏ ) and symbols ( ၊ ။ ) - 0x104a to 0x104f -
2019-02-19 12:22:53 +01:00
Egor Pugin
24a828be58
Merge pull request #2252 from stweil/macos
...
Enable CI build for macOS and fix a compiler warning by using __builtin_trap
2019-02-18 15:08:56 +03:00
Stefan Weil
38861be639
Use __builtin_trap instead of null pointer dereference to abort
...
This fixes a warning from Apple's clang compiler:
[ 34%] Building CXX object CMakeFiles/libtesseract.dir/src/ccutil/errcode.cpp.o
/Users/travis/build/stweil/tesseract/src/ccutil/errcode.cpp:83:7: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]
*reinterpret_cast<int*>(0) = 0;
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/travis/build/stweil/tesseract/src/ccutil/errcode.cpp:83:7: note: consider using __builtin_trap() or qualifying pointer with 'volatile'
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-18 10:49:51 +01:00
Stefan Weil
4bd18c4c1b
Travis: Enable continuous integration build for macOS
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-18 10:49:51 +01:00
zdenop
a93ef8e0ae
Release candidate 1 for 4.1.0
2019-02-17 20:53:05 +01:00
zdenop
441779de51
fix showing git tag for cmake build
2019-02-17 20:52:40 +01:00
zdenop
a2481de926
Revert "cmake workaround for #2246 for clang"
...
This reverts commit 4d8bbe2c97
.
2019-02-17 16:34:39 +01:00
Stefan Weil
ddea230b1b
Don't compute function tables at compile time with clang
...
The current code fails to compile with clang compilers on Linux and macOS.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-17 08:38:42 +01:00
Egor Pugin
3480f1e5d9
[sw] Fix clang-cl build.
2019-02-17 01:15:45 +03:00
zdenop
e54c06f8d4
Merge branch 'master' of https://github.com/tesseract-ocr/tesseract
2019-02-16 17:56:18 +01:00
zdenop
4d8bbe2c97
cmake workaround for #2246 for clang
2019-02-16 17:55:45 +01:00
zdenop
48be357688
Merge pull request #2220 from cjmayo/man_config
...
Man page description of configs and parameters
2019-02-16 13:53:47 +01:00
zdenop
15f2a4b2c1
Merge pull request #2231 from Shreeshrii/wordstr
...
Add renderer to create WordStr box files from images
2019-02-16 13:48:06 +01:00
zdenop
c78e94729d
Merge pull request #2247 from stweil/fix
...
Fix check for images which are too small to scale
2019-02-16 13:22:03 +01:00
Egor Pugin
3e254fcb33
Merge pull request #2248 from stweil/man
...
Improve robustness of manpage build
2019-02-16 12:58:59 +03:00
Stefan Weil
7a1c6fe6f3
Fix typo
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-16 09:34:17 +01:00
Stefan Weil
6e37389fcd
doc: Don't fail if manpages fail to build
...
Even with installed asciidoc and xsltproc the build will fail if
xsltproc cannot find the required stylesheet
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl .
Ignore such errors until there is a better check in configure.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-15 22:19:52 +01:00
Stefan Weil
42ea432418
configure: Check for xsltproc (needed to generate manpages)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-15 22:19:52 +01:00
zdenop
7f65afbaeb
cmake check for avaible C++ standard. Mininum reqiered standard is C++11
2019-02-15 17:50:45 +01:00
Stefan Weil
862322c18c
Fix check for images which are too small to scale
...
Images with width == min_width are not too small.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-15 13:53:11 +01:00
Stefan Weil
5fb2509855
Merge pull request #2241 from felixonmars/patch-1
...
Fix a typo in Doxyfile
2019-02-14 21:20:49 +01:00
Felix Yan
d35f119c68
Fix a typo in Doxyfile
2019-02-15 04:07:35 +08:00
zdenop
b67ff533cd
Merge pull request #2227 from rrrapha/doc-makefile
...
Avoid gmake-specific pattern substitution in Makefile.am.
2019-02-14 13:06:52 +01:00
zdenop
6256df1d68
Merge pull request #2238 from stweil/cplusplus14
...
Use C++14 if supported and optionally improve lookup tables
2019-02-14 13:04:04 +01:00
Stefan Weil
50f42ebbfc
Update test submodule
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-14 11:50:57 +01:00
Stefan Weil
c0523ee5a2
Fix compiler warning
...
g++ warning:
src/lstm/functions.h:152:35: warning:
unused parameter ‘x’ [-Wunused-parameter]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-14 10:29:39 +01:00
Stefan Weil
3556152412
Compute function tables at compile time
...
This requires C++ 14. Older compilers still use the old code.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-14 10:29:39 +01:00
Stefan Weil
fd6e281c61
Use C++14 compiler if possible
...
This allows using new features of C++14 conditionally.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-13 11:05:34 +01:00
Stefan Weil
b3327f4e90
Remove unneeded checks for snprintf
...
snprintf is a standard function which should be available
on all relevant platforms, so those checks are unnecessary.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-13 08:04:52 +01:00
zdenop
f627b95a4c
Merge pull request #2235 from stweil/tables
...
Simplify tanh and logistic functions and precompute function tables
2019-02-12 17:39:01 +01:00
Stefan Weil
f491eb6188
Simplify tanh and logistic functions and precompute function tables
...
Both functions are called very often, so computing the table values
at program start should be faster than computing them on demand.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-12 12:04:08 +01:00
Shree Devi Kumar
f3362a4b5b
Add renderer to create WordStr box files from images
2019-02-10 19:59:17 +00:00
Egor Pugin
7ca27bb14a
Update appveyor.yml
2019-02-10 18:10:12 +03:00
zdenop
2ae65b2493
Merge pull request #2216 from Shreeshrii/lstmbox
...
Lstmbox
2019-02-10 13:53:41 +01:00
Shree Devi Kumar
311053681c
put common code in AddBoxToLSTM
2019-02-10 09:16:45 +00:00
zdenop
e51f1885e6
Merge pull request #2229 from stweil/warn
...
Fix some compiler warnings
2019-02-10 08:20:23 +01:00
zdenop
d0ce0a45f2
Merge pull request #2228 from stweil/perf_count
...
OpenCL: Remove PERF_COUNT framework
2019-02-10 08:18:27 +01:00
zdenop
366923d851
Merge pull request #2230 from Shreeshrii/resit
...
fix resultiterator_test for extra \n
2019-02-10 08:17:55 +01:00
Shree Devi Kumar
b51c1bf05a
change to const char* as suggested by @stweil
2019-02-10 05:13:18 +00:00
Shree Devi Kumar
8612170321
fix resultiterator_test for extra \n
...
resultiterator_test.cc
2019-02-10 04:58:40 +00:00
Stefan Weil
0c9f7db536
Fix compiler warning (-Wimplicit-fallthrough)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-09 16:53:44 +01:00
Stefan Weil
d91c316ab1
FontInfo: Make sure that deleted member variables can no longer be used
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-09 16:32:20 +01:00
Stefan Weil
877e62db55
Fix compiler warning (-Wmaybe-uninitialized)
...
gcc warning:
src/lstm/recodebeam.cpp:270:41: warning: ‘current_char’ may be used uninitialized in this function [-Wmaybe-uninitialized]
It's a false positive, but setting the variable to 0 satisfies the compiler.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-09 16:32:20 +01:00
Stefan Weil
33f6dc2a67
Fix compiler warnings (-Wformat-truncation=)
...
gcc warnings:
src/viewer/scrollview.cpp:404:31: warning: ‘%s’ directive output may be
truncated writing up to 4095 bytes into a region of size between 4084 and 4093 [-Wformat-truncation=]
src/viewer/scrollview.cpp:572:31: warning: ‘%s’ directive output may be
truncated writing up to 4095 bytes into a region of size between 4084 and 4093 [-Wformat-truncation=]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-09 16:32:20 +01:00
Stefan Weil
2a355ea103
Fix compiler warnings (-Wimplicit-fallthrough)
...
gcc warnings:
src/ccmain/docqual.cpp:734:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
src/ccmain/docqual.cpp:764:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
src/ccmain/docqual.cpp:782:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
[...]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-09 16:32:20 +01:00
Stefan Weil
aa2dcca295
Fix compiler warnings (-Wstringop-truncation)
...
gcc warnings:
src/api/tesseractmain.cpp:252:14: warning:
‘char* strncpy(char*, const char*, size_t)’ specified bound 255
equals destination size [-Wstringop-truncation]
src/ccutil/unicharset.h:66:12: warning:
‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 30 bytes from a string of length 30 [-Wstringop-truncation]
src/ccutil/unicharset.cpp:806:12: warning:
‘char* strncpy(char*, const char*, size_t)’ specified bound 64 equals destination size [-Wstringop-truncation]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-09 16:32:09 +01:00
Stefan Weil
d42413dd17
OpenCL: Remove PERF_COUNT framework
...
It was rarely used, but added a lot of code and an unconditional
dependency on openclwrapper.h.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-09 10:58:15 +01:00
Raphael Graf
86b14c32a9
Avoid gmake-specific pattern substitution in Makefile.am.
...
Resolves #2226
2019-02-08 19:39:45 +01:00
Chris Mayo
c3b18cfd27
Improve description of configs and parameters in tesseract(1)
...
Try to make the relationship between configs, -c and --print-parameters
clearer by always using parameter and not variable.
Include the filenames created by each config.
2019-02-06 20:03:51 +00:00