Class: Iev::Converter::MathmlToAsciimath
- Inherits:
-
Object
- Object
- Iev::Converter::MathmlToAsciimath
- Defined in:
- lib/iev/converter/mathml_to_asciimath.rb
Constant Summary collapse
- GREEK_ENTITIES =
{ "α" => "alpha", "β" => "beta", "γ" => "gamma", "Γ" => "Gamma", "δ" => "delta", "Δ" => "Delta", "ε" => "epsilon", "ϵ" => "varepsilon", "ζ" => "zeta", "η" => "eta", "θ" => "theta", "Θ" => "Theta", "ϑ" => "vartheta", "ι" => "iota", "κ" => "kappa", "λ" => "lambda", "Λ" => "Lambda", "μ" => "mu", "ν" => "nu", "ξ" => "xi", "Ξ" => "Xi", "π" => "pi", "Π" => "Pi", "ρ" => "rho", "σ" => "sigma", "Σ" => "Sigma", "τ" => "tau", "υ" => "upsilon", "φ" => "phi", "Φ" => "Phi", "ϕ" => "varphi", "χ" => "chi", "ψ" => "psi", "Ψ" => "Psi", "ω" => "omega", }.freeze
Class Method Summary collapse
-
.clear_cache ⇒ Object
Clear the Plurimath expression cache.
- .convert(input) ⇒ Object
Class Method Details
.clear_cache ⇒ Object
Clear the Plurimath expression cache. Call between export runs.
52 53 54 |
# File 'lib/iev/converter/mathml_to_asciimath.rb', line 52 def clear_cache @math_cache = nil end |
.convert(input) ⇒ Object
47 48 49 |
# File 'lib/iev/converter/mathml_to_asciimath.rb', line 47 def convert(input) mathml_to_asciimath(input) end |