|
From: <mi...@us...> - 2022-01-27 14:22:24
|
Revision: 8985
http://sourceforge.net/p/docutils/code/8985
Author: milde
Date: 2022-01-27 14:22:21 +0000 (Thu, 27 Jan 2022)
Log Message:
-----------
Leftovers and fixes after the big clean-up.
Patch set by Adam Turner.
Modified Paths:
--------------
trunk/docutils/docs/user/smartquotes.txt
trunk/docutils/docutils/utils/math/math2html.py
trunk/docutils/docutils/utils/math/tex2unichar.py
trunk/docutils/docutils/utils/math/unichar2tex.py
trunk/docutils/docutils/writers/html4css1/__init__.py
Modified: trunk/docutils/docs/user/smartquotes.txt
===================================================================
--- trunk/docutils/docs/user/smartquotes.txt 2022-01-26 22:10:06 UTC (rev 8984)
+++ trunk/docutils/docs/user/smartquotes.txt 2022-01-27 14:22:21 UTC (rev 8985)
@@ -263,7 +263,7 @@
"'Dutch' alternative quotes"
- .. # 'nl-x-altquot2': u'””’’',
+ .. # 'nl-x-altquot2': '””’’',
:pl: .. class:: language-pl
@@ -337,7 +337,7 @@
"'Turkish' alternative quotes"
-.. 'tr-x-altquot2': u'“„‘‚', # antiquated?
+.. 'tr-x-altquot2': '“„‘‚', # antiquated?
:uk: .. class:: language-uk
Modified: trunk/docutils/docutils/utils/math/math2html.py
===================================================================
--- trunk/docutils/docutils/utils/math/math2html.py 2022-01-26 22:10:06 UTC (rev 8984)
+++ trunk/docutils/docutils/utils/math/math2html.py 2022-01-27 14:22:21 UTC (rev 8985)
@@ -176,17 +176,17 @@
}
combiningfunctions = {
- "\\'": '',
- '\\"': '',
- '\\^': '',
- '\\`': '',
- '\\~': '',
- '\\c': '',
- '\\r': '',
- '\\s': '',
- '\\textcircled': '',
- '\\textsubring': '',
- '\\v': '',
+ "\\'": '́',
+ '\\"': '̈',
+ '\\^': '̂',
+ '\\`': '̀',
+ '\\~': '̃',
+ '\\c': '̧',
+ '\\r': '̊',
+ '\\s': '̩',
+ '\\textcircled': '⃝',
+ '\\textsubring': '̥',
+ '\\v': '̌',
}
for key, value in tex2unichar.mathaccent.items():
combiningfunctions['\\'+key] = value
Modified: trunk/docutils/docutils/utils/math/tex2unichar.py
===================================================================
--- trunk/docutils/docutils/utils/math/tex2unichar.py 2022-01-26 22:10:06 UTC (rev 8984)
+++ trunk/docutils/docutils/utils/math/tex2unichar.py 2022-01-27 14:22:21 UTC (rev 8985)
@@ -61,8 +61,8 @@
'jmath': '\u0237', # ȷ LATIN SMALL LETTER DOTLESS J
'kappa': '\u03ba', # κ GREEK SMALL LETTER KAPPA
'lambda': '\u03bb', # λ GREEK SMALL LETTER LAMDA
- 'm': '\u03bc', # μ GREEK SMALL LETTER MU
- 'n': '\u03bd', # ν GREEK SMALL LETTER NU
+ 'mu': '\u03bc', # μ GREEK SMALL LETTER MU
+ 'nu': '\u03bd', # ν GREEK SMALL LETTER NU
'omega': '\u03c9', # ω GREEK SMALL LETTER OMEGA
'phi': '\u03d5', # ϕ GREEK PHI SYMBOL
'pi': '\u03c0', # π GREEK SMALL LETTER PI
@@ -69,7 +69,7 @@
'psi': '\u03c8', # ψ GREEK SMALL LETTER PSI
'rho': '\u03c1', # ρ GREEK SMALL LETTER RHO
'sigma': '\u03c3', # σ GREEK SMALL LETTER SIGMA
- 'ta': '\u03c4', # τ GREEK SMALL LETTER TAU
+ 'tau': '\u03c4', # τ GREEK SMALL LETTER TAU
'theta': '\u03b8', # θ GREEK SMALL LETTER THETA
'upsilon': '\u03c5', # υ GREEK SMALL LETTER UPSILON
'varDelta': '\U0001d6e5', # 𝛥 MATHEMATICAL ITALIC CAPITAL DELTA
Modified: trunk/docutils/docutils/utils/math/unichar2tex.py
===================================================================
--- trunk/docutils/docutils/utils/math/unichar2tex.py 2022-01-26 22:10:06 UTC (rev 8984)
+++ trunk/docutils/docutils/utils/math/unichar2tex.py 2022-01-27 14:22:21 UTC (rev 8985)
@@ -500,7 +500,7 @@
0x1d445: 'R',
0x1d446: 'S',
0x1d447: 'T',
-0x1d448: '',
+0x1d448: 'U',
0x1d449: 'V',
0x1d44a: 'W',
0x1d44b: 'X',
@@ -525,7 +525,7 @@
0x1d45f: 'r',
0x1d460: 's',
0x1d461: 't',
-0x1d462: '',
+0x1d462: 'u',
0x1d463: 'v',
0x1d464: 'w',
0x1d465: 'x',
Modified: trunk/docutils/docutils/writers/html4css1/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/html4css1/__init__.py 2022-01-26 22:10:06 UTC (rev 8984)
+++ trunk/docutils/docutils/writers/html4css1/__init__.py 2022-01-27 14:22:21 UTC (rev 8985)
@@ -156,7 +156,7 @@
' content="application/xhtml+xml; charset=%s" />\n')
# encode also non-breaking space
- special_characters = dict(_html_base.HTMLTranslator.special_characters)
+ special_characters = _html_base.HTMLTranslator.special_characters.copy()
special_characters[0xa0] = ' '
# use character reference for dash (not valid in HTML5)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|