Skip to content

Commit bd7aecb

Browse files
authored
Merge pull request #890 from stweil/typos
Fix some typos (most of them found by codespell)
2 parents 214ca2a + b9852f9 commit bd7aecb

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ Changed:
329329

330330
Fixed:
331331

332-
* As a workaround for tensorflow compatiblity, require `numpy < 1.19.0`, #620
332+
* As a workaround for tensorflow compatibility, require `numpy < 1.19.0`, #620
333333

334334
## [2.17.1] - 2020-10-05
335335

@@ -560,7 +560,7 @@ Changed:
560560
* `Workspace.remove_file`: Optional `page_same_gropup` parameter to remove
561561
only those images linked in PAGE that are in the same group as the PAGE-XML
562562
* `Workspace.remove_file_gropup`: The same `page_recursive` and `page_same_gropup` parameters as `Workspace.remove_file`
563-
* `WorkspaceValidator.check_file_grp` now accepts a `page_id` parameter and will no raise an error if an exisitng
563+
* `WorkspaceValidator.check_file_grp` now accepts a `page_id` parameter and will not raise an error if an existing
564564
output file group is targeted but for pages that aren't in that group, #471
565565
* `ocrd_cli_wrap_processor`: Take `page_id` into account when doing `WorkspaceValidator.check_file_grp`
566566
* `run_cli` accepts an `overwrite` parameter to pass on to processor calls, #471

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pip install ocrd_modelfactory
6363

6464
All python software released by [OCR-D](https://github.com/OCR-D) requires Python 3.6 or higher.
6565

66-
**NOTE** Some OCR-D-Tools (or even test cases) _might_ reveal an unintended behavior if you have specific enviroment modifications, like:
66+
**NOTE** Some OCR-D-Tools (or even test cases) _might_ reveal an unintended behavior if you have specific environment modifications, like:
6767
* using a custom build of [ImageMagick](https://github.com/ImageMagick/ImageMagick), whose format delegates are different from what OCR-D supposes
6868
* custom Python logging configurations in your personal account
6969

ocrd_models/ocrd_models/ocrd_page_generateds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6318,7 +6318,7 @@ def replaceWithRRI(group):
63186318
rri.index = group.index
63196319
rri.regionRef = group.regionRef
63206320
cleaned.append(rri)
6321-
# remove emtpy groups and replace with RegionRefIndexedType
6321+
# remove empty groups and replace with RegionRefIndexedType
63226322
for entry in self.get_AllIndexed():
63236323
# pylint: disable=undefined-variable
63246324
if isinstance(entry, (OrderedGroupIndexedType)) and not entry.get_AllIndexed():
@@ -7250,7 +7250,7 @@ def replaceWithRRI(group):
72507250
rri.index = group.index
72517251
rri.regionRef = group.regionRef
72527252
cleaned.append(rri)
7253-
# remove emtpy groups and replace with RegionRefIndexedType
7253+
# remove empty groups and replace with RegionRefIndexedType
72547254
for entry in self.get_AllIndexed():
72557255
# pylint: disable=undefined-variable
72567256
if isinstance(entry, (OrderedGroupIndexedType)) and not entry.get_AllIndexed():

ocrd_models/ocrd_page_user_methods/exportChildren_GroupType.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def replaceWithRRI(group):
1111
rri.index = group.index
1212
rri.regionRef = group.regionRef
1313
cleaned.append(rri)
14-
# remove emtpy groups and replace with RegionRefIndexedType
14+
# remove empty groups and replace with RegionRefIndexedType
1515
for entry in self.get_AllIndexed():
1616
# pylint: disable=undefined-variable
1717
if isinstance(entry, (OrderedGroupIndexedType)) and not entry.get_AllIndexed():

ocrd_utils/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ See https://github.com/OCR-D/core
99

1010
File-based control over logging facilities is done with standard [Python 3 logging module configuration files](https://docs.python.org/3.6/howto/logging.html#configuring-logging). This way, the level, format and destinations of log messages can be customized for all OCR-D modules individually and persistently, in the usual syntax.
1111

12-
A template configuration file (with commented examples) is included in [ocrd_logging.conf](./ocrd_logging.conf). This is meant as an example, and should be **customized**.
12+
A template configuration file (with commented examples) is included in [ocrd_logging.conf](./ocrd_logging.conf). This is meant as an example, and should be **customized**.
1313

1414
To get into effect, you must put a copy (under the same name) into:
15-
1. your current working directory,
15+
1. your current working directory,
1616
2. your user directory, or
17-
3. `/etc`.
17+
3. `/etc`.
1818
These directories are searched in said order, and the first find wins. When no config file is found, the default logging configuration applies (which uses only stdout and the `INFO` loglevel for most loggers, cf. [here](./ocrd_logging.py)).
1919

2020
Thus, a configuration file will override *all* settings from the default configuration, and from configuration files in lower-priority directories.
@@ -23,7 +23,7 @@ For more information about logging, handlers and formats, see [Python documentat
2323

2424
#### Docker containers
2525

26-
In the Dockerfiles used to build `ocrd/core` (and subsequently `ocrd/all`), the above mentioned template is directly copied to `/etc/ocrd_logging.conf` within the container image. This cofiguration is thereby also the default configuration for OCR-D containers.
26+
In the Dockerfiles used to build `ocrd/core` (and subsequently `ocrd/all`), the above mentioned template is directly copied to `/etc/ocrd_logging.conf` within the container image. This configuration is thereby also the default configuration for OCR-D containers.
2727

2828
Thus, if you want to customize logging rules in one of these Docker containers, you can create a custom configuration file and either:
2929
- place it into your local workspace directory when running the OCR-D container.

ocrd_utils/ocrd_logging.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# is found, the default logging configuration applies (cf. ocrd.logging.py).
88
#
99
# mandatory loggers section
10-
# configure loggers with correspnding keys "root", ""
10+
# configure loggers with corresponding keys "root", ""
1111
# each logger requires a corresponding configuration section below
1212
#
1313
[loggers]
@@ -45,8 +45,8 @@ handlers=consoleHandler
4545
# example logger "ocrd_workspace" uses fileHandler and overrides
4646
# default log level "INFO" with custom level "DEBUG"
4747
# "qualname" must match the logger label used in the corresponding
48-
# ocrd modul
49-
# see in the modul-of-interrest (moi)
48+
# ocrd module
49+
# see in the module-of-interest (moi)
5050
#
5151
#[logger_ocrd_workspace]
5252
#level=DEBUG

ocrd_validators/ocrd_validators/mets.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
3. Add an MDTYPEVERSION attribute as a companion to the MDTYPE attribute in the mdRef and mdWrap elements.
212212
4. ID and STRUCTID attributes on the behavior element made optional. Depending on whether the behavior applies to a transformFile element or div elements in the structMap, only one or the other of the attributes would pertain.
213213
5. Documentation aligned with the METS Primer, and corrected.
214-
6. xml:lang="en" atttribute value added to every &lt;documentation&gt; element
214+
6. xml:lang="en" attribute value added to every &lt;documentation&gt; element
215215
7. xlink:extendedLink support added to the &lt;structLink&gt; element by means of a new &lt;smLinkGrp&gt; element, and its child &lt;smLocatorLink&gt; and &lt;smArcLink&gt; elements.
216216
</xsd:documentation>
217217

0 commit comments

Comments
 (0)