File: 0001-Fix-typos.patch

package info (click to toggle)
python-tesserocr 2.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 496 kB
  • sloc: python: 1,480; makefile: 5
file content (102 lines) | stat: -rw-r--r-- 4,222 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
From: Michael Fladischer <FladischerMichael@fladi.at>
Date: Fri, 1 Feb 2019 22:29:06 +0100
Subject: Fix typos.

---
 tesserocr.pyx | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/tesserocr.pyx b/tesserocr.pyx
index 637e63d..2a3be9d 100644
--- a/tesserocr.pyx
+++ b/tesserocr.pyx
@@ -67,7 +67,7 @@ cdef class _Enum:
 
 
 cdef class OEM(_Enum):
-    """An enum that defines avaialble OCR engine modes.
+    """An enum that defines available OCR engine modes.
 
     Attributes:
         TESSERACT_ONLY: Run Tesseract only - fastest
@@ -1132,7 +1132,7 @@ cdef class PyTessBaseAPI:
             applicable language, and there is more chance of hallucinating incorrect
             words.
         psm (int): Page segmentation mode. Defaults to :attr:`PSM.AUTO`.
-            See :class:`PSM` for avaialble psm values.
+            See :class:`PSM` for available psm values.
         init (bool): If ``False``, :meth:`Init` will not be called and has to be called
             after initialization.
         oem (int): OCR engine mode. Defaults to :attr:`OEM.DEFAULT`.
@@ -1251,7 +1251,7 @@ cdef class PyTessBaseAPI:
     def GetIntVariable(self, name):
         """Return the value of the given int parameter if it exists among Tesseract parameters.
 
-        Returns ``None`` if the paramter was not found.
+        Returns ``None`` if the parameter was not found.
         """
         cdef:
             bytes py_name = _b(name)
@@ -1263,7 +1263,7 @@ cdef class PyTessBaseAPI:
     def GetBoolVariable(self, name):
         """Return the value of the given bool parameter if it exists among Tesseract parameters.
 
-        Returns ``None`` if the paramter was not found.
+        Returns ``None`` if the parameter was not found.
         """
         cdef:
             bytes py_name = _b(name)
@@ -1275,7 +1275,7 @@ cdef class PyTessBaseAPI:
     def GetDoubleVariable(self, name):
         """Return the value of the given double parameter if it exists among Tesseract parameters.
 
-        Returns ``None`` if the paramter was not found.
+        Returns ``None`` if the parameter was not found.
         """
         cdef:
             bytes py_name = _b(name)
@@ -1287,7 +1287,7 @@ cdef class PyTessBaseAPI:
     def GetStringVariable(self, name):
         """Return the value of the given string parameter if it exists among Tesseract parameters.
 
-        Returns ``None`` if the paramter was not found.
+        Returns ``None`` if the parameter was not found.
         """
         cdef:
             bytes py_name = _b(name)
@@ -1300,7 +1300,7 @@ cdef class PyTessBaseAPI:
         """Return the value of named variable as a string (regardless of type),
         if it exists.
 
-        Returns ``None`` if paramter was not found.
+        Returns ``None`` if parameter was not found.
         """
         cdef:
             bytes py_name = _b(name)
@@ -1381,7 +1381,7 @@ cdef class PyTessBaseAPI:
              OcrEngineMode oem=OEM_DEFAULT):
         """Initialize the API with the given data path, language and OCR engine mode.
 
-        See :meth:`InitFull` for more intialization info and options.
+        See :meth:`InitFull` for more initialization info and options.
 
         Args:
             path (str): The name of the parent directory of tessdata.
@@ -2409,7 +2409,7 @@ def image_to_text(image, lang=_DEFAULT_LANG, PageSegMode psm=PSM_AUTO,
         path (str): The name of the parent directory of tessdata.
             Must end in /.
         oem (int): OCR engine mode. Defaults to :attr:`OEM.DEFAULT`.
-            see :class:`OEM` for all avaialble oem options.
+            see :class:`OEM` for all available oem options.
 
     Returns:
         unicode: The text extracted from the image.
@@ -2459,7 +2459,7 @@ def file_to_text(filename, lang=_DEFAULT_LANG, PageSegMode psm=PSM_AUTO,
         path (str): The name of the parent directory of tessdata.
             Must end in /.
         oem (int): OCR engine mode. Defaults to :attr:`OEM.DEFAULT`.
-            see :class:`OEM` for all avaialble oem options.
+            see :class:`OEM` for all available oem options.
 
     Returns:
         unicode: The text extracted from the image.