This commit is contained in:
Eisuke Kawashima 2021-07-08 01:29:38 +09:00
parent b09acabf00
commit 652ebf1bf5
No known key found for this signature in database
GPG Key ID: 17966AFD52EC0C3D
80 changed files with 93 additions and 93 deletions

12
CHANGES
View File

@ -55,7 +55,7 @@ Features added
* #1874: py domain: Support union types using ``|`` in info-field-list
* #9268: py domain: :confval:`python_use_unqualified_type_names` supports type
field in info-field-list
* #9097: Optimize the paralell build
* #9097: Optimize the parallel build
* #9131: Add :confval:`nitpick_ignore_regex` to ignore nitpicky warnings using
regular expressions
* #9174: Add ``Sphinx.set_html_assets_policy`` to tell extensions to include
@ -625,7 +625,7 @@ Bugs fixed
* #8567: autodoc: Instance attributes are incorrectly added to Parent class
* #8566: autodoc: The ``autodoc-process-docstring`` event is emitted to the
alias classes unexpectedly
* #8583: autodoc: Unnecessary object comparision via ``__eq__`` method
* #8583: autodoc: Unnecessary object comparison via ``__eq__`` method
* #8565: linkcheck: Fix PriorityQueue crash when link tuples are not
comparable
@ -691,7 +691,7 @@ Bugs fixed
* #8443: autodoc: autodata directive can't create document for PEP-526 based
type annotated variables
* #8443: autodoc: autoattribute directive can't create document for PEP-526
based uninitalized variables
based uninitialized variables
* #8480: autodoc: autoattribute could not create document for __slots__
attributes
* #8503: autodoc: autoattribute could not create document for a GenericAlias as
@ -848,7 +848,7 @@ Bugs fixed
* #8091: autodoc: AttributeError is raised on documenting an attribute on Python
3.5.2
* #8099: autodoc: NameError is raised when target code uses ``TYPE_CHECKING``
* C++, fix parsing of template template paramters, broken by the fix of #7944
* C++, fix parsing of template template parameters, broken by the fix of #7944
Release 3.2.0 (released Aug 08, 2020)
=====================================
@ -1137,7 +1137,7 @@ Bugs fixed
* #3673: autodoc: member-order="bysource" does not work for a module having
__all__
* #7668: autodoc: wrong retann value is passed to a handler of
autodoc-proccess-signature
autodoc-process-signature
* #7711: autodoc: fails with ValueError when processing numpy objects
* #7791: autodoc: TypeError is raised on documenting singledispatch function
* #7551: autosummary: a nested class is indexed as non-nested class
@ -1343,7 +1343,7 @@ Features added
* #6417: py domain: Allow to make a style for arguments of functions and methods
* #7238, #7239: py domain: Emit a warning on describing a python object if the
entry is already added as the same name
* #7341: py domain: type annotations in singature are converted to cross refs
* #7341: py domain: type annotations in signature are converted to cross refs
* Support priority of event handlers. For more detail, see
:py:meth:`.Sphinx.connect()`
* #3077: Implement the scoping for :rst:dir:`productionlist` as indicated

View File

@ -175,7 +175,7 @@ as metadata of the extension. Metadata keys currently recognized are:
.. note:: The *parallel-read-safe* extension must satisfy the following
conditions:
* The core logic of the extension is parallely executable during
* The core logic of the extension is parallelly executable during
the reading phase.
* It has event handlers for :event:`env-merge-info` and
:event:`env-purge-doc` events if it stores dataa to the build
@ -188,7 +188,7 @@ as metadata of the extension. Metadata keys currently recognized are:
.. note:: The *parallel-write-safe* extension must satisfy the following
conditions:
* The core logic of the extension is parallely executable during
* The core logic of the extension is parallelly executable during
the writing phase.

View File

