diff --git a/flatlatex/__init__.py b/flatlatex/__init__.py index 6f2053ea270e54565cf4d6d4900e1656b1257e8e..ddb608a2af9d788bd78b312cf39e43a15fd1a141 100644 --- a/flatlatex/__init__.py +++ b/flatlatex/__init__.py @@ -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: diff --git a/flatlatex/data.py b/flatlatex/data.py index ae1fb292ace194777114a954c4483cac47f1ff9e..dd1bb7ca9198f14e72584832d3a68381e6c2d3b6 100644 --- a/flatlatex/data.py +++ b/flatlatex/data.py @@ -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': '⊢', diff --git a/flatlatex/tests/test_conv.py b/flatlatex/tests/test_conv.py index f40d5cb3de6e86edf880f6f6004c34ebf693a17a..52ebdd1eece1bcc10586243d992b86210dbbf382 100644 --- a/flatlatex/tests/test_conv.py +++ b/flatlatex/tests/test_conv.py @@ -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()