Skip to content

Commit 0f815d5

Browse files
authored
Merge pull request #4263 from stweil/codacy
Fix code style issues which were reported by Codacy
2 parents 3edf3b4 + 651f172 commit 0f815d5

File tree

3 files changed

+31
-50
lines changed

3 files changed

+31
-50
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@
77
If you think you found a bug in Tesseract, please create an issue.
88

99
Use the [user forum](https://groups.google.com/g/tesseract-ocr) instead of creating an issue if ...
10+
1011
* You have problems using Tesseract and need some help.
1112
* You have problems installing the software.
1213
* 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.
1314
* You are trying to train Tesseract and you have a problem and/or want to ask a question about the training process. Note: You should first read the **official** guides [[1]](https://tesseract-ocr.github.io/tessdoc/) or [[2]](https://tesseract-ocr.github.io/tessdoc/tess5/TrainingTesseract-5.html) found in the project documentation.
1415
* You have a general question.
1516

1617
An issue should only be reported if the platform you are using is one of these:
17-
* Linux (but not a version that is more than 4 years old)
18-
* Windows (Windows 7 or newer version)
19-
* macOS (last 3 releases)
18+
19+
* Linux (but not a version that is more than 4 years old)
20+
* Windows (Windows 7 or newer version)
21+
* macOS (last 3 releases)
2022

2123
For older versions or other operating systems, use the Tesseract forum.
2224

@@ -39,8 +41,9 @@ Post example files to demonstrate the problem.
3941
BUT don't post files with private info (about yourself or others).
4042

4143
When attaching a file to the issue report / forum ...
42-
* Do not post a file larger than 20 MB.
43-
* 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.
44+
45+
* Do not post a file larger than 20 MB.
46+
* 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.
4447

4548
Do not attach programs or libraries to your issues/posts.
4649

INSTALL.GIT.md

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# autotools (LINUX/UNIX , msys...)
1+
## autotools (LINUX/UNIX , msys...)
22

33
If you have cloned Tesseract from GitHub, you must generate
44
the configure script.
@@ -9,22 +9,23 @@ before new build.
99
You need Leptonica 1.74.2 (minimum) for Tesseract 4.0x.
1010

1111
Known dependencies for training tools (excluding leptonica):
12-
* compiler with c++11 support
13-
* automake
14-
* pkg-config
15-
* pango-devel
16-
* cairo-devel
17-
* icu-devel
12+
13+
* compiler with c++11 support
14+
* automake
15+
* pkg-config
16+
* pango-devel
17+
* cairo-devel
18+
* icu-devel
1819

1920
So, the steps for making Tesseract are:
2021

21-
$ ./autogen.sh
22-
$ ./configure
23-
$ make
24-
$ sudo make install
25-
$ sudo ldconfig
26-
$ make training
27-
$ sudo make training-install
22+
./autogen.sh
23+
./configure
24+
make
25+
sudo make install
26+
sudo ldconfig
27+
make training
28+
sudo make training-install
2829

2930
You need to install at least English language and OSD traineddata files to
3031
`TESSDATA_PREFIX` directory.
@@ -35,7 +36,7 @@ All language data files can be retrieved from git repository (useful only for pa
3536
(Repository is huge - more that 1.2 GB. You do NOT need to download traineddata files for
3637
all languages).
3738

38-
$ git clone https://github.com/tesseract-ocr/tessdata.git tesseract-ocr.tessdata
39+
git clone https://github.com/tesseract-ocr/tessdata.git tesseract-ocr.tessdata
3940

4041

4142
You need an Internet connection and [curl](https://curl.haxx.se/) to compile `ScrollView.jar`
@@ -46,22 +47,22 @@ because the build will automatically download
4647

4748
Just run:
4849

49-
$ make ScrollView.jar
50+
make ScrollView.jar
5051

5152
and follow the instruction on [Viewer Debugging](https://tesseract-ocr.github.io/tessdoc/ViewerDebugging.html).
5253

5354

54-
# CMAKE
55+
## cmake
5556

5657
There is alternative build system based on multiplatform [cmake](https://cmake.org/)
5758

58-
## LINUX
59+
### LINUX
5960

60-
$ mkdir build
61-
$ cd build && cmake .. && make
62-
$ sudo make install
61+
mkdir build
62+
cd build && cmake .. && make
63+
sudo make install
6364

6465

65-
## WINDOWS
66+
### WINDOWS
6667

6768
See the [documentation](https://tesseract-ocr.github.io/tessdoc/) for more information on this.

0 commit comments

Comments
 (0)