Skip to content

Commit

Permalink
Verify spelling fixes pass check-spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref authored Oct 14, 2022
2 parents ad317d2 + 1f6075f commit e85b006
Show file tree
Hide file tree
Showing 22 changed files with 94 additions and 94 deletions.
74 changes: 37 additions & 37 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ 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
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
10 changes: 5 additions & 5 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 Down
4 changes: 2 additions & 2 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 @@ -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
6 changes: 3 additions & 3 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
# templates_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
8 changes: 4 additions & 4 deletions xml2rfc/templates/doc.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- mode: conf-mode; tab-width: 4 -*-
# This is a YAML document which provides element and attribute descriptions
# for the xml2rfc schema. It is read when the --doc swithch of xml2rfc is
# for the xml2rfc schema. It is read when the --doc switch of xml2rfc is
# given, and used together with the Jinja2 template 'doc.xml' to build
# documentation for xml2rfc.
#
Expand Down Expand Up @@ -817,7 +817,7 @@ ol[type]:
- Without the '%p' format specifier, you would have to explicitly
insert the counter number of the parent item, which could easily
result in mismatched numbering if parent list intems were inserted
result in mismatched numbering if parent list items were inserted
or removed during document editing.

ol[indent]:
Expand Down Expand Up @@ -1042,7 +1042,7 @@ rfc[iprExtract]:

rfc[number]:

- Used to determine wheher to produce an RFC or an Internet-Draft.
- Used to determine whether to produce an RFC or an Internet-Draft.

rfc[obsoletes]:

Expand Down Expand Up @@ -1779,7 +1779,7 @@ xref:
the text of the external link.

- If the "sectino" attribute is present, the rendering will for most
cominations of the "format" and "sectionFormat" have two links; one
combinations of the "format" and "sectionFormat" have two links; one
external link to the specific part of the referenced document, and
one internal link to the \<reference\> entry.

Expand Down
2 changes: 1 addition & 1 deletion xml2rfc/uniscripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ by the Unicode character database.
This module is dumb and slow. If you need speed, you probably want to
implement your own functions. See e.g. `man pcreunicode`, `man pcrepattern`
(`grep -P` supports `\p`). As of this writing, the next-generation of Python
regexpes, available as the pypi library `regex`, also supports `\p`.
regexes, available as the pypi library `regex`, also supports `\p`.

Sample usage:

Expand Down
6 changes: 3 additions & 3 deletions xml2rfc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function, division

# Internal utitlity functions. Not meant for public usage.
# Internal utility functions. Not meant for public usage.

import base64
import re
Expand Down Expand Up @@ -138,7 +138,7 @@ def wrap(self, text, initial='', subsequent_indent=None, width=None,
# prevent breaking "Section N.N" and "Appendix X.X"
text = re.sub("(Section|Appendix|Figure|Table) ", u"\\1\u00A0", text)

# Replace some characters after splitting has occured
# Replace some characters after splitting has occurred
# --- Original implementation ----------------------------------
chunks = self._split(text)
# --- End original implementation ------------------------------
Expand Down Expand Up @@ -323,7 +323,7 @@ def safeReplaceUnicode(tree):


def safeTagSlashedWords(tree):
""" Traverses an lxml.etree ElementTree and replace words seperated
""" Traverses an lxml.etree ElementTree and replace words separated
by slashes if they are on the list
"""
slashList = {}
Expand Down
4 changes: 2 additions & 2 deletions xml2rfc/writers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1616,7 +1616,7 @@ def write_to_file(self, file):
])

deprecated_attributes = [
# element, attrbute
# element, attribute
('artwork', 'height'),
('artwork', 'width'),
('artwork', 'xml:space'),
Expand Down Expand Up @@ -2216,7 +2216,7 @@ def validate_before(self, e, p):
def validate_after(self, e, p):
# XXX: There is an issue with exponential increase in validation time
# as a function of the number of attributes on the root element, on
# the order of minutes for the full set of possble attribute values.
# the order of minutes for the full set of possible attribute values.
# See https://bugzilla.gnome.org/show_bug.cgi?id=133736 . In our
# schema, there is no dependency in the underlying schema on the root
# element attributes. In order to avoid very long validation times, we
Expand Down
2 changes: 1 addition & 1 deletion xml2rfc/writers/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -1653,7 +1653,7 @@ def render_front(self, h, x):
# * (STD|BCP|FYI: <Number> (if approved))
# * (Obsoletes: <Number>[, <Number>]*)
# * (Updates: <Number>[, <Number>]*)
# * Intended Status: <Cagegory Name>
# * Intended Status: <Category Name>
# * Expires: <Date>

def entry(dl, name, *values):
Expand Down
Loading

0 comments on commit e85b006

Please sign in to comment.