|
From: <mi...@us...> - 2022-03-05 23:28:35
|
Revision: 9030
http://sourceforge.net/p/docutils/code/9030
Author: milde
Date: 2022-03-05 23:28:32 +0000 (Sat, 05 Mar 2022)
Log Message:
-----------
Avoid too long lines.
flake8 rule E501: line too long (N > 79 characters)
Modified Paths:
--------------
trunk/docutils/docutils/core.py
trunk/docutils/docutils/frontend.py
trunk/docutils/docutils/languages/__init__.py
trunk/docutils/docutils/languages/af.py
trunk/docutils/docutils/languages/ar.py
trunk/docutils/docutils/languages/ca.py
trunk/docutils/docutils/languages/cs.py
trunk/docutils/docutils/languages/da.py
trunk/docutils/docutils/languages/de.py
trunk/docutils/docutils/languages/en.py
trunk/docutils/docutils/languages/eo.py
trunk/docutils/docutils/languages/es.py
trunk/docutils/docutils/languages/fa.py
trunk/docutils/docutils/languages/fi.py
trunk/docutils/docutils/languages/fr.py
trunk/docutils/docutils/languages/gl.py
trunk/docutils/docutils/languages/he.py
trunk/docutils/docutils/languages/it.py
trunk/docutils/docutils/languages/ja.py
trunk/docutils/docutils/languages/ko.py
trunk/docutils/docutils/languages/lt.py
trunk/docutils/docutils/languages/lv.py
trunk/docutils/docutils/languages/nl.py
trunk/docutils/docutils/languages/pl.py
trunk/docutils/docutils/languages/pt_br.py
trunk/docutils/docutils/languages/ru.py
trunk/docutils/docutils/languages/sk.py
trunk/docutils/docutils/languages/sv.py
trunk/docutils/docutils/languages/zh_cn.py
trunk/docutils/docutils/languages/zh_tw.py
trunk/docutils/docutils/nodes.py
trunk/docutils/docutils/parsers/rst/__init__.py
trunk/docutils/docutils/parsers/rst/directives/body.py
trunk/docutils/docutils/parsers/rst/directives/misc.py
trunk/docutils/docutils/parsers/rst/directives/tables.py
trunk/docutils/docutils/parsers/rst/languages/af.py
trunk/docutils/docutils/parsers/rst/languages/ar.py
trunk/docutils/docutils/parsers/rst/languages/ca.py
trunk/docutils/docutils/parsers/rst/languages/cs.py
trunk/docutils/docutils/parsers/rst/languages/da.py
trunk/docutils/docutils/parsers/rst/languages/de.py
trunk/docutils/docutils/parsers/rst/languages/en.py
trunk/docutils/docutils/parsers/rst/languages/eo.py
trunk/docutils/docutils/parsers/rst/languages/es.py
trunk/docutils/docutils/parsers/rst/languages/fa.py
trunk/docutils/docutils/parsers/rst/languages/fi.py
trunk/docutils/docutils/parsers/rst/languages/fr.py
trunk/docutils/docutils/parsers/rst/languages/gl.py
trunk/docutils/docutils/parsers/rst/languages/he.py
trunk/docutils/docutils/parsers/rst/languages/ja.py
trunk/docutils/docutils/parsers/rst/languages/ko.py
trunk/docutils/docutils/parsers/rst/languages/lt.py
trunk/docutils/docutils/parsers/rst/languages/lv.py
trunk/docutils/docutils/parsers/rst/languages/nl.py
trunk/docutils/docutils/parsers/rst/languages/pl.py
trunk/docutils/docutils/parsers/rst/languages/pt_br.py
trunk/docutils/docutils/parsers/rst/languages/ru.py
trunk/docutils/docutils/parsers/rst/languages/sk.py
trunk/docutils/docutils/parsers/rst/languages/sv.py
trunk/docutils/docutils/parsers/rst/languages/zh_cn.py
trunk/docutils/docutils/parsers/rst/languages/zh_tw.py
trunk/docutils/docutils/parsers/rst/roles.py
trunk/docutils/docutils/parsers/rst/states.py
trunk/docutils/docutils/transforms/__init__.py
trunk/docutils/docutils/transforms/frontmatter.py
trunk/docutils/docutils/transforms/references.py
trunk/docutils/docutils/utils/__init__.py
trunk/docutils/docutils/utils/error_reporting.py
trunk/docutils/docutils/utils/smartquotes.py
trunk/docutils/docutils/utils/urischemes.py
trunk/docutils/docutils/writers/_html_base.py
trunk/docutils/docutils/writers/docutils_xml.py
trunk/docutils/docutils/writers/html4css1/__init__.py
trunk/docutils/docutils/writers/html5_polyglot/__init__.py
trunk/docutils/docutils/writers/latex2e/__init__.py
trunk/docutils/docutils/writers/manpage.py
trunk/docutils/docutils/writers/s5_html/__init__.py
trunk/docutils/test/DocutilsTestSupport.py
trunk/docutils/test/alltests.py
trunk/docutils/test/local_dummy_lang.py
trunk/docutils/test/package_unittest.py
trunk/docutils/test/test_dependencies.py
trunk/docutils/test/test_error_reporting.py
trunk/docutils/test/test_nodes.py
trunk/docutils/test/test_settings.py
trunk/docutils/test/test_utils.py
trunk/docutils/tools/buildhtml.py
trunk/docutils/tools/dev/create_unimap.py
trunk/docutils/tools/dev/generate_punctuation_chars.py
trunk/docutils/tools/rst2man.py
trunk/docutils/tox.ini
Modified: trunk/docutils/docutils/core.py
===================================================================
--- trunk/docutils/docutils/core.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/core.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -9,7 +9,8 @@
custom component objects first, and pass *them* to
``publish_*``/`Publisher`. See `The Docutils Publisher`_.
-.. _The Docutils Publisher: https://docutils.sourceforge.io/docs/api/publisher.html
+.. _The Docutils Publisher:
+ https://docutils.sourceforge.io/docs/api/publisher.html
"""
__docformat__ = 'reStructuredText'
@@ -313,10 +314,11 @@
default_usage = '%prog [options] [<source> [<destination>]]'
-default_description = ('Reads from <source> (default is stdin) and writes to '
- '<destination> (default is stdout). See '
- '<https://docutils.sourceforge.io/docs/user/config.html> for '
- 'the full reference.')
+default_description = (
+ 'Reads from <source> (default is stdin) and writes to <destination> '
+ '(default is stdout). '
+ 'See https://docutils.sourceforge.io/docs/user/config.html '
+ ' for the full reference.')
def publish_cmdline(reader=None, reader_name='standalone',
Modified: trunk/docutils/docutils/frontend.py
===================================================================
--- trunk/docutils/docutils/frontend.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/frontend.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -511,7 +511,8 @@
'default': 5, 'metavar': '<level>',
'validator': validate_threshold}),
('Enable debug-level system messages and diagnostics.',
- ['--debug'], {'action': 'store_true', 'validator': validate_boolean}),
+ ['--debug'], {'action': 'store_true',
+ 'validator': validate_boolean}),
('Disable debug output. (default)',
['--no-debug'], {'action': 'store_false', 'dest': 'debug'}),
('Send the output of system messages to <file>.',
@@ -587,7 +588,7 @@
'_source': None,
'_destination': None,
'_config_files': None}
- """Defaults for settings that don't have command-line option equivalents."""
+ """Defaults for settings without command-line option equivalents."""
relative_path_settings = ('warning_stream',)
@@ -633,8 +634,9 @@
self.defaults.update(config_settings.__dict__)
def populate_from_components(self, components):
- """
- For each component, first populate from the `SettingsSpec.settings_spec`
+ """Collect settings specification from components.
+
+ For each component, populate from the `SettingsSpec.settings_spec`
structure, then from the `SettingsSpec.settings_defaults` dictionary.
After all components have been processed, check for and populate from
each component's `SettingsSpec.settings_default_overrides` dictionary.
@@ -771,12 +773,12 @@
`handle_old_config`, to convert settings from the old [options] section.
"""
- old_warning = """
-The "[option]" section is deprecated. Support for old-format configuration
-files will be removed in Docutils 0.21 or later. Please revise your
-configuration files. See <https://docutils.sourceforge.io/docs/user/config.html>,
-section "Old-Format Configuration Files".
-"""
+ old_warning = (
+ 'The "[option]" section is deprecated.\n'
+ 'Support for old-format configuration files will be removed in '
+ 'Docutils 0.21 or later. Please revise your configuration files. '
+ 'See <https://docutils.sourceforge.io/docs/user/config.html>, '
+ 'section "Old-Format Configuration Files".')
not_utf8_error = """\
Unable to read configuration file "%s": content not encoded as UTF-8.
Modified: trunk/docutils/docutils/languages/__init__.py
===================================================================
--- trunk/docutils/docutils/languages/__init__.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/__init__.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -74,7 +74,8 @@
if self.fallback:
module = self.import_from_packages(self.fallback)
if reporter and (language_code != 'en'):
- reporter.info('Using %s for language "%s".'%(module, language_code))
+ reporter.info('Using %s for language "%s".'
+ % (module, language_code))
self.cache[language_code] = module
return module
Modified: trunk/docutils/docutils/languages/af.py
===================================================================
--- trunk/docutils/docutils/languages/af.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/af.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Afrikaans-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/ar.py
===================================================================
--- trunk/docutils/docutils/languages/ar.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/ar.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Arabic-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/ca.py
===================================================================
--- trunk/docutils/docutils/languages/ca.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/ca.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Catalan-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/cs.py
===================================================================
--- trunk/docutils/docutils/languages/cs.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/cs.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Czech-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/da.py
===================================================================
--- trunk/docutils/docutils/languages/da.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/da.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Danish-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/de.py
===================================================================
--- trunk/docutils/docutils/languages/de.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/de.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
German language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/en.py
===================================================================
--- trunk/docutils/docutils/languages/en.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/en.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
English-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/eo.py
===================================================================
--- trunk/docutils/docutils/languages/eo.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/eo.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Esperanto-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/es.py
===================================================================
--- trunk/docutils/docutils/languages/es.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/es.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Spanish-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/fa.py
===================================================================
--- trunk/docutils/docutils/languages/fa.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/fa.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Persian-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/fi.py
===================================================================
--- trunk/docutils/docutils/languages/fi.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/fi.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Finnish-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/fr.py
===================================================================
--- trunk/docutils/docutils/languages/fr.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/fr.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
French-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/gl.py
===================================================================
--- trunk/docutils/docutils/languages/gl.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/gl.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -5,9 +5,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Galician-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/he.py
===================================================================
--- trunk/docutils/docutils/languages/he.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/he.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Hebrew-language mappings for language-dependent features of Docutils.
@@ -24,7 +24,8 @@
'revision': '\u05de\u05d4\u05d3\u05d5\u05e8\u05d4',
'status': '\u05e1\u05d8\u05d8\u05d5\u05e1',
'date': '\u05ea\u05d0\u05e8\u05d9\u05da',
- 'copyright': '\u05d6\u05db\u05d5\u05d9\u05d5\u05ea \u05e9\u05de\u05d5\u05e8\u05d5\u05ea',
+ 'copyright': ('\u05d6\u05db\u05d5\u05d9\u05d5\u05ea '
+ '\u05e9\u05de\u05d5\u05e8\u05d5\u05ea'),
'dedication': '\u05d4\u05e7\u05d3\u05e9\u05d4',
'abstract': '\u05ea\u05e7\u05e6\u05d9\u05e8',
'attention': '\u05ea\u05e9\u05d5\u05de\u05ea \u05dc\u05d1',
@@ -50,7 +51,7 @@
'\u05de\u05d4\u05d3\u05d5\u05e8\u05d4': 'revision',
'\u05e1\u05d8\u05d8\u05d5\u05e1': 'status',
'\u05ea\u05d0\u05e8\u05d9\u05da': 'date',
- '\u05d6\u05db\u05d5\u05d9\u05d5\u05ea \u05e9\u05de\u05d5\u05e8\u05d5\u05ea': 'copyright',
+ '\u05d6\u05db\u05d5\u05d9\u05d5\u05ea \u05e9\u05de\u05d5\u05e8\u05d5\u05ea': 'copyright', # noqa:E501
'\u05d4\u05e7\u05d3\u05e9\u05d4': 'dedication',
'\u05ea\u05e7\u05e6\u05d9\u05e8': 'abstract'}
"""Hebrew to canonical name mapping for bibliographic fields."""
Modified: trunk/docutils/docutils/languages/it.py
===================================================================
--- trunk/docutils/docutils/languages/it.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/it.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Italian-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/ja.py
===================================================================
--- trunk/docutils/docutils/languages/ja.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/ja.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Japanese-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/ko.py
===================================================================
--- trunk/docutils/docutils/languages/ko.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/ko.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Korean-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/lt.py
===================================================================
--- trunk/docutils/docutils/languages/lt.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/lt.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Lithuanian language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/lv.py
===================================================================
--- trunk/docutils/docutils/languages/lv.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/lv.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -2,9 +2,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Latvian-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/nl.py
===================================================================
--- trunk/docutils/docutils/languages/nl.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/nl.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Dutch-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/pl.py
===================================================================
--- trunk/docutils/docutils/languages/pl.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/pl.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Polish-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/pt_br.py
===================================================================
--- trunk/docutils/docutils/languages/pt_br.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/pt_br.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,12 +3,12 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
-Brazilian Portuguese-language mappings for language-dependent features of Docutils.
+Brazilian Portuguese-language mappings for language-dependent features.
"""
__docformat__ = 'reStructuredText'
@@ -53,7 +53,7 @@
'copyright': 'copyright',
'dedicat\u00F3ria': 'dedication',
'resumo': 'abstract'}
-"""Brazilian Portuguese (lowcased) to canonical name mapping for bibliographic fields."""
+"""Brazilian Portuguese (lowcased) name mapping for bibliographic fields."""
author_separators = [';', ',']
"""List of separator strings for the 'Authors' bibliographic field. Tried in
Modified: trunk/docutils/docutils/languages/ru.py
===================================================================
--- trunk/docutils/docutils/languages/ru.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/ru.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Russian-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/sk.py
===================================================================
--- trunk/docutils/docutils/languages/sk.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/sk.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Slovak-language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/sv.py
===================================================================
--- trunk/docutils/docutils/languages/sv.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/sv.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Swedish language mappings for language-dependent features of Docutils.
Modified: trunk/docutils/docutils/languages/zh_cn.py
===================================================================
--- trunk/docutils/docutils/languages/zh_cn.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/zh_cn.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Simplified Chinese language mappings for language-dependent features
Modified: trunk/docutils/docutils/languages/zh_tw.py
===================================================================
--- trunk/docutils/docutils/languages/zh_tw.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/languages/zh_tw.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,12 +3,12 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
-Traditional Chinese language mappings for language-dependent features of Docutils.
+Traditional Chinese language mappings for language-dependent features.
"""
__docformat__ = 'reStructuredText'
Modified: trunk/docutils/docutils/nodes.py
===================================================================
--- trunk/docutils/docutils/nodes.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/nodes.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -53,9 +53,8 @@
@property
def document(self):
+ """Return the `document` root node of the tree containing this Node.
"""
- Return the `document` node at the root of the tree containing this Node.
- """
try:
return self._document or self.parent.document
except AttributeError:
Modified: trunk/docutils/docutils/parsers/rst/__init__.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/__init__.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/__init__.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -101,7 +101,8 @@
('Recognize and link to standalone RFC references (like "RFC 822").',
['--rfc-references'],
{'action': 'store_true', 'validator': frontend.validate_boolean}),
- ('Base URL for RFC references (default "https://tools.ietf.org/html/").',
+ ('Base URL for RFC references '
+ '(default "https://tools.ietf.org/html/").',
['--rfc-base-url'],
{'metavar': '<URL>', 'default': 'https://tools.ietf.org/html/',
'validator': frontend.validate_url_trailing_slash}),
@@ -264,15 +265,16 @@
- ``lineno`` is the absolute line number of the first line
of the directive.
- - ``content_offset`` is the line offset of the first line of the content from
- the beginning of the current input. Used when initiating a nested parse.
+ - ``content_offset`` is the line offset of the first line
+ of the content from the beginning of the current input.
+ Used when initiating a nested parse.
- ``block_text`` is a string containing the entire directive.
- ``state`` is the state which called the directive function.
- - ``state_machine`` is the state machine which controls the state which called
- the directive function.
+ - ``state_machine`` is the state machine which controls the state
+ which called the directive function.
- ``reporter`` is the state machine's `reporter` instance.
Modified: trunk/docutils/docutils/parsers/rst/directives/body.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/directives/body.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/directives/body.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -38,7 +38,8 @@
self.assert_has_content()
if self.arguments: # title (in sidebars optional)
title_text = self.arguments[0]
- textnodes, messages = self.state.inline_text(title_text, self.lineno)
+ textnodes, messages = self.state.inline_text(
+ title_text, self.lineno)
titles = [nodes.title(title_text, '', *textnodes)]
# Sidebar uses this code.
if 'subtitle' in self.options:
Modified: trunk/docutils/docutils/parsers/rst/directives/misc.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/directives/misc.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/directives/misc.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -323,8 +323,8 @@
else:
return [
self.reporter.error(
- 'Error in "%s" directive: may contain a single paragraph '
- 'only.' % self.name, line=self.lineno)]
+ f'Error in "{self.name}" directive: may contain '
+ 'a single paragraph only.', line=self.lineno)]
if node:
return messages + node.children
return messages
@@ -631,24 +631,3 @@
'content: None' % (self.name, self.arguments, self.options),
line=self.lineno)
return [info]
-
-# Old-style, functional definition:
-#
-# def directive_test_function(name, arguments, options, content, lineno,
-# content_offset, block_text, state, state_machine):
-# """This directive is useful only for testing purposes."""
-# if content:
-# text = '\n'.join(content)
-# info = reporter.info(
-# 'Directive processed. Type="%s", arguments=%r, options=%r, '
-# 'content:' % (name, arguments, options),
-# nodes.literal_block(text, text), line=lineno)
-# else:
-# info = reporter.info(
-# 'Directive processed. Type="%s", arguments=%r, options=%r, '
-# 'content: None' % (name, arguments, options), line=lineno)
-# return [info]
-#
-# directive_test_function.arguments = (0, 1, 1)
-# directive_test_function.options = {'option': directives.unchanged_required}
-# directive_test_function.content = 1
Modified: trunk/docutils/docutils/parsers/rst/directives/tables.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/directives/tables.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/directives/tables.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -72,23 +72,26 @@
line=self.lineno)
raise SystemMessagePropagation(error)
if len(rows) == header_rows > 0:
- error = self.reporter.error('Insufficient data supplied (%s row(s)); '
- 'no data remaining for table body, required by "%s" directive.'
- % (len(rows), self.name),
+ error = self.reporter.error(
+ f'Insufficient data supplied ({len(rows)} row(s)); '
+ 'no data remaining for table body, '
+ f'required by "{self.name}" directive.',
nodes.literal_block(self.block_text, self.block_text),
line=self.lineno)
raise SystemMessagePropagation(error)
for row in rows:
if len(row) < stub_columns:
- error = self.reporter.error('%s stub column(s) specified but '
- 'only %s columns(s) of data supplied ("%s" directive).'
- % (stub_columns, len(row), self.name),
+ error = self.reporter.error(
+ f'{stub_columns} stub column(s) specified '
+ f'but only {len(row)} columns(s) of data supplied '
+ f'("{self.name}" directive).',
nodes.literal_block(self.block_text, self.block_text),
line=self.lineno)
raise SystemMessagePropagation(error)
if len(row) == stub_columns > 0:
- error = self.reporter.error('Insufficient data supplied '
- '(%s columns(s)); no data remaining for table body, required '
+ error = self.reporter.error(
+ 'Insufficient data supplied (%s columns(s)); '
+ 'no data remaining for table body, required '
'by "%s" directive.' % (len(row), self.name),
nodes.literal_block(self.block_text, self.block_text),
line=self.lineno)
@@ -287,7 +290,7 @@
"""
encoding = self.options.get(
'encoding', self.state.document.settings.input_encoding)
- error_handler = self.state.document.settings.input_encoding_error_handler
+ error_handler = self.state.document.settings.input_encoding_error_handler # noqa:E501
if self.content:
# CSV data is from directive content.
if 'file' in self.options or 'url' in self.options:
@@ -475,7 +478,8 @@
col_widths = self.get_column_widths(num_cols)
return num_cols, col_widths
- def build_table_from_list(self, table_data, col_widths, header_rows, stub_columns):
+ def build_table_from_list(self, table_data,
+ col_widths, header_rows, stub_columns):
table = nodes.table()
if self.widths == 'auto':
table['classes'] += ['colwidths-auto']
Modified: trunk/docutils/docutils/parsers/rst/languages/af.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/af.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/af.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Afrikaans-language mappings for language-dependent features of
@@ -103,5 +103,5 @@
'url': 'uri-reference',
'rou': 'raw',
}
-"""Mapping of Afrikaans role names to canonical role names for interpreted text.
+"""Mapping of Afrikaans role names to canonical names for interpreted text.
"""
Modified: trunk/docutils/docutils/parsers/rst/languages/ar.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/ar.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/ar.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Arabic-language mappings for language-dependent features of
Modified: trunk/docutils/docutils/parsers/rst/languages/ca.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/ca.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/ca.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Catalan-language mappings for language-dependent features of
@@ -73,7 +73,7 @@
# 'citations': 'citations',
'notes-amb-destinacions': 'target-notes',
'notes-destinacions': 'target-notes',
- 'directiva-de-prova-de-restructuredtext': 'restructuredtext-test-directive'}
+ 'directiva-de-prova-de-restructuredtext': 'restructuredtext-test-directive'} # noqa:E501
"""Catalan name to registered (in directives/__init__.py) directive name
mapping."""
Modified: trunk/docutils/docutils/parsers/rst/languages/cs.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/cs.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/cs.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Czech-language mappings for language-dependent features of
@@ -18,7 +18,8 @@
directives = {
# language-dependent: fixed
'pozor': 'attention',
- 'caution (translation required)': 'caution', # jak rozlisit caution a warning?
+ # jak rozlisit caution a warning?
+ 'caution (translation required)': 'caution',
'code (translation required)': 'code',
'nebezpe\u010D\u00ED': 'danger',
'chyba': 'error',
Modified: trunk/docutils/docutils/parsers/rst/languages/da.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/da.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/da.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Danish-language mappings for language-dependent features of
Modified: trunk/docutils/docutils/parsers/rst/languages/de.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/de.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/de.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -4,9 +4,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
German-language mappings for language-dependent features of
@@ -38,7 +38,8 @@
'epigraph': 'epigraph',
'highlights': 'highlights',
'pull-quote': 'pull-quote', # commonly used in German too
- 'seitenansprache': 'pull-quote', # cf. http://www.typografie.info/2/wiki.php?title=Seitenansprache
+ 'seitenansprache': 'pull-quote',
+ # cf. http://www.typografie.info/2/wiki.php?title=Seitenansprache
'zusammengesetzt': 'compound',
'verbund': 'compound',
'container': 'container',
Modified: trunk/docutils/docutils/parsers/rst/languages/en.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/en.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/en.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
English-language mappings for language-dependent features of
Modified: trunk/docutils/docutils/parsers/rst/languages/eo.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/eo.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/eo.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Esperanto-language mappings for language-dependent features of
@@ -114,5 +114,5 @@
'url': 'uri-reference',
'senanaliza': 'raw',
}
-"""Mapping of Esperanto role names to canonical role names for interpreted text.
+"""Mapping of Esperanto role names to canonical names for interpreted text.
"""
Modified: trunk/docutils/docutils/parsers/rst/languages/es.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/es.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/es.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Spanish-language mappings for language-dependent features of
@@ -102,7 +102,7 @@
'enfasis': 'emphasis',
'\u00e9nfasis': 'emphasis',
'destacado': 'strong',
- 'literal': 'literal', # "literal" is also a word in Spanish :-)
+ 'literal': 'literal', # "literal" is also a word in Spanish :-)
'math (translation required)': 'math',
'referencia-con-nombre': 'named-reference',
'referencia-anonima': 'anonymous-reference',
Modified: trunk/docutils/docutils/parsers/rst/languages/fa.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/fa.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/fa.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Persian-language mappings for language-dependent features of
Modified: trunk/docutils/docutils/parsers/rst/languages/fi.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/fi.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/fi.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Finnish-language mappings for language-dependent features of
Modified: trunk/docutils/docutils/parsers/rst/languages/fr.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/fr.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/fr.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
French-language mappings for language-dependent features of
Modified: trunk/docutils/docutils/parsers/rst/languages/gl.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/gl.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/gl.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -5,9 +5,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Galician-language mappings for language-dependent features of
Modified: trunk/docutils/docutils/parsers/rst/languages/he.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/he.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/he.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
English-language mappings for language-dependent features of
Modified: trunk/docutils/docutils/parsers/rst/languages/ja.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/ja.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/ja.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Japanese-language mappings for language-dependent features of
Modified: trunk/docutils/docutils/parsers/rst/languages/ko.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/ko.py 2022-03-05 23:27:50 UTC (rev 9029)
+++ trunk/docutils/docutils/parsers/rst/languages/ko.py 2022-03-05 23:28:32 UTC (rev 9030)
@@ -3,9 +3,9 @@
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>. Two files must be
-# translated for each language: one in docutils/languages, the other in
-# docutils/parsers/rst/languages.
+# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# Two files must be translated for each language: one in docutils/languages,
+# the other in docutils/parsers/rst/languages.
"""
Korean-language mappings for language-dependent features of
Modified: tr...
[truncated message content] |