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
Shree
f8fba6362b
fix the coordinates for EOL tab
2019-04-22 09:54:20 +00:00
zdenop
3f9bb6626a
cmake: show configuration summary
2019-04-22 09:06:22 +02:00
zdenop
21838b0e7a
cmake: add detection of AVX, AVX2, SSE41
2019-04-22 09:05:55 +02:00
zdenop
b7065e2d40
fix finding tiffio.h cmake&clang on windows
2019-04-22 08:51:06 +02:00
zdenop
3ec7c22a87
fix missing EOL
2019-04-22 08:49:55 +02:00
zdenop
2eb7b575d5
Merge branch 'master' of https://github.com/tesseract-ocr/tesseract
2019-04-22 08:48:21 +02:00
zdenop
6e55051706
extend ignore list
2019-04-22 08:48:07 +02:00
zdenop
c7c11f798f
Merge pull request #2401 from stweil/includes
...
Don't include windows.h from platform.h
2019-04-21 22:36:27 +02:00
Stefan Weil
09255ebe44
Don't include windows.h from platform.h
...
This partially reverts commit c150b9832d
.
Now params.cpp includes host.h which also gets the definition for MAX_PATH.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-21 22:20:13 +02:00
zdenop
bff6aaf302
Increase version number because of backward not compatible API code changes
2019-04-20 19:32:22 +02:00
zdenop
6781d78211
Merge pull request #2399 from stweil/pgedit
...
pgedit: Remove unused global functions
2019-04-20 19:26:02 +02:00
zdenop
9434193686
Merge pull request #2400 from stweil/locale
...
Replace more snprintf by std::stringrenderer
2019-04-20 19:25:50 +02:00
Stefan Weil
4ac1fad18a
pdfrenderer: Replace snprintf by std::stringstream
...
Using std::stringstream allows conversion of float to string
independent of the current locale setting.
Some snprintf statements are not needed at all because a constant string
can be appended directly.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-20 19:05:29 +02:00
Stefan Weil
07d5365a1f
baseapi: Use std::stringstream to format float values
...
Using std::stringstream allows conversion of float to string
independent of the current locale setting.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-20 19:05:29 +02:00
Stefan Weil
743fc2562d
Remove unneeded include statements for pgedit.h
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-20 19:00:07 +02:00
Stefan Weil
26dd0b82bf
pgedit: Remove unused global functions
...
pgeditor_show_point is unused, so remove it completely.
Some more functions are only used locally, so make them static functions.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-20 19:00:07 +02:00
zdenop
47598fa208
Merge pull request #2396 from stweil/locale
...
Replace sscanf by std::stringstream
2019-04-19 11:27:34 +02:00
Stefan Weil
217c2530e6
Remove strtofloat
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-19 11:19:04 +02:00
Stefan Weil
7c3f9000cd
Replace sscanf by std::stringstream
...
Using std::stringstream allows working with the C locale, independent
of the current locale settings.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-19 11:19:04 +02:00
Stefan Weil
4194b93e3a
unittest: Add missing unittests to Makefile.am as comments
...
This gives a good overview of the missing unittests.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-19 11:14:43 +02:00
zdenop
f19f0eabff
Merge pull request #2394 from stweil/unittest
...
unittest: Fix and enable params_model_test
2019-04-18 21:34:45 +02:00
Stefan Weil
5529a5db11
unittest: Fix and enable params_model_test
...
This needs the latest test submodule.
The test uses LoadFromFile which is not used otherwise, so remove that
function from class ParamsModel.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-18 17:06:48 +02:00
Egor Pugin
b1078dd6e5
Poke sw build on appveyor.
2019-04-14 19:15:11 +03:00
zdenop
88b41bcbb5
Merge pull request #2388 from stweil/locale
...
Fix some locale dependencies
2019-04-14 16:28:06 +02:00
Stefan Weil
a1ffcd3654
Use std::stringstream for add_str_double
...
Using std::stringstream allows conversion of double to string
independent of the current locale setting.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-14 16:16:16 +02:00
Stefan Weil
aa64a63f69
Use std::stringstream to generate PDF output
...
Using std::stringstream simplifies the code and allows conversion of
double to string independent of the current locale setting.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-14 16:15:39 +02:00
Stefan Weil
78a957b989
Remove spaces a line endings
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-13 18:54:42 +02:00
Stefan Weil
12ca2513d4
Revert "e" flag for fopen
...
clang-tidy added it in commit ac0b191f6b
.
The "e" flag is an extension for glibc which sets the O_CLOEXEC flag,
so the file handle is not leaked to child processes. It is not needed
here.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-04-13 18:53:57 +02:00