Skip to content

Commit

Permalink
chore: Correct spelling mistakes (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref authored Oct 19, 2022
1 parent 18b34d8 commit 7337517
Show file tree
Hide file tree
Showing 22 changed files with 102 additions and 102 deletions.
72 changes: 36 additions & 36 deletions CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ Windows Pre-installation Requirements
If you install python onto a windows system, there is a requirement that two additional
packages be installed at the same time.

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

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

Although xml2rfc works with Python 3.3, it does not work with Python 3.2 and this is
Expand Down
2 changes: 1 addition & 1 deletion configtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import fontconfig
except ImportError:
sys.stderr.write("Python-fontconfig not installed, will try to use fontconfig command-line tools\n"
"Install python-fonconfig for better performance.\n")
"Install python-fontconfig for better performance.\n")
fontconfig = None

for (fname, fcount) in [
Expand Down
10 changes: 5 additions & 5 deletions doc/_sources/gui.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
======================
Graphical Appplication
======================
=====================
Graphical Application
=====================

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

Expand All @@ -9,7 +9,7 @@ Converting a Document

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:
1. As a command-line argument (Example ``xml2rfc-gui file.xml``)
2. By selecting **File > Open Source** from the menu, or pressing the cooresponding keyboard shortcut (Ctrl+O or CMD+O)
2. By selecting **File > Open Source** from the menu, or pressing the corresponding keyboard shortcut (Ctrl+O or CMD+O)

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.

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

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)
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)

.. _customization:

Expand Down
8 changes: 4 additions & 4 deletions doc/cli.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="xml2rfc v2.3.3 documentation" href="index.html" />
<link rel="next" title="Graphical Appplication" href="gui.html" />
<link rel="next" title="Graphical Application" href="gui.html" />
<link rel="prev" title="Xml2rfc Documentation" href="index.html" />
</head>
<body>
Expand All @@ -37,7 +37,7 @@ <h3>Navigation</h3>
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="gui.html" title="Graphical Appplication"
<a href="gui.html" title="Graphical Application"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="index.html" title="Xml2rfc Documentation"
Expand Down Expand Up @@ -217,7 +217,7 @@ <h4>Previous topic</h4>
title="previous chapter">Xml2rfc Documentation</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="gui.html"
title="next chapter">Graphical Appplication</a></p>
title="next chapter">Graphical Application</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/cli.txt"
Expand Down Expand Up @@ -250,7 +250,7 @@ <h3>Navigation</h3>
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="gui.html" title="Graphical Appplication"
<a href="gui.html" title="Graphical Application"
>next</a> |</li>
<li class="right" >
<a href="index.html" title="Xml2rfc Documentation"
Expand Down
12 changes: 6 additions & 6 deletions doc/gui.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

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

