Commit Graph

6251 Commits

Author SHA1 Message Date
Kevin Unger
8b4284d28b add missing commas 2023-08-16 13:54:11 +02:00
Kevin Unger
fa50115efc fix citation links 2023-08-16 13:54:11 +02:00
zdenop
ce93692370
Merge pull request #4115 from stweil/citations
Rename BibTex file to please GitHub
2023-08-08 21:28:15 +02:00
Stefan Weil
7c7498c327 Rename BibTex file to please GitHub
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-08-08 16:51:58 +02:00
Stefan Weil
3852f4c8f6 Optimize function ImageFind::FindImages
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-08-08 16:44:16 +02:00
Stefan Weil
2b375fc3d6 Fix comment for function UNICHARSET::set_black_and_whitelist
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-08-08 16:43:36 +02:00
Stefan Weil
77e4eab565 Fix comment for function HOcrEscape
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-08-08 16:43:36 +02:00
Stefan Weil
0768e4ff4c Fix comment
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-07-30 12:43:39 +02:00
Stefan Weil
8fdf20342a Provide more disk space for GitHub action unittest
ubuntu-20.04-gcc-unittest failed because it ran out of disk space.
Removing some unused directories adds more than 30 GiB free disk space.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-07-28 07:17:19 +02:00
Parryword
a726020936 Update ScrollView.java
typo fixed
2023-07-19 20:24:02 +02:00
zdenop
54b9fe4de9 cmake: check_leptonica_tiff_support() works with cmake>=3.25 2023-07-15 19:43:50 +02:00
Stefan Weil
d1abdf353a Remove whitespace at line endings
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-07-13 10:01:59 +02:00
zdenop
b86afd63cf
Merge pull request #4097 from UB-Mannheim/main
Fix some issues which were reported by Coverity Scan
2023-07-12 08:33:33 +02:00
Stefan Weil
82c7999f6c
Merge pull request #4099 from pkubaj/patch-1
Fix build without git clone in cloned directory
2023-07-11 19:54:44 +02:00
pkubaj
9bf4b31012
Fix build without git clone in cloned directory
FreeBSD uses git to manage Ports Tree. Tesseract, when building from the Ports Tree, is built from a tarball that doesn't have .git and then git describe is ran on top of the Ports Tree.
2023-07-11 16:02:23 +00:00
Stefan Weil
f49b6e9f4d
Merge pull request #4098 from hesmar/main
Disable -mfpu=neon for aarch64
2023-07-11 16:45:31 +02:00
hesmar
d7c071197e Disable -mfpu=neon for aarch64
Disable -mfpu command line argument on aarch64, because it is not available in gcc (aarch64)
2023-07-11 16:29:39 +02:00
Stefan Weil
8df11a6af3 Avoid passing objects by value
This fixes several Coverity Scan issues.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-07-11 14:17:51 +02:00
Stefan Weil
675b21cf89 Add missing initialisation in DENORM copy constructor
This fixes a Coverity Scan issue:

    1487976 Uninitialized pointer read

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-07-11 14:16:31 +02:00
Stefan Weil
489f101c7e Create new release 5.3.2
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-07-11 13:54:45 +02:00
luzpaz
cf235ccfed Fix typos
Found via `codespell -q 3 -L bu,eiter,fo,fpr,inout,numer,pixes,thisy`
2023-07-08 08:35:27 +02:00
Amit D
6363975070
Update issue-bug.yml
Debian 12 Bookworm was recently released.
2023-06-28 12:37:15 +03:00
Amit D
bb8803aa03
Update .mailmap 2023-06-23 09:55:03 +03:00
Amit D
24da4c714b
Create config.yml 2023-05-24 22:21:27 +03:00
Stefan Weil
c8abff8df0 Remove old broken GitHub action vcpkg-4.1.1 (fixes issue #4078)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-05-21 15:54:16 +02:00
zdenop
58b75b3fd9 cmake: check if leptonica was build with tiff support 2023-05-10 22:09:49 +02:00
zdenop
d999957fae cmake: provide info about disabled LibArchive and CURL 2023-05-09 21:52:21 +02:00
zdenop
37a9fa9550 cmake: allow to disable tiff (-DDISABLE_TIFF=ON) 2023-05-09 21:51:05 +02:00
zdenop
3e911e4cf5
Merge pull request #4073 from stweil/osd
Abort with error message if OSD is requested with LSTM-only model
2023-05-09 20:51:04 +02:00
zdenop
fbba190d72
Merge pull request #4071 from stweil/clean
Clean code
2023-05-09 20:50:23 +02:00
Stefan Weil
92999505ee Abort with error message if OSD is requested with LSTM-only model
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-05-09 19:24:24 +02:00
Stefan Weil
a9ad3601b8 Avoid conversions from std::string to char* to std::string
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-05-09 18:30:19 +02:00
Stefan Weil
6cb82d8b1d Avoid 32 bit overflow in multiplication (fixes 3 CodeQL CI alerts)
The CodeQL CI reports "Multiplication result converted to larger type".

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-05-09 13:14:10 +02:00
zdenop
c9895dbad4
Merge pull request #4066 from stweil/lstmtraining
Improve format of logging from lstmtraining
2023-05-08 19:33:38 +02:00
zdenop
62962e089b
Merge pull request #4068 from stweil/sprintf
Replace deprecated sprintf
2023-05-08 13:14:57 +02:00
Stefan Weil
6b4eb8cf92 Remove unused code in function fix_rep_char
This also fixes a compiler warning:

    src/ccmain/control.cpp:1694:9: warning: variable 'gap' set but not used [-Wunused-but-set-variable]

Fixes: dbf6197471 ("Major refactor of control.cpp to enable line recognition")
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-05-08 11:09:21 +02:00
Stefan Weil
f2452a68ad Replace deprecated sprintf
Either use snprintf or std::stringstream.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-05-08 10:29:51 +02:00
zdenop
7cc215c9c2
Merge pull request #4067 from stweil/misc
Replace bool array by more compact vector
2023-05-06 10:17:21 +02:00
Stefan Weil
38a49e45b4 Use less digits in filenames of checkpoints written by lstmtraining
lstmtraining had written checkpoints using names like ONB_68.852000_6368_6500.checkpoint.
Now the superfluous '000' is omitted and the name will be ONB_68.852_6368_6500.checkpoint.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-05-05 19:19:03 +02:00
Stefan Weil
41c5db9074 Replace bool array by more compact vector
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-05-05 12:30:52 +02:00
Stefan Weil
0f56340151 Improve format of logging from lstmtraining
- always use C ("classic") locale
- limit output of floating point values to 3 digits
- remove unneeded linefeed after log message "wrote checkpoint"

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-05-05 12:28:24 +02:00
ben417
ed69e574a9
Support for Sgaw and W Pwo Karen languages in the Myanmar validator. (#4065)
1. Added 0x102c and 0x1062 in the tone mark section, in Karen these can
be tones too.

2. Added the optional 0x103a, 0x1037, and 0x1038 after the tones. Asat
is part of the Sgaw tone mark and dot below and visarga are used as
nasal marks following the Pwo tones.
2023-05-05 09:42:56 +03:00
Amit D
9422915eb7
issue-bug.yml: Windows versions 7, 8, 8.1 are not supported anymore 2023-04-04 18:16:53 +03:00
Stefan Weil
b48f08e20c snap: Update from leptonica 1.74.2 to latest 1.83.1
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-04-03 15:09:22 +02:00
林博仁(Buo-ren Lin)
7b05f9478e fix: Fix snap package building
This patch fixes the outdated snap package recipe to make the snap
buildable with the current Snapcraft release(7.3.1).

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2023-04-03 15:05:26 +02:00
Stefan Weil
71af454299 Create new release 5.3.1
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-04-01 21:50:30 +02:00
Stefan Weil
f833491ddb Remove whitespace at line endings
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-03-31 22:16:43 +02:00
Amit D
fa4d4449c5
Fix issue #4010 (#4041)
Enable some code blocks that were wrongly disabled when the legacy engine is disabled at compile time.
2023-03-28 18:05:57 +03:00
zdenop
bbc2dfcfe1 cmake: add missing HAVE_NEON to config_auto.h 2023-03-27 19:23:18 +02:00
zdenop
de6d99db7d Merge branch 'main' of https://github.com/tesseract-ocr/tesseract 2023-03-27 19:22:39 +02:00