Commit Graph

5220 Commits

Author SHA1 Message Date
Egor Pugin
6cc00aa332 Improve some unit tests. 2020-12-28 01:11:13 +03:00
Egor Pugin
0c19e1e14d Allow to construct STRING from nullptr. 2020-12-28 01:10:15 +03:00
Egor Pugin
7519cbe175 Use resize() instead of reserve() in resize_no_init() to match std::vector behavior. Using memory after reserve() is UB. 2020-12-28 01:09:57 +03:00
Egor Pugin
bc49237690 [sw] Misc. 2020-12-27 23:00:28 +03:00
Stefan Weil
2fe1532926 Fix some compiler errors for heap_test (more remaining)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-27 18:30:56 +01:00
Stefan Weil
a61d7ac2ee Add / fix namespace tesseract for unittest
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-27 10:54:43 +01:00
Egor Pugin
868b33bdf0 Fix gitignore pattern. 2020-12-26 22:27:53 +03:00
zdenop
7f354ecca5
Merge pull request #3195 from stweil/pdf
Add const attribute for pdf_ttf
2020-12-26 18:44:37 +01:00
Stefan Weil
289a34a40a Add const attribute for pdf_ttf
That moves its data into the text segment and reduces the total size
slightly:

   text	   data	    bss	    dec	    hex	filename
  39788	    693	      0	  40481	   9e21	old/libtesseract_la-pdfrenderer.o
  40360	     88	      0	  40448	   9e00	new/libtesseract_la-pdfrenderer.o

Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-26 17:51:56 +01:00
Stefan Weil
7dca63caf1 More fixes for namespace tesseract
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-26 17:41:53 +01:00
Stefan Weil
7188b160ae Fix build with --disable-graphics
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-26 17:36:24 +01:00
Egor Pugin
176339f9c9
Restore C++17. 2020-12-26 16:39:20 +03:00
Egor Pugin
87b5471810
[cmake] Try to disable C++17. 2020-12-26 16:24:48 +03:00
Egor Pugin
6f0e3fa28b
Merge pull request #3176 from softana/master
Update Dockerfile
2020-12-26 15:59:47 +03:00
Egor Pugin
aecbf79791 Add missing merge_unicharsets training tool to cmake and sw build. 2020-12-26 15:57:22 +03:00
Stefan Weil
317ef988a0 Add missing namespace prefix for GlobalParams() (fix build for some unit tests)
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-26 13:44:43 +01:00
Egor Pugin
0b975f5193
Update .travis.yml 2020-12-26 15:23:52 +03:00
Stefan Weil
418064f639 Add missing namespace prefix (fix build for merge_unicharsets)
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-26 13:09:39 +01:00
Egor Pugin
b2b2d02167 Another msvc/macos fix attempt. 2020-12-26 15:09:03 +03:00
Egor Pugin
f7c78f97a1 Fix macos build. Add missing header. 2020-12-26 15:00:43 +03:00
Egor Pugin
560560eb35
Try to fix macos build. 2020-12-26 13:40:27 +03:00
Egor Pugin
83544566af
[travis] Update macos image. 2020-12-26 04:28:48 +03:00
Egor Pugin
6a63b0e11e
[cmake] Enable C++17 temporarily. 2020-12-26 04:25:16 +03:00
Egor Pugin
5388d1d6f1
[travis] Upgrade to Ubuntu 18.04. 2020-12-26 04:22:07 +03:00
Egor Pugin
c8b8d266d6 Fix some of vector<bool> cases for msvc. 2020-12-26 04:17:13 +03:00
Egor Pugin
6b22972bc2 Fix linux build. 2020-12-26 04:15:42 +03:00
Egor Pugin
b09fa9b166 [sw] Bump minimal C++ standard to C++17. 2020-12-26 03:48:57 +03:00
Egor Pugin
c3e04abe1e Inherit STRING from std::string. 2020-12-26 03:48:35 +03:00
Egor Pugin
b4495a6bb5 Call base vector::insert() explicitly. 2020-12-26 03:37:21 +03:00
Egor Pugin
4fc467a922 Inherit GenericVector from std::vector. Inherit kdpairs from std::pair. Rewrite some move ctors to modern C++ style. 2020-12-26 03:23:09 +03:00
Egor Pugin
04d3cfcf2f Merge branch 'master' of github.com-egorpugin:tesseract-ocr/tesseract 2020-12-26 00:55:37 +03:00
Egor Pugin
79a86f2582 Move all tesseract symbols into tesseract namespace. Fix include order in many places. 2020-12-26 00:55:30 +03:00
Egor Pugin
a67fa1780f Delete .rc from tesseractmain. 2020-12-26 00:47:51 +03:00
Amit D
e1a3479ddd
Merge pull request #3194 from zdenop/i2551
embed pdf.ttf to tesseract library #2551
2020-12-25 22:37:17 +02:00
zdenop
ceadc4ddb8 remove inline declaration 2020-12-25 16:28:00 +01:00
Egor Pugin
a905e8c1ef Reorder includes. 2020-12-25 18:11:37 +03:00
Egor Pugin
688bb8dfae [cmake] Move include dirs into target include dirs. 2020-12-25 18:06:45 +03:00
Egor Pugin
14d52a79ba Remove .rc files. No need to add them into dll/exe. 2020-12-25 18:06:35 +03:00
Egor Pugin
ceddb7bc83 [cmake] Use source groups for libtess sources. 2020-12-25 17:43:26 +03:00
zdenop
044921267f embed pdf.ttf to tesseract library #2551 2020-12-25 13:20:36 +01:00
Stefan Weil
5ca4e0062d Create new pre-release 5.0.0-alpha-20201224
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-24 09:17:12 +01:00
Stefan Weil
5c579de68a Fix dependency on tmp directory for unittest programs
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-24 08:54:54 +01:00
Stefan Weil
30e3f10b3f Fix tar command for variants which require -j or -z
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-23 20:06:18 +01:00
Stefan Weil
49deadd799 Simplify code for equationdetect_test
It no longer depends on TensorFlow code, so it is now always enabled.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-23 17:03:06 +01:00
Stefan Weil
fef6004e6f Simplify code for cleanapi_test
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-23 17:01:07 +01:00
Stefan Weil
ce8ee86204 Remove unwanted # at EOL
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-23 16:44:23 +01:00
Amit D
c8a5b0ab13
Merge pull request #3191 from stweil/unittest
Fix more unittests for MacOS and add dependencies for unittest
2020-12-23 17:36:47 +02:00
Stefan Weil
2bfa52d517 Force fontconfig pangocairo backend for stringrenderer_test
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-23 12:59:57 +01:00
Stefan Weil
0d1e540267 Force fontconfig pangocairo backend for ligature_table_test
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-23 12:59:57 +01:00
Stefan Weil
4ce4e5ef66 Add more dependencies for unittest
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-23 12:59:57 +01:00