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

Update symbols without duplicates

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