Skip to content

Commit 7337517

Browse files
authored
chore: Correct spelling mistakes (#917)
1 parent 18b34d8 commit 7337517

22 files changed

+102
-102
lines changed

CHANGELOG.md

+36-36
Large diffs are not rendered by default.

INSTALL

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ Windows Pre-installation Requirements
2424
If you install python onto a windows system, there is a requirement that two additional
2525
packages be installed at the same time.
2626

27-
'setup.py' requires the distribution package. This is current accessble as 'ez_setup'
27+
'setup.py' requires the distribution package. This is current accessible as 'ez_setup'
2828
(https://pypi.python.org/pypi/ez_setup).
2929

3030
The 'lxml' library is required to be installed as a binary build. This is currently
31-
accessable at https://pypi.python.org/pypi/lxml. As of this time, the lastest tested
31+
accessible at https://pypi.python.org/pypi/lxml. As of this time, the latest tested
3232
package for Windows is 3.1.0. Later versions are believed to work on other systems.
3333

3434
Although xml2rfc works with Python 3.3, it does not work with Python 3.2 and this is

configtest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import fontconfig
3030
except ImportError:
3131
sys.stderr.write("Python-fontconfig not installed, will try to use fontconfig command-line tools\n"
32-
"Install python-fonconfig for better performance.\n")
32+
"Install python-fontconfig for better performance.\n")
3333
fontconfig = None
3434

3535
for (fname, fcount) in [

doc/_sources/gui.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
======================
2-
Graphical Appplication
3-
======================
1+
=====================
2+
Graphical Application
3+
=====================
44

55
This section provides a guide for using **xml2rfc-gui**.
66

@@ -9,7 +9,7 @@ Converting a Document
99

1010
The application first needs a *source document* to work with. **xml2rfc-gui** handles a single XML document at a time for processing. A *source document* can be loaded in one of two ways:
1111
1. As a command-line argument (Example ``xml2rfc-gui file.xml``)
12-
2. By selecting **File > Open Source** from the menu, or pressing the cooresponding keyboard shortcut (Ctrl+O or CMD+O)
12+
2. By selecting **File > Open Source** from the menu, or pressing the corresponding keyboard shortcut (Ctrl+O or CMD+O)
1313

1414
You may then select one or more *output formats*, either by clicking the check boxes at the top of the application underneath "Outputs", or by selecting **Options > Output formats** from the menu.
1515

@@ -29,7 +29,7 @@ The document may then be edited externally and reloaded, OR edited within **xml2
2929
Editing XML
3030
-----------
3131

32-
The application's XML view also serves as a lightweight editor. Changes can be made to the current *source document* at any time by simply editing the text. Note that you must save your changes before converting, either by selecting **File > Save Source** from the menu, or pressing the cooresponding keyboard shortcut (Ctrl+S or CMD+S)
32+
The application's XML view also serves as a lightweight editor. Changes can be made to the current *source document* at any time by simply editing the text. Note that you must save your changes before converting, either by selecting **File > Save Source** from the menu, or pressing the corresponding keyboard shortcut (Ctrl+S or CMD+S)
3333

3434
.. _customization:
3535

doc/cli.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<script type="text/javascript" src="_static/underscore.js"></script>
2424
<script type="text/javascript" src="_static/doctools.js"></script>
2525
<link rel="top" title="xml2rfc v2.3.3 documentation" href="index.html" />
26-
<link rel="next" title="Graphical Appplication" href="gui.html" />
26+
<link rel="next" title="Graphical Application" href="gui.html" />
2727
<link rel="prev" title="Xml2rfc Documentation" href="index.html" />
2828
</head>
2929
<body>
@@ -37,7 +37,7 @@ <h3>Navigation</h3>
3737
<a href="py-modindex.html" title="Python Module Index"
3838
>modules</a> |</li>
3939
<li class="right" >
40-
<a href="gui.html" title="Graphical Appplication"
40+
<a href="gui.html" title="Graphical Application"
4141
accesskey="N">next</a> |</li>
4242
<li class="right" >
4343
<a href="index.html" title="Xml2rfc Documentation"
@@ -217,7 +217,7 @@ <h4>Previous topic</h4>
217217
title="previous chapter">Xml2rfc Documentation</a></p>
218218
<h4>Next topic</h4>
219219
<p class="topless"><a href="gui.html"
220-
title="next chapter">Graphical Appplication</a></p>
220+
title="next chapter">Graphical Application</a></p>
221221
<h3>This Page</h3>
222222
<ul class="this-page-menu">
223223
<li><a href="_sources/cli.txt"
@@ -250,7 +250,7 @@ <h3>Navigation</h3>
250250
<a href="py-modindex.html" title="Python Module Index"
251251
>modules</a> |</li>
252252
<li class="right" >
253-
<a href="gui.html" title="Graphical Appplication"
253+
<a href="gui.html" title="Graphical Application"
254254
>next</a> |</li>
255255
<li class="right" >
256256
<a href="index.html" title="Xml2rfc Documentation"

doc/gui.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<head>
88
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
99

10-
<title>Graphical Appplication &mdash; xml2rfc v2.3.3 documentation</title>
10+
<title>Graphical Application &mdash; xml2rfc v2.3.3 documentation</title>
1111
<link rel="stylesheet" href="_static/default.css" type="text/css" />
1212
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1313
<script type="text/javascript">
@@ -51,16 +51,16 @@ <h3>Navigation</h3>
5151
<div class="bodywrapper">
5252
<div class="body">
5353

54-
<div class="section" id="graphical-appplication">
55-
<h1>Graphical Appplication<a class="headerlink" href="#graphical-appplication" title="Permalink to this headline"></a></h1>
54+
<div class="section" id="graphical-application">
55+
<h1>Graphical Application<a class="headerlink" href="#graphical-application" title="Permalink to this headline"></a></h1>
5656
<p>This section provides a guide for using <strong>xml2rfc-gui</strong>.</p>
5757
<div class="section" id="converting-a-document">
5858
<h2>Converting a Document<a class="headerlink" href="#converting-a-document" title="Permalink to this headline"></a></h2>
5959
<dl class="docutils">
6060
<dt>The application first needs a <em>source document</em> to work with. <strong>xml2rfc-gui</strong> handles a single XML document at a time for processing. A <em>source document</em> can be loaded in one of two ways:</dt>
6161
<dd><ol class="first last arabic simple">
6262
<li>As a command-line argument (Example <tt class="docutils literal"><span class="pre">xml2rfc-gui</span> <span class="pre">file.xml</span></tt>)</li>
63-
<li>By selecting <strong>File &gt; Open Source</strong> from the menu, or pressing the cooresponding keyboard shortcut (Ctrl+O or CMD+O)</li>
63+
<li>By selecting <strong>File &gt; Open Source</strong> from the menu, or pressing the corresponding keyboard shortcut (Ctrl+O or CMD+O)</li>
6464
</ol>
6565
</dd>
6666
</dl>
@@ -82,7 +82,7 @@ <h2>Handling Errors<a class="headerlink" href="#handling-errors" title="Permalin
8282
</div>
8383
<div class="section" id="editing-xml">
8484
<h2>Editing XML<a class="headerlink" href="#editing-xml" title="Permalink to this headline"></a></h2>
85-
<p>The application&#8217;s XML view also serves as a lightweight editor. Changes can be made to the current <em>source document</em> at any time by simply editing the text. Note that you must save your changes before converting, either by selecting <strong>File &gt; Save Source</strong> from the menu, or pressing the cooresponding keyboard shortcut (Ctrl+S or CMD+S)</p>
85+
<p>The application&#8217;s XML view also serves as a lightweight editor. Changes can be made to the current <em>source document</em> at any time by simply editing the text. Note that you must save your changes before converting, either by selecting <strong>File &gt; Save Source</strong> from the menu, or pressing the corresponding keyboard shortcut (Ctrl+S or CMD+S)</p>
8686
</div>
8787
<div class="section" id="customization">
8888
<span id="id1"></span><h2>Customization<a class="headerlink" href="#customization" title="Permalink to this headline"></a></h2>
@@ -126,7 +126,7 @@ <h2>Editing XML<a class="headerlink" href="#editing-xml" title="Permalink to thi
126126
<div class="sphinxsidebarwrapper">
127127
<h3><a href="index.html">Table Of Contents</a></h3>
128128
<ul>
129-
<li><a class="reference internal" href="#">Graphical Appplication</a><ul>
129+
<li><a class="reference internal" href="#">Graphical Application</a><ul>
130130
<li><a class="reference internal" href="#converting-a-document">Converting a Document</a></li>
131131
<li><a class="reference internal" href="#handling-errors">Handling Errors</a></li>
132132
<li><a class="reference internal" href="#editing-xml">Editing XML</a></li>

doc/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h1>Xml2rfc Documentation<a class="headerlink" href="#xml2rfc-documentation" tit
5858
<li class="toctree-l2"><a class="reference internal" href="cli.html#usage">Usage</a></li>
5959
</ul>
6060
</li>
61-
<li class="toctree-l1"><a class="reference internal" href="gui.html">Graphical Appplication</a><ul>
61+
<li class="toctree-l1"><a class="reference internal" href="gui.html">Graphical Application</a><ul>
6262
<li class="toctree-l2"><a class="reference internal" href="gui.html#converting-a-document">Converting a Document</a></li>
6363
<li class="toctree-l2"><a class="reference internal" href="gui.html#handling-errors">Handling Errors</a></li>
6464
<li class="toctree-l2"><a class="reference internal" href="gui.html#editing-xml">Editing XML</a></li>

doc/parser.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<script type="text/javascript" src="_static/doctools.js"></script>
2525
<link rel="top" title="xml2rfc v2.3.3 documentation" href="index.html" />
2626
<link rel="next" title="Writer Module" href="writers.html" />
27-
<link rel="prev" title="Graphical Appplication" href="gui.html" />
27+
<link rel="prev" title="Graphical Application" href="gui.html" />
2828
</head>
2929
<body>
3030
<div class="related">
@@ -40,7 +40,7 @@ <h3>Navigation</h3>
4040
<a href="writers.html" title="Writer Module"
4141
accesskey="N">next</a> |</li>
4242
<li class="right" >
43-
<a href="gui.html" title="Graphical Appplication"
43+
<a href="gui.html" title="Graphical Application"
4444
accesskey="P">previous</a> |</li>
4545
<li><a href="index.html">xml2rfc v2.3.3 documentation</a> &raquo;</li>
4646
</ul>
@@ -156,7 +156,7 @@ <h3><a href="index.html">Table Of Contents</a></h3>
156156

157157
<h4>Previous topic</h4>
158158
<p class="topless"><a href="gui.html"
159-
title="previous chapter">Graphical Appplication</a></p>
159+
title="previous chapter">Graphical Application</a></p>
160160
<h4>Next topic</h4>
161161
<p class="topless"><a href="writers.html"
162162
title="next chapter">Writer Module</a></p>
@@ -195,7 +195,7 @@ <h3>Navigation</h3>
195195
<a href="writers.html" title="Writer Module"
196196
>next</a> |</li>
197197
<li class="right" >
198-
<a href="gui.html" title="Graphical Appplication"
198+
<a href="gui.html" title="Graphical Application"
199199
>previous</a> |</li>
200200
<li><a href="index.html">xml2rfc v2.3.3 documentation</a> &raquo;</li>
201201
</ul>

doc/xml2rfc3.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ Now, given that the entity references mentioned above are converted to code
530530
points on parsing, they won't be visible as entity references after v2v3
531531
conversion. The RPC has found this a bit problematic, as their editor only
532532
shows a placeholder square for all of them. Even if the v2 input received by
533-
the RPC from an author containes '&nbsp;' they would not see '&nbsp;' after
533+
the RPC from an author contains '&nbsp;' they would not see '&nbsp;' after
534534
v2v3 conversion. For this reason, there is a step to convert these 5 code
535535
points back to the entity references listed above before writing out a v2v3
536536
conversion result to file.

test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def diff_test(case, valid, test, failpath, format):
4545
# The following 2 lines does the right thing for both python 2.x and 3.x
4646
test = str(test)
4747
valid = str(valid)
48-
# replace the current version with someting static, if present
48+
# replace the current version with something static, if present
4949
test = str(test.replace(xml2rfc.__version__, 'N.N.N'))
5050
validarr = [line.rstrip() for line in valid.splitlines()]
5151
testarr = [line.rstrip() for line in test.splitlines()]

xml2rfc/data/xml2rfc.css

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
this can be consolidated so that style settings occur only in one place, but
77
for now the contents of this file consists first of the initial CSS work as
88
provided to the RFC Formatter (xml2rfc) work, followed by itemized and
9-
commented changes found necssary during the development of the v3
9+
commented changes found necessary during the development of the v3
1010
formatters.
1111
1212
*/
@@ -687,7 +687,7 @@ hr.addr {
687687
size: A4;
688688
margin-bottom: 45mm;
689689
padding-top: 20px;
690-
/* The follwing is commented out here, but set appropriately by in code, as
690+
/* The following is commented out here, but set appropriately by in code, as
691691
the content depends on the document */
692692
/*
693693
@top-left {
@@ -828,7 +828,7 @@ table th.text-right {
828828
text-align: right;
829829
}
830830

831-
/* Make the alternative author contact informatio look less like just another
831+
/* Make the alternative author contact information look less like just another
832832
author, and group it closer with the primary author contact information */
833833
.alternative-contact {
834834
margin: 0.5em 0 0.25em 0;
@@ -1025,7 +1025,7 @@ ol.type-A { list-style-type: upper-alpha; }
10251025
ol.type-i { list-style-type: lower-roman; }
10261026
ol.type-I { list-style-type: lower-roman; }
10271027
/* Apply the print table and row borders in general, on request from the RPC,
1028-
and increase the contrast between border and odd row background sligthtly */
1028+
and increase the contrast between border and odd row background slightly */
10291029
table {
10301030
border: 1px solid #ddd;
10311031
}
@@ -1085,7 +1085,7 @@ span.break, dd.break {
10851085
break-before: auto;
10861086
}
10871087
}
1088-
/* Text in compact lists should not get extra bottim margin space,
1088+
/* Text in compact lists should not get extra bottom margin space,
10891089
since that would makes the list not compact */
10901090
ul.compact p, .ulCompact p,
10911091
ol.compact p, .olCompact p {
@@ -1110,7 +1110,7 @@ p tt, p code, li tt, li code {
11101110
pre {
11111111
margin-top: 0.5px;
11121112
}
1113-
/* Tweak the comact list text */
1113+
/* Tweak the compact list text */
11141114
ul.compact, .ulCompact,
11151115
ol.compact, .olCompact,
11161116
dl.compact, .dlCompact {

xml2rfc/parser.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def __init__(self, cache_path=None, library_dirs=None, source=None,
105105
# Can't write to this directory, try the next one
106106
pass
107107
if not self.write_cache:
108-
xml2rfc.log.warn('Unable to find a suitible cache directory to '
108+
xml2rfc.log.warn('Unable to find a suitable cache directory to '
109109
'write to, trying the following directories:\n ',
110110
'\n '.join(self.read_caches),
111111
'\nTry giving a specific directory with --cache.')
@@ -184,7 +184,7 @@ def getReferenceRequest(self, request, include=False, line_no=0):
184184
Try each directory in LOCAL_LIB_DIRS + REQUEST, otherwise
185185
Try NETWORK + REQUEST
186186
Else (REQUEST is simply a filename)
187-
[Recursively] Try each directory in LOCAL_LIB_DIRS + REQUEST, otherise
187+
[Recursively] Try each directory in LOCAL_LIB_DIRS + REQUEST, otherwise
188188
Try each explicit (bibxml, bibxml2...) subdirectory in NETWORK + REQUEST
189189
190190
Finally if the path returned is a network URL, use the cached
@@ -351,7 +351,7 @@ def getReferenceRequest(self, request, include=False, line_no=0):
351351
raise error
352352
else:
353353
if not tried_cache:
354-
# Haven't printed a verbose messsage yet
354+
# Haven't printed a verbose message yet
355355
typename = self.include and 'include' or 'entity'
356356
xml2rfc.log.note('Resolving ' + typename + '...', result)
357357
return result

xml2rfc/run.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def print_country_help(options, parser):
7878
def get_pdf_help(missing_libs=""):
7979
pdf_requirements_info = """
8080
In order to generate PDFs, xml2rfc uses the WeasyPrint library, which
81-
depends on external libaries that must be installed as native packages.
81+
depends on external libraries that must be installed as native packages.
8282
8383
1. First, install the Pango, and other required libraries on your
8484
system. See installation instructions on the WeasyPrint Docs:
@@ -223,7 +223,7 @@ def main():
223223
plain_options.add_argument('-N', '--no-network', action='store_true', default=False,
224224
help='don\'t use the network to resolve references')
225225
plain_options.add_argument('-O', '--no-org-info', dest='first_page_author_org', action='store_false', default=True,
226-
help='don\'t show author orgainzation info on page one (legacy only)')
226+
help='don\'t show author organization info on page one (legacy only)')
227227
plain_options.add_argument('-q', '--quiet', action='store_true',
228228
help="don't print anything while working")
229229
plain_options.add_argument('--skip-config-files', action="store_true", default=False,
@@ -385,7 +385,7 @@ def main():
385385
sys.exit()
386386

387387
# --- Parse and validate arguments ---------------------------------
388-
# tempates_dir
388+
# template_dir
389389
options.template_dir = options.template_dir or default_options.template_dir
390390

391391
if (options.docfile or options.manpage) and not options.list_symbols:
@@ -544,7 +544,7 @@ def main():
544544
options.vocabulary = 'v3'
545545

546546
# ------------------------------------------------------------------
547-
# Additional option checks that depend on the option.legacy settin which
547+
# Additional option checks that depend on the option.legacy setting which
548548
# we may have adjusted as a result of the <rfc version="..."> setting:
549549
if options.text and not options.legacy:
550550
if options.legacy_list_symbols and options.list_symbols:

0 commit comments

Comments
 (0)