@ -708,7 +708,7 @@ Do not use quotes to enclose values, whether numerical or strings.
As the default is set to a high value, the forceful algorithm is triggered
only in overfull case, i.e. in presence of a string longer than full
linewidth. Set this to ``0`` to force all input lines to be hard wrapped
at the current avaiable linewidth::
at the current available linewidth::
latex_elements = {
'sphinxsetup': "verbatimforcewraps, verbatimmaxunderfull=0",
@ -778,7 +778,7 @@ Do not use quotes to enclose values, whether numerical or strings.
.. versionchanged:: 1.5
The breaking of long code lines was added at 1.4.2. The default
definition of the continuation symbol was changed at 1.5 to accomodate
definition of the continuation symbol was changed at 1.5 to accommodate
various font sizes (e.g. code-blocks can be in footnotes).
``TitleColor``

View File

@ -43,7 +43,7 @@ Most domains provide a number of :dfn:`object description directives`, used to
describe specific objects provided by modules. Each directive requires one or
more signatures to provide basic information about what is being described, and
the content should be the description. A domain will typically keep an
internal index of all entites to aid cross-referencing. Typically it will
internal index of all entities to aid cross-referencing. Typically it will
also add entries in the shown general index.
If you want to suppress the addition of an entry in the shown index, you can
give the directive option flag ``:noindexentry:``.

View File

@ -2478,7 +2478,7 @@ class DefinitionParser(BaseParser):
def _parse_expression(self) -> ASTExpression:
# -> assignment-expression
# | expression "," assignment-expresion
# | expression "," assignment-expression
# TODO: actually parse the second production
return self._parse_assignment_expression()

View File

@ -144,7 +144,7 @@ T = TypeVar('T')
simple-type-specifier ->
::[opt] nested-name-specifier[opt] type-name
| ::[opt] nested-name-specifier "template" simple-template-id
| "char" | "bool" | ect.
| "char" | "bool" | etc.
| decltype-specifier
| elaborated-type-specifier ->
class-key attribute-specifier-seq[opt] ::[opt]
@ -162,7 +162,7 @@ T = TypeVar('T')
trailing-type-specifier ->
rest-of-trailing
("class" | "struct" | "union" | "typename") rest-of-trailing
build-in -> "char" | "bool" | ect.
build-in -> "char" | "bool" | etc.
decltype-specifier
rest-of-trailing -> (with some simplification)
"::"[opt] list-of-elements-separated-by-::
@ -198,7 +198,7 @@ T = TypeVar('T')
| "::"[opt] nested-name-specifier "*" attribute-specifier-seq[opt]
cv-qualifier-seq[opt]
# function_object must use a parameters-and-qualifiers, the others may
# use it (e.g., function poitners)
# use it (e.g., function pointers)
parameters-and-qualifiers ->
"(" parameter-clause ")" attribute-specifier-seq[opt]
cv-qualifier-seq[opt] ref-qualifier[opt]
@ -5281,7 +5281,7 @@ class DefinitionParser(BaseParser):
if cast is not None:
prefixType = "cast"
if not self.skip_string("<"):
self.fail("Expected '<' afer '%s'." % cast)
self.fail("Expected '<' after '%s'." % cast)
typ = self._parse_type(False)
self.skip_ws()
if not self.skip_string_and_ws(">"):
@ -5617,7 +5617,7 @@ class DefinitionParser(BaseParser):
def _parse_expression(self) -> ASTExpression:
# -> assignment-expression
# | expression "," assignment-expresion
# | expression "," assignment-expression
exprs = [self._parse_assignment_expression(inTemplate=False)]
while True:
self.skip_ws()

View File

@ -112,7 +112,7 @@ class IndexEntries:
else:
# put symbols at the front of the index (0)
sortkey = (0, lckey)
# ensure a determinstic order *within* letters by also sorting on
# ensure a deterministic order *within* letters by also sorting on
# the entry itself
return (sortkey, entry[0])
newlist = sorted(new.items(), key=keyfunc)

View File

@ -261,8 +261,8 @@ admonitionlabels = {
'warning': _('Warning'),
}
# Moved to sphinx.directives.other (will be overriden later)
# Moved to sphinx.directives.other (will be overridden later)
versionlabels: Dict[str, str] = {}
# Moved to sphinx.domains.python (will be overriden later)
# Moved to sphinx.domains.python (will be overridden later)
pairindextypes: Dict[str, str] = {}

View File

@ -422,7 +422,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -420,7 +420,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -421,7 +421,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -421,7 +421,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -421,7 +421,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -422,7 +422,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -422,7 +422,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -424,7 +424,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -424,7 +424,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -423,7 +423,7 @@ msgstr "το enumerable_node %r είναι ήδη καταχωρημένο"
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr "ο συνθέτης μαθηματικών %s είναι ήδη καταχωρημένος"
#: sphinx/registry.py:417

View File

@ -421,7 +421,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -427,7 +427,7 @@ msgstr "enumerable_node %r ya esta registrado"
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr "Renderizador matemático %s ya fue registrado"
#: sphinx/registry.py:417

View File

@ -424,7 +424,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -422,7 +422,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -424,7 +424,7 @@ msgstr "بست قابل شمارش (enumerable_node) %r قبلاً ثبت شده
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr "ترسیم‌گر ریاضی %s قبلاً ثبت شده"
#: sphinx/registry.py:417

View File

@ -421,7 +421,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -445,7 +445,7 @@ msgstr "enumerable_node %r est déjà enregistré"
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr "Le générateur de rendu mathématique %s est déjà enregistré"
#: sphinx/registry.py:417

View File

@ -420,7 +420,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -421,7 +421,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -424,7 +424,7 @@ msgstr "enumerable_node %r पहले से पंजीकृत है"
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr "गणित प्रस्तोता %s पहले से पंजीकृत है"
#: sphinx/registry.py:417

View File

@ -420,7 +420,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -421,7 +421,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -426,7 +426,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -425,7 +425,7 @@ msgstr "enumerable_node %r telah terdaftar"
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr "math renderer %s telah terdaftar"
#: sphinx/registry.py:417

View File

@ -425,7 +425,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -435,7 +435,7 @@ msgstr "enumerable_node %r はすでに登録されています"
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr "数式レンダラー %s はすでに登録されています"
#: sphinx/registry.py:417

View File

@ -422,7 +422,7 @@ msgstr "enumerable_node %r이(가) 이미 등록되었습니다"
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr "수식 렌더러 %s이(가) 이미 등록되었습니다"
#: sphinx/registry.py:417

View File

@ -421,7 +421,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -420,7 +420,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -421,7 +421,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -420,7 +420,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -422,7 +422,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -426,7 +426,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -424,7 +424,7 @@ msgstr "enumerable_node %r już zarejestrowany"
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -420,7 +420,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -426,7 +426,7 @@ msgstr "enumerable_node %r já registrado"
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr "renderizador matemático %s já está registrado"
#: sphinx/registry.py:417

View File

@ -422,7 +422,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -422,7 +422,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -426,7 +426,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -421,7 +421,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -423,7 +423,7 @@ msgstr "enumerable_node %r už je registrovaný"
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr "math renderer %s už je registrovaný"
#: sphinx/registry.py:417

View File

@ -420,7 +420,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -420,7 +420,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -421,7 +421,7 @@ msgstr "enumerable_node %r tashmë i regjistruar"
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr "vizatuesi i simboleve matematikore %s është i regjistruar tashmë"
#: sphinx/registry.py:417

View File

@ -422,7 +422,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -420,7 +420,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -420,7 +420,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -420,7 +420,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -421,7 +421,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -420,7 +420,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -424,7 +424,7 @@ msgstr "enumerable_node %r zaten kayıtlı"
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr "matematik işleyici %s zaten kayıtlı"
#: sphinx/registry.py:417

View File

@ -421,7 +421,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -420,7 +420,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -421,7 +421,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -435,7 +435,7 @@ msgstr "可数节点 %r 已注册"
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr "公式渲染器 %s 已注册"
#: sphinx/registry.py:417

View File

@ -427,7 +427,7 @@ msgstr ""
#: sphinx/registry.py:404
#, python-format
msgid "math renderer %s is already registred"
msgid "math renderer %s is already registered"
msgstr ""
#: sphinx/registry.py:417

View File

@ -404,7 +404,7 @@ class SphinxComponentRegistry:
logger.debug('[app] adding html_math_renderer: %s, %r, %r',
name, inline_renderers, block_renderers)
if name in self.html_inline_math_renderers:
raise ExtensionError(__('math renderer %s is already registred') % name)
raise ExtensionError(__('math renderer %s is already registered') % name)
self.html_inline_math_renderers[name] = inline_renderers
self.html_block_math_renderers[name] = block_renderers

View File

@ -38,7 +38,7 @@ class SearchLanguage:
.. attribute:: js_splitter_code
Return splitter funcion of JavaScript version. The function should be
Return splitter function of JavaScript version. The function should be
named as ``splitQuery``. And it should take a string and return list of
strings.

View File

@ -62,7 +62,7 @@ hvor | where
eller | or
hvad | what
skal | must/shall etc.
selv | myself/youself/herself/ourselves etc., even
selv | myself/yourself/herself/ourselves etc., even
her | here
alle | all/everyone/everybody etc.
vil | will (verb)

View File

@ -300,7 +300,7 @@
% Support scopes for footnote numbering
\newcounter{sphinxscope}
\newcommand{\sphinxstepscope}{\stepcounter{sphinxscope}}
% Explictly numbered footnotes may be referred to, and for this to be
% Explicitly numbered footnotes may be referred to, and for this to be
% clickable we need to have only one target. So we will step this at each
% explicit footnote and let \thesphinxscope take it into account
\newcounter{sphinxexplicit}

View File

@ -25,7 +25,7 @@
\PassOptionsToPackage{setpagesize=false}{hyperref}
\fi
% These options can be overriden inside 'hyperref' key
% These options can be overridden inside 'hyperref' key
% or by later use of \hypersetup.
\PassOptionsToPackage{colorlinks,breaklinks,%
linkcolor=InnerLinkColor,filecolor=OuterLinkColor,%

View File

@ -175,7 +175,7 @@ class HTMLThemeFactory:
self.themes[name] = theme
def load_extra_theme(self, name: str) -> None:
"""Try to load a theme having specifed name."""
"""Try to load a theme having specified name."""
if name == 'alabaster':
self.load_alabaster_theme()
else:

View File

@ -84,7 +84,7 @@ def publish_msgstr(app: "Sphinx", source: str, source_path: str, source_line: in
class PreserveTranslatableMessages(SphinxTransform):
"""
Preserve original translatable messages befor translation
Preserve original translatable messages before translation
"""
default_priority = 10 # this MUST be invoked before Locale transform

View File

@ -324,7 +324,7 @@ def educate_tokens(text_tokens: Iterable[Tuple[str, str]],
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

View File

@ -11,7 +11,7 @@
Porter, 1980, An algorithm for suffix stripping, Program, Vol. 14,
no. 3, pp 130-137,
only differing from it at the points maked --DEPARTURE-- below.
only differing from it at the points made --DEPARTURE-- below.
See also https://tartarus.org/martin/PorterStemmer/

View File

@ -297,7 +297,7 @@ def stringify(annotation: Any) -> str:
else:
return '.'.join([annotation.__module__, annotation.__name__])
elif inspect.isNewType(annotation):
# Could not get the module where it defiend
# Could not get the module where it defined
return annotation.__name__
elif not annotation:
return repr(annotation)

View File

@ -1225,7 +1225,7 @@ class LaTeXTranslator(SphinxTranslator):
pass
def depart_hlistcol(self, node: Element) -> None:
# \columnbreak would guarantee same columns as in html ouput. But
# \columnbreak would guarantee same columns as in html output. But
# some testing with long items showed that columns may be too uneven.
# And in case only of short items, the automatic column breaks should
# match the ones pre-computed by the hlist() directive.
@ -1890,7 +1890,7 @@ class LaTeXTranslator(SphinxTranslator):
self.context[-1] += 1
def visit_option_argument(self, node: Element) -> None:
"""The delimiter betweeen an option and its argument."""
"""The delimiter between an option and its argument."""
self.body.append(node.get('delimiter', ' '))
def depart_option_argument(self, node: Element) -> None:

View File

@ -1,5 +1,5 @@
"""
Test module for napoleon PEP 526 compatiblity with google style
Test module for napoleon PEP 526 compatibility with google style
"""
module_level_var: int = 99

View File

@ -1,5 +1,5 @@
"""
Test module for napoleon PEP 526 compatiblity with numpy style
Test module for napoleon PEP 526 compatibility with numpy style
"""
module_level_var: int = 99

View File

@ -243,7 +243,7 @@ Figures
My description paragraph of the figure.
Description paragraph is wraped with legend node.
Description paragraph is wrapped with legend node.
.. figure:: rimg.png
:align: right

View File

@ -19,7 +19,7 @@ class DummyTemplateLoader(BuiltinTemplateLoader):
super().__init__()
builder = mock.Mock()
builder.config.templates_path = []
builder.app.translater = None
builder.app.translator = None
self.init(builder)

View File

@ -61,7 +61,7 @@ def parse_version(version):
release = RELEASE_TYPE.get(typ, typ)
return (int(major), int(minor), int(rev), release, int(relver))
raise RuntimeError('Unknown vesion: %s' % version)
raise RuntimeError('Unknown version: %s' % version)
class Skip(Exception):