<div class="section" id="graphical-appplication">
<h1>Graphical Appplication<a class="headerlink" href="#graphical-appplication" title="Permalink to this headline"></a></h1>
<div class="section" id="graphical-application">
<h1>Graphical Application<a class="headerlink" href="#graphical-application" title="Permalink to this headline"></a></h1>
<p>This section provides a guide for using <strong>xml2rfc-gui</strong>.</p>
<div class="section" id="converting-a-document">
<h2>Converting a Document<a class="headerlink" href="#converting-a-document" title="Permalink to this headline"></a></h2>
<dl class="docutils">
<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>
<dd><ol class="first last arabic simple">
<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>
<li>By selecting <strong>File &gt; Open Source</strong> from the menu, or pressing the cooresponding keyboard shortcut (Ctrl+O or CMD+O)</li>
<li>By selecting <strong>File &gt; Open Source</strong> from the menu, or pressing the corresponding keyboard shortcut (Ctrl+O or CMD+O)</li>
</ol>
</dd>
</dl>
Expand All @@ -82,7 +82,7 @@ <h2>Handling Errors<a class="headerlink" href="#handling-errors" title="Permalin
</div>
<div class="section" id="editing-xml">
<h2>Editing XML<a class="headerlink" href="#editing-xml" title="Permalink to this headline"></a></h2>
<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>
<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>
</div>
<div class="section" id="customization">
<span id="id1"></span><h2>Customization<a class="headerlink" href="#customization" title="Permalink to this headline"></a></h2>
Expand Down Expand Up @@ -126,7 +126,7 @@ <h2>Editing XML<a class="headerlink" href="#editing-xml" title="Permalink to thi
<div class="sphinxsidebarwrapper">
<h3><a href="index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Graphical Appplication</a><ul>
<li><a class="reference internal" href="#">Graphical Application</a><ul>
<li><a class="reference internal" href="#converting-a-document">Converting a Document</a></li>
<li><a class="reference internal" href="#handling-errors">Handling Errors</a></li>
<li><a class="reference internal" href="#editing-xml">Editing XML</a></li>
Expand Down
2 changes: 1 addition & 1 deletion doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h1>Xml2rfc Documentation<a class="headerlink" href="#xml2rfc-documentation" tit
<li class="toctree-l2"><a class="reference internal" href="cli.html#usage">Usage</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="gui.html">Graphical Appplication</a><ul>
<li class="toctree-l1"><a class="reference internal" href="gui.html">Graphical Application</a><ul>
<li class="toctree-l2"><a class="reference internal" href="gui.html#converting-a-document">Converting a Document</a></li>
<li class="toctree-l2"><a class="reference internal" href="gui.html#handling-errors">Handling Errors</a></li>
<li class="toctree-l2"><a class="reference internal" href="gui.html#editing-xml">Editing XML</a></li>
Expand Down
8 changes: 4 additions & 4 deletions doc/parser.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="xml2rfc v2.3.3 documentation" href="index.html" />
<link rel="next" title="Writer Module" href="writers.html" />
<link rel="prev" title="Graphical Appplication" href="gui.html" />
<link rel="prev" title="Graphical Application" href="gui.html" />
</head>
<body>
<div class="related">
Expand All @@ -40,7 +40,7 @@ <h3>Navigation</h3>
<a href="writers.html" title="Writer Module"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="gui.html" title="Graphical Appplication"
<a href="gui.html" title="Graphical Application"
accesskey="P">previous</a> |</li>
<li><a href="index.html">xml2rfc v2.3.3 documentation</a> &raquo;</li>
</ul>
Expand Down Expand Up @@ -156,7 +156,7 @@ <h3><a href="index.html">Table Of Contents</a></h3>

<h4>Previous topic</h4>
<p class="topless"><a href="gui.html"
title="previous chapter">Graphical Appplication</a></p>
title="previous chapter">Graphical Application</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="writers.html"
title="next chapter">Writer Module</a></p>
Expand Down Expand Up @@ -195,7 +195,7 @@ <h3>Navigation</h3>
<a href="writers.html" title="Writer Module"
>next</a> |</li>
<li class="right" >
<a href="gui.html" title="Graphical Appplication"
<a href="gui.html" title="Graphical Application"
>previous</a> |</li>
<li><a href="index.html">xml2rfc v2.3.3 documentation</a> &raquo;</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion doc/xml2rfc3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ Now, given that the entity references mentioned above are converted to code
points on parsing, they won't be visible as entity references after v2v3
conversion. The RPC has found this a bit problematic, as their editor only
shows a placeholder square for all of them. Even if the v2 input received by
the RPC from an author containes '&nbsp;' they would not see '&nbsp;' after
the RPC from an author contains '&nbsp;' they would not see '&nbsp;' after
v2v3 conversion. For this reason, there is a step to convert these 5 code
points back to the entity references listed above before writing out a v2v3
conversion result to file.
Expand Down
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def diff_test(case, valid, test, failpath, format):
# The following 2 lines does the right thing for both python 2.x and 3.x
test = str(test)
valid = str(valid)
# replace the current version with someting static, if present
# replace the current version with something static, if present
test = str(test.replace(xml2rfc.__version__, 'N.N.N'))
validarr = [line.rstrip() for line in valid.splitlines()]
testarr = [line.rstrip() for line in test.splitlines()]
Expand Down
12 changes: 6 additions & 6 deletions xml2rfc/data/xml2rfc.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
this can be consolidated so that style settings occur only in one place, but
for now the contents of this file consists first of the initial CSS work as
provided to the RFC Formatter (xml2rfc) work, followed by itemized and
commented changes found necssary during the development of the v3
commented changes found necessary during the development of the v3
formatters.
*/
Expand Down Expand Up @@ -687,7 +687,7 @@ hr.addr {
size: A4;
margin-bottom: 45mm;
padding-top: 20px;
/* The follwing is commented out here, but set appropriately by in code, as
/* The following is commented out here, but set appropriately by in code, as
the content depends on the document */
/*
@top-left {
Expand Down Expand Up @@ -828,7 +828,7 @@ table th.text-right {
text-align: right;
}

/* Make the alternative author contact informatio look less like just another
/* Make the alternative author contact information look less like just another
author, and group it closer with the primary author contact information */
.alternative-contact {
margin: 0.5em 0 0.25em 0;
Expand Down Expand Up @@ -1025,7 +1025,7 @@ ol.type-A { list-style-type: upper-alpha; }
ol.type-i { list-style-type: lower-roman; }
ol.type-I { list-style-type: lower-roman; }
/* Apply the print table and row borders in general, on request from the RPC,
and increase the contrast between border and odd row background sligthtly */
and increase the contrast between border and odd row background slightly */
table {
border: 1px solid #ddd;
}
Expand Down Expand Up @@ -1085,7 +1085,7 @@ span.break, dd.break {
break-before: auto;
}
}
/* Text in compact lists should not get extra bottim margin space,
/* Text in compact lists should not get extra bottom margin space,
since that would makes the list not compact */
ul.compact p, .ulCompact p,
ol.compact p, .olCompact p {
Expand All @@ -1110,7 +1110,7 @@ p tt, p code, li tt, li code {
pre {
margin-top: 0.5px;
}
/* Tweak the comact list text */
/* Tweak the compact list text */
ul.compact, .ulCompact,
ol.compact, .olCompact,
dl.compact, .dlCompact {
Expand Down
6 changes: 3 additions & 3 deletions xml2rfc/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def __init__(self, cache_path=None, library_dirs=None, source=None,
# Can't write to this directory, try the next one
pass
if not self.write_cache:
xml2rfc.log.warn('Unable to find a suitible cache directory to '
xml2rfc.log.warn('Unable to find a suitable cache directory to '
'write to, trying the following directories:\n ',
'\n '.join(self.read_caches),
'\nTry giving a specific directory with --cache.')
Expand Down Expand Up @@ -184,7 +184,7 @@ def getReferenceRequest(self, request, include=False, line_no=0):
Try each directory in LOCAL_LIB_DIRS + REQUEST, otherwise
Try NETWORK + REQUEST
Else (REQUEST is simply a filename)
[Recursively] Try each directory in LOCAL_LIB_DIRS + REQUEST, otherise
[Recursively] Try each directory in LOCAL_LIB_DIRS + REQUEST, otherwise
Try each explicit (bibxml, bibxml2...) subdirectory in NETWORK + REQUEST
Finally if the path returned is a network URL, use the cached
Expand Down Expand Up @@ -351,7 +351,7 @@ def getReferenceRequest(self, request, include=False, line_no=0):
raise error
else:
if not tried_cache:
# Haven't printed a verbose messsage yet
# Haven't printed a verbose message yet
typename = self.include and 'include' or 'entity'
xml2rfc.log.note('Resolving ' + typename + '...', result)
return result
Expand Down
8 changes: 4 additions & 4 deletions xml2rfc/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def print_country_help(options, parser):
def get_pdf_help(missing_libs=""):
pdf_requirements_info = """
In order to generate PDFs, xml2rfc uses the WeasyPrint library, which
depends on external libaries that must be installed as native packages.
depends on external libraries that must be installed as native packages.
1. First, install the Pango, and other required libraries on your
system. See installation instructions on the WeasyPrint Docs:
Expand Down Expand Up @@ -223,7 +223,7 @@ def main():
plain_options.add_argument('-N', '--no-network', action='store_true', default=False,
help='don\'t use the network to resolve references')
plain_options.add_argument('-O', '--no-org-info', dest='first_page_author_org', action='store_false', default=True,
help='don\'t show author orgainzation info on page one (legacy only)')
help='don\'t show author organization info on page one (legacy only)')
plain_options.add_argument('-q', '--quiet', action='store_true',
help="don't print anything while working")
plain_options.add_argument('--skip-config-files', action="store_true", default=False,
Expand Down Expand Up @@ -385,7 +385,7 @@ def main():
sys.exit()

# --- Parse and validate arguments ---------------------------------
# tempates_dir
# template_dir
options.template_dir = options.template_dir or default_options.template_dir

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

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

0 comments on commit 7337517

Please sign in to comment.