Commit 44638a40 authored by Jean-Benoist Leger's avatar Jean-Benoist Leger

Update symbols without duplicates

parent c45aeb34
......@@ -35,7 +35,7 @@ Basic example:
>>> c = flatlatex.converter()
>>> c.convert(
... r'\\forall \\eta>0\\, \\exists n\\in\\mathbb{N}\\, \\forall i>n\\, |u_i-\\mathcal{l}|<\\eta')
'∀η>0 ∃nℕ ∀i>n |uᵢ-𝓵|<η'
'∀η>0 ∃nℕ ∀i>n |uᵢ-𝓵|<η'
Commands can be added with LaTeX syntax:
......
......@@ -663,16 +663,13 @@ symbols = {
r'\boxplus': '⊞',
r'\boxtimes': '⊠',
r'\bullet': '•',
r'\bullet': '∙',
r'\bumpeq': '≏',
r'\Bumpeq': '≎',
r'\cap': '∩',
r'\Cap': '⋒',
r'\cdot': '·',
r'\cdot': '⋅',
r'\cdots': '⋯',
r'\chi': 'χ',
r'\circ': '°',
r'\circ': '∘',
r'\circeq': '≗',
r'\circlearrowleft': '↺',
......@@ -681,7 +678,7 @@ symbols = {
r'\circledcirc': '⊚',
r'\circleddash': '⊝',
r'\clubsuit': '♣',
r'\clubsuit': '♧',
r'\varclubsuit': '♧',
r'\complement': '∁',
r'\cong': '≅',
r'\cup': '∪',
......@@ -701,12 +698,11 @@ symbols = {
r'\ddots': '⋱',
r'\ddotsup': '⋰',
r'\defeq': '≝',
r'\Delta': '∆',
r'\delta': 'δ',
r'\Delta': 'Δ',
r'\diamond': '⋄',
r'\diamondsuit': '♢',
r'\diamondsuit': '♦',
r'\vardiamondsuit': '♦',
r'\div': '÷',
r'\divideontimes': '⋇',
r'\doteq': '≐',
......@@ -746,13 +742,13 @@ symbols = {
r'\gtrsim': '≳',
r'\hbar': 'ℏ',
r'\heartsuit': '♡',
r'\heartsuit': '♥',
r'\varheartsuit': '♥',
r'\hookleftarrow': '↩',
r'\hookrightarrow': '↪',
r'\iiint': '∭',
r'\iint': '∬',
r'\Im': 'ℑ',
r'\in': '',
r'\in': '',
r'\infty': '∞',
r'\int': '∫',
r'\intercal': '⊺',
......@@ -796,7 +792,6 @@ symbols = {
r'\mid': '∣',
r'\models': '⊨',
r'\mp': '∓',
r'\mu': 'µ',
r'\multimap': '⊸',
r'\multimapdotbothA': '⊶',
r'\multimapdotbothB': '⊷',
......@@ -810,7 +805,6 @@ symbols = {
r'\ngeq': '≱',
r'\ngtr': '≯',
r'\ni': '∋',
r'\ni': '∍',
r'\nleftarrow': '↚',
r'\nLeftarrow': '⇍',
r'\nleftrightarrow': '↮',
......@@ -842,7 +836,6 @@ symbols = {
r'\oint': '∮',
r'\omega': 'ω',
r'\Omega': 'Ω',
r'\Omega': 'Ω',
r'\ominus': '⊖',
r'\oplus': '⊕',
r'\oslash': '⊘',
......@@ -884,7 +877,7 @@ symbols = {
r'\rtimes': '⋊',
r'\S': '§',
r'\searrow': '↘',
r'\searrow': '↙',
r'\swarrow': '↙',
r'\setminus': '∖',
r'\sharp': '♯',
r'\sigma': 'σ',
......@@ -892,7 +885,7 @@ symbols = {
r'\sim': '∼',
r'\simeq': '≃',
r'\spadesuit': '♠',
r'\spadesuit': '♤',
r'\varspadesuit': '♤',
r'\sphericalangle': '∢',
r'\sqcap': '⊓',
r'\sqcup': '⊔',
......@@ -900,13 +893,6 @@ symbols = {
r'\sqsubseteq': '⊑',
r'\sqsupset': '⊐',
r'\sqsupseteq': '⊒',
r'\stackrel': '∸',
r'\stackrel': '≘',
r'\stackrel': '≙',
r'\stackrel': '≚',
r'\stackrel': '≛',
r'\stackrel': '≞',
r'\stackrel': '≟',
r'\star': '⋆',
r'\subset': '⊂',
r'\Subset': '⋐',
......@@ -945,7 +931,6 @@ symbols = {
r'\varphi': 'ϕ',
r'\varpi': 'ϖ',
r'\varrho': 'ϱ',
r'\varsigma': 'ϛ',
r'\varsigma': 'ς',
r'\vartheta': 'ϑ',
r'\vdash': '⊢',
......
......@@ -5,7 +5,7 @@ def test_conv1():
c = converter()
r = c.convert(
r'\forall \eta>0\, \exists n\in\mathbb{N}\, \forall i>n\, |u_i-\mathcal{l}|<\eta')
assert r=='∀η>0 ∃nℕ ∀i>n |uᵢ-𝓵|<η'
assert r=='∀η>0 ∃nℕ ∀i>n |uᵢ-𝓵|<η'
def test_conv2():
c = converter()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment