|
From: <mi...@us...> - 2022-03-04 15:55:03
|
Revision: 9022
http://sourceforge.net/p/docutils/code/9022
Author: milde
Date: 2022-03-04 15:54:56 +0000 (Fri, 04 Mar 2022)
Log Message:
-----------
Ensure comments start with '# '
flake rules
E262: inline comment should start with '# '
E265: block comment should start with '# '
E266: too many leading '#' for block comment
Exception for latex2e (legacy convention to mark disabled code with ##).
Modified Paths:
--------------
trunk/docutils/docutils/core.py
trunk/docutils/docutils/parsers/__init__.py
trunk/docutils/docutils/parsers/rst/directives/__init__.py
trunk/docutils/docutils/parsers/rst/directives/body.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/it.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/sk.py
trunk/docutils/docutils/parsers/rst/languages/zh_cn.py
trunk/docutils/docutils/parsers/rst/languages/zh_tw.py
trunk/docutils/docutils/utils/math/tex2unichar.py
trunk/docutils/docutils/utils/roman.py
trunk/docutils/docutils/writers/docutils_xml.py
trunk/docutils/docutils/writers/latex2e/__init__.py
trunk/docutils/docutils/writers/manpage.py
trunk/docutils/docutils/writers/odf_odt/__init__.py
trunk/docutils/docutils/writers/s5_html/__init__.py
trunk/docutils/test/local_dummy_lang.py
trunk/docutils/test/test_language.py
trunk/docutils/test/test_nodes.py
trunk/docutils/test/test_writers/test_get_writer_class.py
trunk/docutils/test/test_writers/test_odt.py
trunk/docutils/tox.ini
Modified: trunk/docutils/docutils/core.py
===================================================================
--- trunk/docutils/docutils/core.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/core.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -107,7 +107,7 @@
parts = config_section.split()
if len(parts) > 1 and parts[-1] == 'application':
settings_spec.config_section_dependencies = ['applications']
- #@@@ Add self.source & self.destination to components in future?
+ # @@@ Add self.source & self.destination to components in future?
option_parser = OptionParser(
components=(self.parser, self.reader, self.writer, settings_spec),
defaults=defaults, read_config_files=True,
Modified: trunk/docutils/docutils/parsers/__init__.py
===================================================================
--- trunk/docutils/docutils/parsers/__init__.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/__init__.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -75,7 +75,7 @@
# 3rd-party Markdown parsers
'recommonmark': 'docutils.parsers.recommonmark_wrapper',
'myst': 'myst_parser.docutils_',
- #'pycmark': works out of the box
+ # 'pycmark': works out of the box
# TODO: the following two could be either of the above
'commonmark': 'docutils.parsers.recommonmark_wrapper',
'markdown': 'docutils.parsers.recommonmark_wrapper',
Modified: trunk/docutils/docutils/parsers/rst/directives/__init__.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/directives/__init__.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/directives/__init__.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -40,7 +40,7 @@
'pull-quote': ('body', 'PullQuote'),
'compound': ('body', 'Compound'),
'container': ('body', 'Container'),
- #'questions': ('body', 'question_list'),
+ # 'questions': ('body', 'question_list'),
'table': ('tables', 'RSTTable'),
'csv-table': ('tables', 'CSVTable'),
'list-table': ('tables', 'ListTable'),
@@ -50,11 +50,11 @@
'sectnum': ('parts', 'Sectnum'),
'header': ('parts', 'Header'),
'footer': ('parts', 'Footer'),
- #'footnotes': ('parts', 'footnotes'),
- #'citations': ('parts', 'citations'),
+ # 'footnotes': ('parts', 'footnotes'),
+ # 'citations': ('parts', 'citations'),
'target-notes': ('references', 'TargetNotes'),
'meta': ('misc', 'Meta'),
- #'imagemap': ('html', 'imagemap'),
+ # 'imagemap': ('html', 'imagemap'),
'raw': ('misc', 'Raw'),
'include': ('misc', 'Include'),
'replace': ('misc', 'Replace'),
Modified: trunk/docutils/docutils/parsers/rst/directives/body.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/directives/body.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/directives/body.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -194,7 +194,7 @@
option_spec = {'class': directives.class_option,
'name': directives.unchanged,
- ## TODO: Add Sphinx' ``mathbase.py`` option 'nowrap'?
+ # TODO: Add Sphinx' ``mathbase.py`` option 'nowrap'?
# 'nowrap': directives.flag,
}
has_content = True
Modified: trunk/docutils/docutils/parsers/rst/languages/af.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/af.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/af.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -38,14 +38,14 @@
'pull-quote (translation required)': 'pull-quote',
'compound (translation required)': 'compound',
'container (translation required)': 'container',
- #'vrae': 'questions',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'vrae': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'table (translation required)': 'table',
'csv-table (translation required)': 'csv-table',
'list-table (translation required)': 'list-table',
'meta': 'meta',
- #'beeldkaart': 'imagemap',
+ # 'beeldkaart': 'imagemap',
'beeld': 'image',
'figuur': 'figure',
'insluiting': 'include',
@@ -62,8 +62,8 @@
'section-numbering': 'sectnum',
'header (translation required)': 'header',
'footer (translation required)': 'footer',
- #'voetnote': 'footnotes',
- #'aanhalings': 'citations',
+ # 'voetnote': 'footnotes',
+ # 'aanhalings': 'citations',
'teikennotas': 'target-notes',
'restructuredtext-test-directive': 'restructuredtext-test-directive'}
"""Afrikaans name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/docutils/parsers/rst/languages/ar.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/ar.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/ar.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -37,15 +37,15 @@
'نقل-قول': 'pull-quote',
'ترکیب': 'compound',
'وعاء': 'container',
- #'questions': 'questions',
+ # 'questions': 'questions',
'جدول': 'table',
'جدول-csv': 'csv-table',
'جدول-قوائم': 'list-table',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'ميتا': 'meta',
'رياضيات': 'math',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'صورة': 'image',
'رسم-توضيحي': 'figure',
'تضمين': 'include',
@@ -62,8 +62,8 @@
'رقم-القسم': 'sectnum',
'رأس-الصفحة': 'header',
'هامش': 'footer',
- #'footnotes': 'footnotes',
- #'citations': 'citations',
+ # 'footnotes': 'footnotes',
+ # 'citations': 'citations',
'': 'target-notes',
}
"""Arabic name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/docutils/parsers/rst/languages/ca.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/ca.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/ca.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -40,15 +40,15 @@
'cita-destacada': 'pull-quote',
'compost': 'compound',
'container (translation required)': 'container',
- #'questions': 'questions',
+ # 'questions': 'questions',
'taula': 'table',
'taula-csv': 'csv-table',
'taula-llista': 'list-table',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'math (translation required)': 'math',
'meta': 'meta',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'imatge': 'image',
'figura': 'figure',
'inclou': 'include',
@@ -69,8 +69,8 @@
'cap\u00E7alera': 'header',
'peu-de-p\u00E0gina': 'footer',
'peu-p\u00E0gina': 'footer',
- #'footnotes': 'footnotes',
- #'citations': 'citations',
+ # 'footnotes': 'footnotes',
+ # 'citations': 'citations',
'notes-amb-destinacions': 'target-notes',
'notes-destinacions': 'target-notes',
'directiva-de-prova-de-restructuredtext': 'restructuredtext-test-directive'}
Modified: trunk/docutils/docutils/parsers/rst/languages/cs.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/cs.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/cs.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -38,15 +38,15 @@
'pull-quote (translation required)': 'pull-quote',
'compound (translation required)': 'compound',
'container (translation required)': 'container',
- #'questions': 'questions',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'questions': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'table (translation required)': 'table',
'csv-table (translation required)': 'csv-table',
'list-table (translation required)': 'list-table',
'math (translation required)': 'math',
'meta (translation required)': 'meta',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'image (translation required)': 'image', # obrazek
'figure (translation required)': 'figure', # a tady?
'include (translation required)': 'include',
@@ -63,8 +63,8 @@
'section-numbering (translation required)': 'sectnum',
'header (translation required)': 'header',
'footer (translation required)': 'footer',
- #'footnotes': 'footnotes',
- #'citations': 'citations',
+ # 'footnotes': 'footnotes',
+ # 'citations': 'citations',
'target-notes (translation required)': 'target-notes',
'restructuredtext-test-directive': 'restructuredtext-test-directive'}
"""Czech name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/docutils/parsers/rst/languages/da.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/da.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/da.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -41,15 +41,15 @@
'pull-quote (translation required)': 'pull-quote',
'compound (translation required)': 'compound',
'container (translation required)': 'container',
- #'questions': 'questions',
+ # 'questions': 'questions',
'tabel': 'table',
'csv-tabel': 'csv-table',
'liste-tabel': 'list-table',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'meta': 'meta',
'math (translation required)': 'math',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'billede': 'image',
'figur': 'figure',
'inkludér': 'include',
@@ -67,8 +67,8 @@
'sektions-nummerering': 'sectnum',
'sidehovede': 'header',
'sidefod': 'footer',
- #'footnotes': 'footnotes',
- #'citations': 'citations',
+ # 'footnotes': 'footnotes',
+ # 'citations': 'citations',
'target-notes (translation required)': 'target-notes',
'restructuredtext-test-direktiv': 'restructuredtext-test-directive'}
"""Danish name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/docutils/parsers/rst/languages/de.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/de.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/de.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -42,7 +42,7 @@
'zusammengesetzt': 'compound',
'verbund': 'compound',
'container': 'container',
- #'fragen': 'questions',
+ # 'fragen': 'questions',
'tabelle': 'table',
'csv-tabelle': 'csv-table',
'listentabelle': 'list-table',
@@ -49,7 +49,7 @@
'mathe': 'math',
'formel': 'math',
'meta': 'meta',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'bild': 'image',
'abbildung': 'figure',
'unverändert': 'raw',
@@ -70,8 +70,8 @@
'linkziel-fußnoten': 'target-notes',
'kopfzeilen': 'header',
'fußzeilen': 'footer',
- #'fußnoten': 'footnotes',
- #'zitate': 'citations',
+ # 'fußnoten': 'footnotes',
+ # 'zitate': 'citations',
}
"""German name to registered (in directives/__init__.py) directive name
mapping."""
Modified: trunk/docutils/docutils/parsers/rst/languages/en.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/en.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/en.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -40,15 +40,15 @@
'pull-quote': 'pull-quote',
'compound': 'compound',
'container': 'container',
- #'questions': 'questions',
+ # 'questions': 'questions',
'table': 'table',
'csv-table': 'csv-table',
'list-table': 'list-table',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'meta': 'meta',
'math': 'math',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'image': 'image',
'figure': 'figure',
'include': 'include',
@@ -65,8 +65,8 @@
'section-numbering': 'sectnum',
'header': 'header',
'footer': 'footer',
- #'footnotes': 'footnotes',
- #'citations': 'citations',
+ # 'footnotes': 'footnotes',
+ # 'citations': 'citations',
'target-notes': 'target-notes',
'restructuredtext-test-directive': 'restructuredtext-test-directive'}
"""English name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/docutils/parsers/rst/languages/eo.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/eo.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/eo.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -43,9 +43,9 @@
'kombina\u0135o': 'compound',
'tekstingo': 'container',
'enhavilo': 'container',
- #'questions': 'questions',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'questions': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'tabelo': 'table',
'tabelo-vdk': 'csv-table', # "valoroj disigitaj per komoj"
'tabelo-csv': 'csv-table',
@@ -52,7 +52,7 @@
'tabelo-lista': 'list-table',
'meta': 'meta',
'math (translation required)': 'math',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'bildo': 'image',
'figuro': 'figure',
'inkludi': 'include',
@@ -70,8 +70,8 @@
'sekcia-numerado': 'sectnum',
'kapsekcio': 'header',
'piedsekcio': 'footer',
- #'footnotes': 'footnotes',
- #'citations': 'citations',
+ # 'footnotes': 'footnotes',
+ # 'citations': 'citations',
'celaj-notoj': 'target-notes',
'restructuredtext-test-directive': 'restructuredtext-test-directive'}
"""Esperanto name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/docutils/parsers/rst/languages/es.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/es.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/es.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -42,9 +42,9 @@
'combinacion': 'compound',
'combinaci\u00f3n': 'compound',
'contenedor': 'container',
- #'questions': 'questions',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'questions': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'tabla': 'table',
'tabla-vsc': 'csv-table',
'tabla-csv': 'csv-table',
@@ -51,7 +51,7 @@
'tabla-lista': 'list-table',
'meta': 'meta',
'math (translation required)': 'math',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'imagen': 'image',
'figura': 'figure',
'incluir': 'include',
@@ -74,8 +74,8 @@
'notas-destino': 'target-notes',
'cabecera': 'header',
'pie': 'footer',
- #'footnotes': 'footnotes',
- #'citations': 'citations',
+ # 'footnotes': 'footnotes',
+ # 'citations': 'citations',
'restructuredtext-test-directive': 'restructuredtext-test-directive'}
"""Spanish name to registered (in directives/__init__.py) directive name
mapping."""
Modified: trunk/docutils/docutils/parsers/rst/languages/fa.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/fa.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/fa.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -40,15 +40,15 @@
'نقل-قول': 'pull-quote',
'ترکیب': 'compound',
'ظرف': 'container',
- #'questions': 'questions',
+ # 'questions': 'questions',
'جدول': 'table',
'جدول-csv': 'csv-table',
'جدول-لیست': 'list-table',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'متا': 'meta',
'ریاضی': 'math',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'تصویر': 'image',
'شکل': 'figure',
'شامل': 'include',
@@ -65,8 +65,8 @@
'شمارهگذاری-فصل': 'sectnum',
'سرآیند': 'header',
'پاصفحه': 'footer',
- #'footnotes': 'footnotes',
- #'citations': 'citations',
+ # 'footnotes': 'footnotes',
+ # 'citations': 'citations',
'یادداشت-هدف': 'target-notes',
}
"""Persian name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/docutils/parsers/rst/languages/fi.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/fi.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/fi.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -41,10 +41,10 @@
'list-table (translation required)': 'list-table',
'compound (translation required)': 'compound',
'container (translation required)': 'container',
- #'kysymykset': 'questions',
+ # 'kysymykset': 'questions',
'meta': 'meta',
'math (translation required)': 'math',
- #'kuvakartta': 'imagemap',
+ # 'kuvakartta': 'imagemap',
'kuva': 'image',
'kaavio': 'figure',
'sis\u00e4llyt\u00e4': 'include',
@@ -60,8 +60,8 @@
'kappale': 'sectnum',
'header (translation required)': 'header',
'footer (translation required)': 'footer',
- #'alaviitteet': 'footnotes',
- #'viitaukset': 'citations',
+ # 'alaviitteet': 'footnotes',
+ # 'viitaukset': 'citations',
'target-notes (translation required)': 'target-notes'}
"""Finnish name to registered (in directives/__init__.py) directive name
mapping."""
Modified: trunk/docutils/docutils/parsers/rst/languages/fr.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/fr.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/fr.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -39,15 +39,15 @@
'accroche': 'pull-quote',
'compound (translation required)': 'compound',
'container (translation required)': 'container',
- #'questions': 'questions',
- #'qr': 'questions',
- #'faq': 'questions',
+ # 'questions': 'questions',
+ # 'qr': 'questions',
+ # 'faq': 'questions',
'tableau': 'table',
'csv-table (translation required)': 'csv-table',
'list-table (translation required)': 'list-table',
'm\u00E9ta': 'meta',
'math (translation required)': 'math',
- #'imagemap (translation required)': 'imagemap',
+ # 'imagemap (translation required)': 'imagemap',
'image': 'image',
'figure': 'figure',
'inclure': 'include',
@@ -67,8 +67,8 @@
'liens': 'target-notes',
'header (translation required)': 'header',
'footer (translation required)': 'footer',
- #'footnotes (translation required)': 'footnotes',
- #'citations (translation required)': 'citations',
+ # 'footnotes (translation required)': 'footnotes',
+ # 'citations (translation required)': 'citations',
}
"""French name to registered (in directives/__init__.py) directive name
mapping."""
Modified: trunk/docutils/docutils/parsers/rst/languages/gl.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/gl.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/gl.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -40,15 +40,15 @@
'coller-citaci\u00f3n': 'pull-quote',
'compor': 'compound',
'recipiente': 'container',
- #'questions': 'questions',
+ # 'questions': 'questions',
't\u00e1boa': 'table',
't\u00e1boa-csv': 'csv-table',
't\u00e1boa-listaxe': 'list-table',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'meta': 'meta',
'math (translation required)': 'math',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'imaxe': 'image',
'figura': 'figure',
'inclu\u00edr': 'include',
@@ -65,8 +65,8 @@
'secci\u00f3n-numerar': 'sectnum',
'cabeceira': 'header',
'p\u00e9 de p\u00e1xina': 'footer',
- #'footnotes': 'footnotes',
- #'citations': 'citations',
+ # 'footnotes': 'footnotes',
+ # 'citations': 'citations',
'notas-destino': 'target-notes',
'texto restruturado-proba-directiva': 'restructuredtext-test-directive'}
"""Galician name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/docutils/parsers/rst/languages/he.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/he.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/he.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -38,15 +38,15 @@
'pull-quote': 'pull-quote',
'compound': 'compound',
'container': 'container',
- #'questions': 'questions',
+ # 'questions': 'questions',
'table': 'table',
'csv-table': 'csv-table',
'list-table': 'list-table',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'meta': 'meta',
'math (translation required)': 'math',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'\u05ea\u05de\u05d5\u05e0\u05d4': 'image',
'figure': 'figure',
'include': 'include',
@@ -63,8 +63,8 @@
'section-numbering': 'sectnum',
'header': 'header',
'footer': 'footer',
- #'footnotes': 'footnotes',
- #'citations': 'citations',
+ # 'footnotes': 'footnotes',
+ # 'citations': 'citations',
'target-notes': 'target-notes',
'restructuredtext-test-directive': 'restructuredtext-test-directive'}
"""English name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/docutils/parsers/rst/languages/it.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/it.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/it.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -38,15 +38,15 @@
'estratto-evidenziato': 'pull-quote',
'composito': 'compound',
'container (translation required)': 'container',
- #'questions': 'questions',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'questions': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'tabella': 'table',
'tabella-csv': 'csv-table',
'tabella-elenco': 'list-table',
'meta': 'meta',
'math (translation required)': 'math',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'immagine': 'image',
'figura': 'figure',
'includi': 'include',
@@ -65,8 +65,8 @@
'annota-riferimenti-esterni': 'target-notes',
'intestazione': 'header',
'piede-pagina': 'footer',
- #'footnotes': 'footnotes',
- #'citations': 'citations',
+ # 'footnotes': 'footnotes',
+ # 'citations': 'citations',
'restructuredtext-test-directive': 'restructuredtext-test-directive'}
"""Italian name to registered (in directives/__init__.py) directive name
mapping."""
Modified: trunk/docutils/docutils/parsers/rst/languages/ja.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/ja.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/ja.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -46,12 +46,12 @@
'表': 'table',
'csv表': 'csv-table',
'リスト表': 'list-table',
- #'質問': 'questions',
- #'問答': 'questions',
- #'faq': 'questions',
+ # '質問': 'questions',
+ # '問答': 'questions',
+ # 'faq': 'questions',
'math (translation required)': 'math',
'メタ': 'meta',
- #'イメージマプ': 'imagemap',
+ # 'イメージマプ': 'imagemap',
'イメージ': 'image',
'画像': 'image',
'フィグア': 'figure',
@@ -77,8 +77,8 @@
'節数': 'sectnum',
'ヘッダ': 'header',
'フッタ': 'footer',
- #'脚注': 'footnotes', # 脚註?
- #'サイテーション': 'citations', # 出典 引証 引用
+ # '脚注': 'footnotes', # 脚註?
+ # 'サイテーション': 'citations', # 出典 引証 引用
'ターゲットノート': 'target-notes', # 的注 的脚注
}
"""Japanese name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/docutils/parsers/rst/languages/ko.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/ko.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/ko.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -40,15 +40,15 @@
'발췌문': 'pull-quote',
'합성어': 'compound',
'컨테이너': 'container',
- #'질문': 'questions',
+ # '질문': 'questions',
'표': 'table',
'csv-표': 'csv-table',
'list-표': 'list-table',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'메타': 'meta',
'수학': 'math',
- #'이미지맵': 'imagemap',
+ # '이미지맵': 'imagemap',
'이미지': 'image',
'도표': 'figure',
'포함': 'include',
@@ -65,8 +65,8 @@
'섹션-번호-매기기': 'sectnum',
'머리말': 'header',
'꼬리말': 'footer',
- #'긱주': 'footnotes',
- #'인용구': 'citations',
+ # '긱주': 'footnotes',
+ # '인용구': 'citations',
'목표-노트': 'target-notes',
'restructuredtext 테스트 지시어': 'restructuredtext-test-directive'}
"""Korean name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/docutils/parsers/rst/languages/lt.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/lt.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/lt.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -38,15 +38,15 @@
'atitraukta-citata': 'pull-quote',
'sudėtinis-darinys': 'compound',
'konteineris': 'container',
- #'questions': 'questions',
+ # 'questions': 'questions',
'lentelė': 'table',
'csv-lentelė': 'csv-table',
'sąrašo-lentelė': 'list-table',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'meta': 'meta',
'matematika': 'math',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'paveiksliukas': 'image',
'iliustracija': 'figure',
'pridėti': 'include',
@@ -63,8 +63,8 @@
'sekcijos-numeravimas': 'sectnum',
'antraštė': 'header',
'poraštė': 'footer',
- #'footnotes': 'footnotes',
- #'citations': 'citations',
+ # 'footnotes': 'footnotes',
+ # 'citations': 'citations',
'nutaikytos-pastaba': 'target-notes',
'restructuredtext-testinė-direktyva': 'restructuredtext-test-directive'}
"""Lithuanian name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/docutils/parsers/rst/languages/lv.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/lv.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/lv.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -39,15 +39,15 @@
'izvilkuma-citāts': 'pull-quote',
'savienojums': 'compound',
'konteiners': 'container',
- #'questions': 'questions',
+ # 'questions': 'questions',
'tabula': 'table',
'csv-tabula': 'csv-table',
'sarakstveida-tabula': 'list-table',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'meta': 'meta',
'matemātika': 'math',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'attēls': 'image',
'figūra': 'figure',
'ietvert': 'include',
@@ -63,8 +63,8 @@
'numurēt-sekcijas': 'sectnum',
'galvene': 'header',
'kājene': 'footer',
- #'footnotes': 'footnotes',
- #'citations': 'citations',
+ # 'footnotes': 'footnotes',
+ # 'citations': 'citations',
'atsauces-apakšā': 'target-notes',
'restructuredtext-testa-direktīva': 'restructuredtext-test-directive'}
"""English name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/docutils/parsers/rst/languages/nl.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/nl.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/nl.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -39,14 +39,14 @@
'samenstelling': 'compound',
'verbinding': 'compound',
'container (translation required)': 'container',
- #'vragen': 'questions',
+ # 'vragen': 'questions',
'tabel': 'table',
'csv-tabel': 'csv-table',
'lijst-tabel': 'list-table',
- #'veelgestelde-vragen': 'questions',
+ # 'veelgestelde-vragen': 'questions',
'meta': 'meta',
'math (translation required)': 'math',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'beeld': 'image',
'figuur': 'figure',
'opnemen': 'include',
@@ -65,8 +65,8 @@
'hoofdstuk-nummering': 'sectnum',
'header (translation required)': 'header',
'footer (translation required)': 'footer',
- #'voetnoten': 'footnotes',
- #'citaten': 'citations',
+ # 'voetnoten': 'footnotes',
+ # 'citaten': 'citations',
'verwijzing-voetnoten': 'target-notes',
'restructuredtext-test-instructie': 'restructuredtext-test-directive'}
"""Dutch name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/docutils/parsers/rst/languages/pl.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/pl.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/pl.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -38,15 +38,15 @@
'pull-quote': 'pull-quote', # FIXME no polish equivalent?
'z\u0142o\u017cony': 'compound',
'kontener': 'container',
- #'questions': 'questions',
+ # 'questions': 'questions',
'tabela': 'table',
'tabela-csv': 'csv-table',
'tabela-listowa': 'list-table',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'meta': 'meta',
'math (translation required)': 'math',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'obraz': 'image',
'rycina': 'figure',
'do\u0142\u0105cz': 'include',
@@ -63,8 +63,8 @@
'numeracja-sekcji': 'sectnum',
'nag\u0142\u00f3wek': 'header',
'stopka': 'footer',
- #'footnotes': 'footnotes',
- #'citations': 'citations',
+ # 'footnotes': 'footnotes',
+ # 'citations': 'citations',
'target-notes': 'target-notes', # FIXME no polish equivalent?
'restructuredtext-test-directive': 'restructuredtext-test-directive'}
"""Polish name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/docutils/parsers/rst/languages/pt_br.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/pt_br.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/pt_br.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -38,15 +38,15 @@
'cita\u00E7\u00E3o-destacada': 'pull-quote',
'compound (translation required)': 'compound',
'container (translation required)': 'container',
- #'perguntas': 'questions',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'perguntas': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'table (translation required)': 'table',
'csv-table (translation required)': 'csv-table',
'list-table (translation required)': 'list-table',
'meta': 'meta',
'math (translation required)': 'math',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'imagem': 'image',
'figura': 'figure',
'inclus\u00E3o': 'include',
@@ -63,8 +63,8 @@
'numera\u00E7\u00E3o-de-se\u00E7\u00F5es': 'sectnum',
'header (translation required)': 'header',
'footer (translation required)': 'footer',
- #'notas-de-rorap\u00E9': 'footnotes',
- #'cita\u00E7\u00F5es': 'citations',
+ # 'notas-de-rorap\u00E9': 'footnotes',
+ # 'cita\u00E7\u00F5es': 'citations',
'links-no-rodap\u00E9': 'target-notes',
'restructuredtext-test-directive': 'restructuredtext-test-directive'}
"""Brazilian Portuguese name to registered (in directives/__init__.py)
Modified: trunk/docutils/docutils/parsers/rst/languages/sk.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/sk.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/sk.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -37,15 +37,15 @@
'pull-quote (translation required)': 'pull-quote',
'compound (translation required)': 'compound',
'container (translation required)': 'container',
- #'questions': 'questions',
- #'qa': 'questions',
- #'faq': 'questions',
+ # 'questions': 'questions',
+ # 'qa': 'questions',
+ # 'faq': 'questions',
'table (translation required)': 'table',
'csv-table (translation required)': 'csv-table',
'list-table (translation required)': 'list-table',
'meta': 'meta',
'math (translation required)': 'math',
- #'imagemap': 'imagemap',
+ # 'imagemap': 'imagemap',
'obr\xe1zok': 'image',
'tvar': 'figure',
'vlo\x9ei\x9d': 'include',
@@ -63,8 +63,8 @@
'cie\xbeov\xe9-pozn\xe1mky': 'target-notes',
'header (translation required)': 'header',
'footer (translation required)': 'footer',
- #'footnotes': 'footnotes',
- #'citations': 'citations',
+ # 'footnotes': 'footnotes',
+ # 'citations': 'citations',
}
"""Slovak name to registered (in directives/__init__.py) directive name
mapping."""
Modified: trunk/docutils/docutils/parsers/rst/languages/zh_cn.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/zh_cn.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/zh_cn.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -38,15 +38,15 @@
'pull-quote (translation required)': 'pull-quote',
'复合': 'compound',
'容器': 'container',
- #'questions (translation required)': 'questions',
+ # 'questions (translation required)': 'questions',
'表格': 'table',
'csv表格': 'csv-table',
'列表表格': 'list-table',
- #'qa (translation required)': 'questions',
- #'faq (translation required)': 'questions',
+ # 'qa (translation required)': 'questions',
+ # 'faq (translation required)': 'questions',
'元数据': 'meta',
'math (translation required)': 'math',
- #'imagemap (translation required)': 'imagemap',
+ # 'imagemap (translation required)': 'imagemap',
'图片': 'image',
'图例': 'figure',
'包含': 'include',
@@ -62,8 +62,8 @@
'章节序号': 'sectnum',
'题头': 'header',
'页脚': 'footer',
- #'footnotes (translation required)': 'footnotes',
- #'citations (translation required)': 'citations',
+ # 'footnotes (translation required)': 'footnotes',
+ # 'citations (translation required)': 'citations',
'target-notes (translation required)': 'target-notes',
'restructuredtext-test-directive': 'restructuredtext-test-directive'}
"""Simplified Chinese name to registered (in directives/__init__.py)
Modified: trunk/docutils/docutils/parsers/rst/languages/zh_tw.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/zh_tw.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/parsers/rst/languages/zh_tw.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -38,15 +38,15 @@
'pull-quote (translation required)': 'pull-quote',
'compound (translation required)': 'compound',
'container (translation required)': 'container',
- #'questions (translation required)': 'questions',
+ # 'questions (translation required)': 'questions',
'table (translation required)': 'table',
'csv-table (translation required)': 'csv-table',
'list-table (translation required)': 'list-table',
- #'qa (translation required)': 'questions',
- #'faq (translation required)': 'questions',
+ # 'qa (translation required)': 'questions',
+ # 'faq (translation required)': 'questions',
'meta (translation required)': 'meta',
'math (translation required)': 'math',
- #'imagemap (translation required)': 'imagemap',
+ # 'imagemap (translation required)': 'imagemap',
'image (translation required)': 'image',
'figure (translation required)': 'figure',
'include (translation required)': 'include',
@@ -63,8 +63,8 @@
'section-numbering (translation required)': 'sectnum',
'header (translation required)': 'header',
'footer (translation required)': 'footer',
- #'footnotes (translation required)': 'footnotes',
- #'citations (translation required)': 'citations',
+ # 'footnotes (translation required)': 'footnotes',
+ # 'citations (translation required)': 'citations',
'target-notes (translation required)': 'target-notes',
'restructuredtext-test-directive': 'restructuredtext-test-directive'}
"""Traditional Chinese name to registered (in directives/__init__.py)
Modified: trunk/docutils/docutils/utils/math/tex2unichar.py
===================================================================
--- trunk/docutils/docutils/utils/math/tex2unichar.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/utils/math/tex2unichar.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -695,10 +695,10 @@
'underbrace': '\u23df', # ⏟ BOTTOM CURLY BRACKET
}
space = {
- ' ': ' ', # SPACE
- ',': '\u2006', # SIX-PER-EM SPACE
- ':': '\u205f', # MEDIUM MATHEMATICAL SPACE
- 'medspace': '\u205f', # MEDIUM MATHEMATICAL SPACE
- 'quad': '\u2001', # EM QUAD
- 'thinspace': '\u2006', # SIX-PER-EM SPACE
+ ' ': ' ', # SPACE
+ ',': '\u2006', # SIX-PER-EM SPACE
+ ':': '\u205f', # MEDIUM MATHEMATICAL SPACE
+ 'medspace': '\u205f', # MEDIUM MATHEMATICAL SPACE
+ 'quad': '\u2001', # EM QUAD
+ 'thinspace': '\u2006', # SIX-PER-EM SPACE
}
Modified: trunk/docutils/docutils/utils/roman.py
===================================================================
--- trunk/docutils/docutils/utils/roman.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/utils/roman.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -16,13 +16,13 @@
import re
-#Define exceptions
+# Define exceptions
class RomanError(Exception): pass
class OutOfRangeError(RomanError): pass
class NotIntegerError(RomanError): pass
class InvalidRomanNumeralError(RomanError): pass
-#Define digit mapping
+# Define digit mapping
romanNumeralMap = (('M', 1000),
('CM', 900),
('D', 500),
@@ -51,7 +51,7 @@
n -= integer
return result
-#Define pattern to detect valid Roman numerals
+# Define pattern to detect valid Roman numerals
romanNumeralPattern = re.compile("""
^ # beginning of string
M{0,4} # thousands - 0 to 4 M's
Modified: trunk/docutils/docutils/writers/docutils_xml.py
===================================================================
--- trunk/docutils/docutils/writers/docutils_xml.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/writers/docutils_xml.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -33,7 +33,7 @@
['--newlines'],
{'action': 'store_true', 'validator': frontend.validate_boolean}),
('Generate XML with indents and newlines.',
- ['--indents'], #@ TODO use integer value for number of spaces?
+ ['--indents'], # TODO use integer value for number of spaces?
{'action': 'store_true', 'validator': frontend.validate_boolean}),
('Omit the XML declaration. Use with caution.',
['--no-xml-declaration'],
@@ -66,7 +66,7 @@
xml_declaration = '<?xml version="1.0" encoding="%s"?>\n'
# TODO: add stylesheet options similar to HTML and LaTeX writers?
- #xml_stylesheet = '<?xml-stylesheet type="text/xsl" href="%s"?>\n'
+ # xml_stylesheet = '<?xml-stylesheet type="text/xsl" href="%s"?>\n'
doctype = (
'<!DOCTYPE document PUBLIC'
' "+//IDN docutils.sourceforge.net//DTD Docutils Generic//EN//XML"'
@@ -92,7 +92,7 @@
self.newline = '\n'
if settings.indents:
self.newline = '\n'
- self.indent = ' ' #@ TODO make this configurable?
+ self.indent = ' ' # TODO make this configurable?
self.level = 0 # indentation level
self.in_simple = 0 # level of nesting inside mixed-content elements
self.fixed_text = 0 # level of nesting inside FixedText elements
Modified: trunk/docutils/docutils/writers/latex2e/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/latex2e/__init__.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/writers/latex2e/__init__.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -1031,8 +1031,8 @@
def depart_thead(self):
a = []
- #if self.borders == 'standard':
- # a.append('\\hline\n')
+ ## if self.borders == 'standard':
+ ## a.append('\\hline\n')
if self.borders == 'booktabs':
a.append('\\midrule\n')
if self._latex_type == 'longtable':
@@ -1442,18 +1442,18 @@
'windows-1252': 'cp1252', #
'us-ascii': 'ascii', # ASCII (US)
# unmatched encodings
- #'': 'applemac',
- #'': 'ansinew', # windows 3.1 ansi
- #'': 'ascii', # ASCII encoding for the range 32--127.
- #'': 'cp437', # dos latin us
- #'': 'cp850', # dos latin 1
- #'': 'cp852', # dos latin 2
- #'': 'decmulti',
- #'': 'latin10',
- #'iso-8859-6': '' # arabic
- #'iso-8859-7': '' # greek
- #'iso-8859-8': '' # hebrew
- #'iso-8859-10': '' # latin6, more complete iso-8859-4
+ # '': 'applemac',
+ # '': 'ansinew', # windows 3.1 ansi
+ # '': 'ascii', # ASCII encoding for the range 32--127.
+ # '': 'cp437', # dos latin us
+ # '': 'cp850', # dos latin 1
+ # '': 'cp852', # dos latin 2
+ # '': 'decmulti',
+ # '': 'latin10',
+ # 'iso-8859-6': '' # arabic
+ # 'iso-8859-7': '' # greek
+ # 'iso-8859-8': '' # hebrew
+ # 'iso-8859-10': '' # latin6, more complete iso-8859-4
}
encoding = docutils_encoding.lower()
if encoding in tr:
@@ -1792,7 +1792,7 @@
if self.use_latex_citations:
self.push_output_collector([])
else:
- ## self.requirements['~fnt_floats'] = PreambleCmds.footnote_floats
+ # self.requirements['~fnt_floats'] = PreambleCmds.footnote_floats
self.out.append(r'\begin{figure}[b]')
self.append_hypertargets(node)
@@ -2157,10 +2157,10 @@
# default LaTeX enumeration labels:
default_labels = [
# (präfix, enumtype, suffix)
- ('', 'arabic', '.'), # 1.
+ ('', 'arabic', '.'), # 1.
('(', 'alph', ')'), # (a)
- ('', 'roman', '.'), # i.
- ('', 'Alph', '.')] # A.
+ ('', 'roman', '.'), # i.
+ ('', 'Alph', '.')] # A.
prefix = ''
if self.compound_enumerators:
@@ -2716,11 +2716,11 @@
pass
def visit_option_string(self, node):
- ##self.out.append(self.starttag(node, 'span', '', CLASS='option'))
+ ## self.out.append(self.starttag(node, 'span', '', CLASS='option'))
pass
def depart_option_string(self, node):
- ##self.out.append('</span>')
+ ## self.out.append('</span>')
pass
def visit_organization(self, node):
Modified: trunk/docutils/docutils/writers/manpage.py
===================================================================
--- trunk/docutils/docutils/writers/manpage.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/writers/manpage.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -989,7 +989,7 @@
def depart_reference(self, node):
# TODO check node text is different from refuri
- #self.body.append("\n'UR " + node['refuri'] + "\n'UE\n")
+ # self.body.append("\n'UR " + node['refuri'] + "\n'UE\n")
self.body.append(self.defs['reference'][1])
def visit_revision(self, node):
@@ -1042,7 +1042,7 @@
def visit_system_message(self, node):
# TODO add report_level
- #if node['level'] < self.document.reporter['writer'].report_level:
+ # if node['level'] < self.document.reporter['writer'].report_level:
# Level is too low to display:
# raise nodes.SkipNode
attr = {}
Modified: trunk/docutils/docutils/writers/odf_odt/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/odf_odt/__init__.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/writers/odf_odt/__init__.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -45,14 +45,14 @@
except (ImportError, SyntaxError):
pygments = None
-## import warnings
-## warnings.warn('importing IPShellEmbed', UserWarning)
-## from IPython.Shell import IPShellEmbed
-## args = ['-pdb', '-pi1', 'In <\\#>: ', '-pi2', ' .\\D.: ',
-## '-po', 'Out<\\#>: ', '-nosep']
-## ipshell = IPShellEmbed(args,
-## banner = 'Entering IPython. Press Ctrl-D to exit.',
-## exit_msg = 'Leaving Interpreter, back to program.')
+# import warnings
+# warnings.warn('importing IPShellEmbed', UserWarning)
+# from IPython.Shell import IPShellEmbed
+# args = ['-pdb', '-pi1', 'In <\\#>: ', '-pi2', ' .\\D.: ',
+# '-po', 'Out<\\#>: ', '-nosep']
+# ipshell = IPShellEmbed(args,
+# banner = 'Entering IPython. Press Ctrl-D to exit.',
+# exit_msg = 'Leaving Interpreter, back to program.')
VERSION = '1.0a'
@@ -102,7 +102,7 @@
NAME_SPACE_1 = 'urn:oasis:names:tc:opendocument:xmlns:office:1.0'
CONTENT_NAMESPACE_DICT = CNSD = {
- #'office:version': '1.0',
+ # 'office:version': '1.0',
'chart': 'urn:oasis:names:tc:opendocument:xmlns:chart:1.0',
'dc': 'http://purl.org/dc/elements/1.1/',
'dom': 'http://www.w3.org/2001/xml-events',
@@ -131,7 +131,7 @@
}
STYLES_NAMESPACE_DICT = SNSD = {
- #'office:version': '1.0',
+ # 'office:version': '1.0',
'chart': 'urn:oasis:names:tc:opendocument:xmlns:chart:1.0',
'dc': 'http://purl.org/dc/elements/1.1/',
'dom': 'http://www.w3.org/2001/xml-events',
@@ -160,7 +160,7 @@
}
META_NAMESPACE_DICT = METNSD = {
- #'office:version': '1.0',
+ # 'office:version': '1.0',
'dc': 'http://purl.org/dc/elements/1.1/',
'meta': 'urn:oasis:names:tc:opendocument:xmlns:meta:1.0',
'office': NAME_SPACE_1,
@@ -172,7 +172,7 @@
# does not support use of nsmap parameter on Element() and SubElement().
CONTENT_NAMESPACE_ATTRIB = {
- #'office:version': '1.0',
+ # 'office:version': '1.0',
'xmlns:chart': 'urn:oasis:names:tc:opendocument:xmlns:chart:1.0',
'xmlns:dc': 'http://purl.org/dc/elements/1.1/',
'xmlns:dom': 'http://www.w3.org/2001/xml-events',
@@ -201,7 +201,7 @@
}
STYLES_NAMESPACE_ATTRIB = {
- #'office:version': '1.0',
+ # 'office:version': '1.0',
'xmlns:chart': 'urn:oasis:names:tc:opendocument:xmlns:chart:1.0',
'xmlns:dc': 'http://purl.org/dc/elements/1.1/',
'xmlns:dom': 'http://www.w3.org/2001/xml-events',
@@ -231,7 +231,7 @@
}
META_NAMESPACE_ATTRIB = {
- #'office:version': '1.0',
+ # 'office:version': '1.0',
'xmlns:dc': 'http://purl.org/dc/elements/1.1/',
'xmlns:meta': 'urn:oasis:names:tc:opendocument:xmlns:meta:1.0',
'xmlns:office': NAME_SPACE_1,
@@ -779,8 +779,8 @@
attrib={'meta:name': prop}, nsdict=METNSD)
el1.text = value
s1 = ToString(doc)
- #doc = minidom.parseString(s1)
- #s1 = doc.toprettyxml(' ')
+ # doc = minidom.parseString(s1)
+ # s1 = doc.toprettyxml(' ')
return s1
@@ -845,7 +845,7 @@
)
def __init__(self, document):
- #nodes.SparseNodeVisitor.__init__(self, document)
+ # nodes.SparseNodeVisitor.__init__(self, document)
nodes.GenericNodeVisitor.__init__(self, document)
self.settings = document.settings
self.language_code = self.settings.language_code
@@ -1173,12 +1173,12 @@
def make_field_element(self, parent, text, style_name, automatic_styles):
if text == 'p':
el1 = SubElement(parent, 'text:page-number', attrib={
- #'text:style-name': self.rststyle(style_name),
+ # 'text:style-name': self.rststyle(style_name),
'text:select-page': 'current',
})
elif text == 'P':
el1 = SubElement(parent, 'text:page-count', attrib={
- #'text:style-name': self.rststyle(style_name),
+ # 'text:style-name': self.rststyle(style_name),
})
elif text == 't1':
self.style_index += 1
@@ -1662,10 +1662,10 @@
def visit_version(self, node):
self.generate_labeled_line(node, 'version')
- #self.set_current_element(el)
+ # self.set_current_element(el)
def depart_version(self, node):
- #self.set_to_parent()
+ # self.set_to_parent()
pass
def visit_attribution(self, node):
@@ -2474,8 +2474,8 @@
attrib=attrib, nsdict=SNSD)
draw_name = 'graphics%d' % next(IMAGE_NAME_COUNTER)
# Add the content.
- #el = SubElement(current_element, 'text:p',
- # attrib={'text:style-name': self.rststyle('textbody')})
+ # el = SubElement(current_element, 'text:p',
+ # attrib={'text:style-name': self.rststyle('textbody')})
attrib = {
'draw:style-name': style_name,
'draw:name': draw_name,
@@ -2614,12 +2614,7 @@
wrapper1 = '<text:p text:style-name="%s">%%s</text:p>' % (
self.rststyle('codeblock'), )
source = node.astext()
- if (
- pygments and
- self.settings.add_syntax_highlighting
- #and
- #node.get('hilight', False)
- ):
+ if (pygments and self.settings.add_syntax_highlighting):
language = node.get('language', 'python')
source = self._add_syntax_highlighting(source, language)
else:
@@ -2883,7 +2878,7 @@
pass
def visit_reference(self, node):
- #text = node.astext()
+ # text = node.astext()
if self.settings.create_links:
if 'refuri' in node:
href = node['refuri']
@@ -2925,8 +2920,8 @@
if class1:
style_name = class1
el = SubElement(self.current_element, 'text:h', attrib={
- #'text:outline-level': '%d' % section_level,
- #'text:style-name': 'Heading_20_%d' % section_level,
+ # 'text:outline-level': '%d' % section_level,
+ # 'text:style-name': 'Heading_20_%d' % section_level,
'text:style-name': style_name,
})
text = node.astext()
@@ -3021,8 +3016,8 @@
}, nsdict=SNSD)
if table_style.backgroundcolor is None:
SubElement(el1, 'style:table-properties', attrib={
- #'style:width': '17.59cm',
- #'table:align': 'margins',
+ # 'style:width': '17.59cm',
+ # 'table:align': 'margins',
'table:align': 'left',
'fo:margin-top': '0in',
'fo:margin-bottom': '0.10in',
@@ -3029,7 +3024,7 @@
}, nsdict=SNSD)
else:
SubElement(el1, 'style:table-properties', attrib={
- #'style:width': '17.59cm',
+ # 'style:width': '17.59cm',
'table:align': 'margins',
'fo:margin-top': '0in',
'fo:margin-bottom': '0.10in',
@@ -3183,7 +3178,7 @@
el1 = self.append_child(
'text:h', attrib={
'text:outline-level': '%d' % section_level,
- #'text:style-name': 'Heading_20_%d' % section_level,
+ # 'text:style-name': 'Heading_20_%d' % section_level,
'text:style-name': self.rststyle(
'heading%d', (section_level, )),
})
@@ -3190,9 +3185,9 @@
self.append_pending_ids(el1)
self.set_current_element(el1)
elif isinstance(node.parent, docutils.nodes.document):
- # text = self.settings.title
- #else:
- # text = node.astext()
+ # text = self.settings.title
+ # else:
+ # text = node.astext()
el1 = SubElement(self.current_element, 'text:p', attrib={
'text:style-name': self.rststyle(title_type),
})
Modified: trunk/docutils/docutils/writers/s5_html/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/s5_html/__init__.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/docutils/writers/s5_html/__init__.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -152,7 +152,7 @@
def __init__(self, *args):
html4css1.HTMLTranslator.__init__(self, *args)
- #insert S5-specific stylesheet and script stuff:
+ # insert S5-specific stylesheet and script stuff:
self.theme_file_path = None
self.setup_theme()
view_mode = self.document.settings.view_mode
Modified: trunk/docutils/test/local_dummy_lang.py
===================================================================
--- trunk/docutils/test/local_dummy_lang.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/test/local_dummy_lang.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -84,15 +84,15 @@
'dummy-pull-quote': 'pull-quote',
'dummy-compound': 'compound',
'dummy-container': 'container',
- #'dummy-questions': 'questions',
+ # 'dummy-questions': 'questions',
'dummy-table': 'table',
'dummy-csv-table': 'csv-table',
'dummy-list-table': 'list-table',
- #'dummy-qa': 'questions',
- #'dummy-faq': 'questions',
+ # 'dummy-qa': 'questions',
+ # 'dummy-faq': 'questions',
'dummy-meta': 'meta',
'dummy-math': 'math',
- #'dummy-imagemap': 'imagemap',
+ # 'dummy-imagemap': 'imagemap',
'dummy-image': 'image',
'dummy-figure': 'figure',
'dummy-include': 'include',
@@ -109,8 +109,8 @@
'dummy-section-numbering': 'sectnum',
'dummy-header': 'header',
'dummy-footer': 'footer',
- #'dummy-footnotes': 'footnotes',
- #'dummy-citations': 'citations',
+ # 'dummy-footnotes': 'footnotes',
+ # 'dummy-citations': 'citations',
'dummy-target-notes': 'target-notes',
'dummy-restructuredtext-test-directive': 'restructuredtext-test-directive'}
"""English name to registered (in directives/__init__.py) directive name
Modified: trunk/docutils/test/test_language.py
===================================================================
--- trunk/docutils/test/test_language.py 2022-03-04 15:54:22 UTC (rev 9021)
+++ trunk/docutils/test/test_language.py 2022-03-04 15:54:56 UTC (rev 9022)
@@ -181,8 +181,8 @@
for d in module.roles.values():
try:
method = roles._role_registry[d]
- #if not method:
- # failures.append('"%s": unknown role' % d...
[truncated message content] |