From 896f90537ce5a69c9efc6f180b2899eba3a7f7d4 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 10 Jun 2024 06:57:19 +0200 Subject: [PATCH 1/3] Remove unused .github/ISSUE_TEMPLATE.md Signed-off-by: Stefan Weil --- .github/ISSUE_TEMPLATE.md | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index e29b0550fe..0000000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,23 +0,0 @@ -Before you submit an issue, please review [the guidelines for this repository](https://github.com/tesseract-ocr/tesseract/blob/main/CONTRIBUTING.md). - -Please report an issue only for a BUG, not for asking questions. - -Note that it will be much easier for us to fix the issue if a test case that -reproduces the problem is provided. Ideally this test case should not have any -external dependencies. Provide a copy of the image or link to files for the test case. - -Please delete this text and fill in the template below. - ------------------------- - -### Environment - -* **Tesseract Version**: -* **Commit Number**: -* **Platform**: - -### Current Behavior: - -### Expected Behavior: - -### Suggested Fix: From cde0576fb363989463cfa263d262811bd0d59a26 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 10 Jun 2024 06:58:42 +0200 Subject: [PATCH 2/3] Fix small code style issues (reported by Codacy) Signed-off-by: Stefan Weil --- CONTRIBUTING.md | 1 + INSTALL.GIT.md | 1 + 2 files changed, 2 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3a49035d5f..56bb0d7261 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,6 +7,7 @@ If you think you found a bug in Tesseract, please create an issue. Use the [user forum](https://groups.google.com/g/tesseract-ocr) instead of creating an issue if ... + * You have problems using Tesseract and need some help. * You have problems installing the software. * You are not satisfied with the accuracy of the OCR, and want to ask how you can improve it. Note: You should first read the [ImproveQuality](https://tesseract-ocr.github.io/tessdoc/ImproveQuality.html) documentation. diff --git a/INSTALL.GIT.md b/INSTALL.GIT.md index 91675b9e5a..22a2be46a5 100644 --- a/INSTALL.GIT.md +++ b/INSTALL.GIT.md @@ -9,6 +9,7 @@ before new build. You need Leptonica 1.74.2 (minimum) for Tesseract 4.0x. Known dependencies for training tools (excluding leptonica): + * compiler with c++11 support * automake * pkg-config From 651f172c42b169c10c2b3d3f75007e2a1525a3d0 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 10 Jun 2024 07:12:12 +0200 Subject: [PATCH 3/3] Fix more code style issues (reported by Codacy) Signed-off-by: Stefan Weil --- CONTRIBUTING.md | 12 +++++++----- INSTALL.GIT.md | 44 ++++++++++++++++++++++---------------------- 2 files changed, 29 insertions(+), 27 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 56bb0d7261..3a0f7e2877 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,9 +15,10 @@ Use the [user forum](https://groups.google.com/g/tesseract-ocr) instead of creat * You have a general question. An issue should only be reported if the platform you are using is one of these: - * Linux (but not a version that is more than 4 years old) - * Windows (Windows 7 or newer version) - * macOS (last 3 releases) + +* Linux (but not a version that is more than 4 years old) +* Windows (Windows 7 or newer version) +* macOS (last 3 releases) For older versions or other operating systems, use the Tesseract forum. @@ -40,8 +41,9 @@ Post example files to demonstrate the problem. BUT don't post files with private info (about yourself or others). When attaching a file to the issue report / forum ... - * Do not post a file larger than 20 MB. - * GitHub supports only few file name extensions like `.png` or `.txt`. If GitHub rejects your files, you can compress them using a program that can produce a zip archive and then load this zip file to GitHub. + +* Do not post a file larger than 20 MB. +* GitHub supports only few file name extensions like `.png` or `.txt`. If GitHub rejects your files, you can compress them using a program that can produce a zip archive and then load this zip file to GitHub. Do not attach programs or libraries to your issues/posts. diff --git a/INSTALL.GIT.md b/INSTALL.GIT.md index 22a2be46a5..a9cc30077d 100644 --- a/INSTALL.GIT.md +++ b/INSTALL.GIT.md @@ -1,4 +1,4 @@ -# autotools (LINUX/UNIX , msys...) +## autotools (LINUX/UNIX , msys...) If you have cloned Tesseract from GitHub, you must generate the configure script. @@ -10,22 +10,22 @@ You need Leptonica 1.74.2 (minimum) for Tesseract 4.0x. Known dependencies for training tools (excluding leptonica): - * compiler with c++11 support - * automake - * pkg-config - * pango-devel - * cairo-devel - * icu-devel +* compiler with c++11 support +* automake +* pkg-config +* pango-devel +* cairo-devel +* icu-devel So, the steps for making Tesseract are: - $ ./autogen.sh - $ ./configure - $ make - $ sudo make install - $ sudo ldconfig - $ make training - $ sudo make training-install + ./autogen.sh + ./configure + make + sudo make install + sudo ldconfig + make training + sudo make training-install You need to install at least English language and OSD traineddata files to `TESSDATA_PREFIX` directory. @@ -36,7 +36,7 @@ All language data files can be retrieved from git repository (useful only for pa (Repository is huge - more that 1.2 GB. You do NOT need to download traineddata files for all languages). - $ git clone https://github.com/tesseract-ocr/tessdata.git tesseract-ocr.tessdata + git clone https://github.com/tesseract-ocr/tessdata.git tesseract-ocr.tessdata You need an Internet connection and [curl](https://curl.haxx.se/) to compile `ScrollView.jar` @@ -47,22 +47,22 @@ because the build will automatically download Just run: - $ make ScrollView.jar + make ScrollView.jar and follow the instruction on [Viewer Debugging](https://tesseract-ocr.github.io/tessdoc/ViewerDebugging.html). -# CMAKE +## cmake There is alternative build system based on multiplatform [cmake](https://cmake.org/) -## LINUX +### LINUX - $ mkdir build - $ cd build && cmake .. && make - $ sudo make install + mkdir build + cd build && cmake .. && make + sudo make install -## WINDOWS +### WINDOWS See the [documentation](https://tesseract-ocr.github.io/tessdoc/) for more information on this.