diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2021-10-22 16:39:59 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2021-10-22 16:39:59 +0000 |
| commit | ae730fc755ba289187daa47213f98d22f0856f68 (patch) | |
| tree | 608a22cdd9ef78846f6811220a7341678895dbc9 /docutils/utils | |
| parent | ac6dc01f981e890bebafa57544be7adb52cc2abd (diff) | |
| download | docutils-ae730fc755ba289187daa47213f98d22f0856f68.tar.gz | |
Fix spelling
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8860 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/utils')
| -rw-r--r-- | docutils/utils/__init__.py | 2 | ||||
| -rw-r--r-- | docutils/utils/code_analyzer.py | 2 | ||||
| -rw-r--r-- | docutils/utils/error_reporting.py | 2 | ||||
| -rw-r--r-- | docutils/utils/math/latex2mathml.py | 2 | ||||
| -rwxr-xr-x | docutils/utils/math/math2html.py | 2 | ||||
| -rw-r--r-- | docutils/utils/smartquotes.py | 4 |
6 files changed, 7 insertions, 7 deletions
diff --git a/docutils/utils/__init__.py b/docutils/utils/__init__.py index 07e531259..a0fb66986 100644 --- a/docutils/utils/__init__.py +++ b/docutils/utils/__init__.py @@ -342,7 +342,7 @@ def decode_path(path): """ Ensure `path` is Unicode. Return `nodes.reprunicode` object. - Decode file/path string in a failsave manner if not already done. + Decode file/path string in a failsafe manner if not already done. """ # see also http://article.gmane.org/gmane.text.docutils.user/2905 if isinstance(path, unicode): diff --git a/docutils/utils/code_analyzer.py b/docutils/utils/code_analyzer.py index 843a714e4..8f22bab50 100644 --- a/docutils/utils/code_analyzer.py +++ b/docutils/utils/code_analyzer.py @@ -117,7 +117,7 @@ class NumberLines(object): Iterating over an instance yields the tokens with a ``(['ln'], '<the line number>')`` token added for every code line. - Multi-line tokens are splitted.""" + Multi-line tokens are split.""" def __init__(self, tokens, startline, endline): self.tokens = tokens diff --git a/docutils/utils/error_reporting.py b/docutils/utils/error_reporting.py index 2a4a39866..e52b0d7c1 100644 --- a/docutils/utils/error_reporting.py +++ b/docutils/utils/error_reporting.py @@ -149,7 +149,7 @@ class ErrorString(SafeString): class ErrorOutput(object): """ Wrapper class for file-like error streams with - failsave de- and encoding of `str`, `bytes`, `unicode` and + failsafe de- and encoding of `str`, `bytes`, `unicode` and `Exception` instances. """ diff --git a/docutils/utils/math/latex2mathml.py b/docutils/utils/math/latex2mathml.py index 430920245..04941201a 100644 --- a/docutils/utils/math/latex2mathml.py +++ b/docutils/utils/math/latex2mathml.py @@ -43,7 +43,7 @@ from docutils.utils.math import tex2unichar, toplevel_code # identifiers -> <mi> letters = tex2unichar.mathalpha -letters['hbar'] = u'\u210F' # compatiblity mapping to ℏ (\hslash). +letters['hbar'] = u'\u210F' # compatibility mapping to ℏ (\hslash). # (ħ LATIN SMALL LETTER H WITH STROKE is upright) # special case: Capital Greek letters: (upright in TeX style) diff --git a/docutils/utils/math/math2html.py b/docutils/utils/math/math2html.py index 006e4b213..ce5fc71b8 100755 --- a/docutils/utils/math/math2html.py +++ b/docutils/utils/math/math2html.py @@ -2318,7 +2318,7 @@ class SpacedCommand(CommandBit): self.contents = [FormulaConstant(u'\u2009' + self.translated + u'\u2009')] class AlphaCommand(EmptyCommand): - """A command without paramters whose result is alphabetical.""" + """A command without parameters whose result is alphabetical.""" commandmap = FormulaConfig.alphacommands greek_capitals = ('\\Xi', '\\Theta', '\\Pi', '\\Sigma', '\\Gamma', diff --git a/docutils/utils/smartquotes.py b/docutils/utils/smartquotes.py index 310b3a288..3598c5d74 100644 --- a/docutils/utils/smartquotes.py +++ b/docutils/utils/smartquotes.py @@ -571,7 +571,7 @@ def educate_tokens(text_tokens, attr=default_smartypants_attr, language='en'): for (ttype, text) in text_tokens: - # skip HTML and/or XML tags as well as emtpy text tokens + # skip HTML and/or XML tags as well as empty text tokens # without updating the last character if ttype == 'tag' or not text: yield text @@ -608,7 +608,7 @@ def educate_tokens(text_tokens, attr=default_smartypants_attr, language='en'): text = educateSingleBackticks(text, language) if do_quotes: - # Replace plain quotes in context to prevent converstion to + # Replace plain quotes in context to prevent conversion to # 2-character sequence in French. context = prev_token_last_char.replace('"', ';').replace("'", ';') text = educateQuotes(context+text, language)[1:] |
