Stefan Weil
6b1e709b19
Fix Doxygen comments for void functions
...
Void functions should not use @return. It causes compiler warnings
like this one:
src/classify/intproto.cpp:326:5: warning:
'@return' command used in a comment that is attached to a function
returning void [-Wdocumentation]
Some non-void functions also were documented with @return none.
Fix those comments, too.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-14 21:57:17 +02:00
Stefan Weil
caa04882fd
normmatch: Remove unused private function
...
PrintNormMatch was unused. Remove it and remove also an unused prototype.
Make the only remaining private function NormEvidenceOf static.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-14 20:56:04 +02:00
Nick White
068eb4c35d
Add different classes to hocr output depending on BlockType
...
These classes are taken from the hOCR specification, and seem
to map well onto the BlockType types. There are probably more that
could be added.
2019-05-14 13:25:08 +01:00
Egor Pugin
b9b74a6942
Update sw build.
2019-05-13 01:54:23 +03:00
zdenop
746674fcd5
Merge pull request #2430 from stweil/fix
...
Fix reading of parameter from traineddata normproto component and make function independent of locale
2019-05-12 15:59:41 +02:00
Stefan Weil
5d92fbf010
Replace sscanf by std::istringstream
...
Using std::istringstream allows conversion of string to float
independent of the current locale setting.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-12 15:04:30 +02:00
Stefan Weil
c76ceafcdf
Fix reading of parameter from traineddata normproto component
...
The NonEssential parameter was wrongly derived from linear_token instead
of essential_token and therefore always set to true.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-12 14:43:58 +02:00
Stefan Weil
c07bc4e014
Fix Doxygen comment
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-12 08:55:23 +02:00
Stefan Weil
c8e96e2c02
Fix cast from pointer to integer type
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-12 08:54:46 +02:00
Zdenko Podobný
3f4dcf3c8b
cmake: uninstall target
2019-05-08 19:19:26 +02:00
zdenop
a94334a255
cmake: fix build without pkg-config (issue #2424 )
2019-05-08 18:49:48 +02:00
Zdenko Podobný
68ca3518be
autotools: remove list of traineddata files
2019-05-08 15:36:58 +02:00
zdenop
28cfaaae43
Merge pull request #2423 from jbarlow83/fix-cppflags
...
Fix CPPFLAGS configuration for icu4c and libarchive
2019-05-07 11:28:59 +02:00
James R. Barlow
403361701a
Fix CPPFLAGS configuration for icu4c and libarchive missing from configure.ac
2019-05-07 02:01:20 -07:00
zdenop
7a5b9b8fcd
ScrollView: remove custom implementation of GetAddrInfo
2019-05-04 15:16:41 +02:00
zdenop
5e01f74648
remove unused include
2019-05-04 15:14:54 +02:00
zdenop
83e92e0179
Merge pull request #2422 from stweil/include
...
tesscallback: Remove unused code
2019-05-04 12:20:23 +02:00
Stefan Weil
aba037329a
tesscallback: Remove more unused code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-04 11:05:50 +02:00
Stefan Weil
57ff92e4bf
tesscallback: Remove unused code
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-02 22:14:04 +02:00
zdenop
9192c3afe2
correct tessdata comment in baseapi.h
2019-05-02 08:43:04 +02:00
zdenop
7e48368a5e
Merge pull request #2421 from stweil/includes
...
universalambigs: Add missing include file
2019-05-02 08:36:49 +02:00
zdenop
39d3824c78
Merge pull request #2420 from stweil/locale
...
Fix more locale dependencies
2019-05-02 08:31:41 +02:00
zdenop
4b77d9e806
Merge pull request #2419 from stweil/typos
...
Fix some typos (most found and fixed by codespell)
2019-05-02 08:29:13 +02:00
Stefan Weil
cd749be473
universalambigs: Add missing include file
...
This allows fixing two compiler warnings from clang++:
src/ccutil/universalambigs.cpp:23:19: warning: no previous extern declaration for non-static variable 'kUniversalAmbigsFile' [-Wmissing-variable-declarations]
src/ccutil/universalambigs.cpp:19019:18: warning: no previous extern declaration for non-static variable 'ksizeofUniversalAmbigsFile' [-Wmissing-variable-declarations]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-02 07:36:31 +02:00
Stefan Weil
4fbc0a257b
commandlineflags: Replace strtod by std::stringstream
...
Using std::stringstream allows conversion of double to string
independent of the current locale setting.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-02 07:33:46 +02:00
Stefan Weil
d047fa1d1b
paramsd: Replace strtod by std::stringstream
...
Using std::stringstream allows conversion of double to string
independent of the current locale setting.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-02 07:33:46 +02:00
Stefan Weil
e3860e45b7
clusttool: Replace strtof by std::stringstream
...
Using std::stringstream allows conversion of float to string
independent of the current locale setting.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-02 07:33:45 +02:00
Stefan Weil
ed45656ec8
clusttool: Remove unused code and some global functions
...
* WriteProtoList is unused. Remove it.
* ReadNFloats, WriteNFloats and WriteProtoStyle are only used locally,
so make them local.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-02 07:33:45 +02:00
Stefan Weil
28a521fec2
Fix some typos (most found and fixed by codespell)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-05-01 20:30:41 +02:00
zdenop
41f50b19bb
fix crash in case of missing PNG support in Leptonica see #2333
2019-05-01 19:51:54 +02:00
zdenop
90aef80dd7
fix documentation about datapath: ending "/" is not relevant
2019-05-01 11:37:50 +02:00
Zdenko Podobný
087576f2d9
cmake: fix linux build
2019-04-29 18:00:03 +02:00
Jeff Breidenbach
546a9e81eb
fix #1900 : intraword spacing for slightly better pdf copy-paste performance
2019-04-29 11:28:30 +02:00
zdenop
137e6de56f
Print info when uzn file is used.
2019-04-28 19:06:38 +02:00
zdenop
0fe929010a
cmake: fixes #2337 Android cross-build
2019-04-24 21:42:58 +02:00
Zdenko Podobný
80e54e401d
fix spelling
2019-04-24 15:35:22 +02:00
Zdenko Podobný
832c257771
remove unused variable
2019-04-24 14:55:35 +02:00
Stefan Weil
b7bc71e987
Fix build for Windows
...
* winsock2.h is case sensitive, lower case is required for cross build.
* ws2tcpip.h is required for addrinfo.
* FreeAddrInfo conflicts with existing freeaddrinfo, so rename it.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-24 11:24:47 +02:00
zdenop
63448de640
cmake: remove host.h from installation, remove definition of NOMINMAX and report used C++ standard
2019-04-23 23:05:26 +02:00
zdenop
129fe95390
svutil.cpp: fix windows build
2019-04-23 23:03:28 +02:00
zdenop
7bacc8852b
Merge branch 'master' of https://github.com/tesseract-ocr/tesseract
2019-04-23 22:01:30 +02:00
zdenop
5c6ac61fe2
remove unused includes
2019-04-23 20:59:36 +02:00
zdenop
27f0f2ecea
MSVS support inttypes.h from VS 2015
2019-04-23 20:45:14 +02:00
zdenop
db08786d2d
Merge pull request #2403 from stweil/includes
...
Remove host.h from public API and clean platform.h
2019-04-23 08:00:48 +02:00
Stefan Weil
708511adcb
Only include windows.h using host.h
...
host.h sets the macros NOMINMAX and WIN32_LEAN_AND_MEAN which must be
set before including windows.h.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-22 21:51:07 +02:00
Stefan Weil
53f1265362
Clean macros in platform.h
...
* Remove unused macros ultoa, SIGNED.
* Move macros NOMINMAX and WIN32_LEAN_AND_MEAN to host.h
because they are used when including windows.h.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-22 21:51:07 +02:00
Stefan Weil
3bd61bfae4
svutil: Clean include file
...
* Remove MIN, MAX macros. They are unused.
* Include windows.h indirectly by including host.h.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-22 21:51:07 +02:00
Stefan Weil
e12b99d49b
Remove host.h from Tesseract API
...
It is not needed by other API header files.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-22 21:51:07 +02:00
Stefan Weil
8a34da027f
Fix typo in description
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-22 21:50:37 +02:00
zdenop
311a816af9
Merge pull request #2402 from Shreeshrii/master
...
fix the coordinates for EOL tab
2019-04-22 16:41:12 +02:00