lib/plurimath/math/symbols/angstrom.rb in plurimath-0.8.12 vs lib/plurimath/math/symbols/angstrom.rb in plurimath-0.8.13
- old
+ new
@@ -1,12 +1,12 @@
module Plurimath
module Math
module Symbols
class Angstrom < Symbol
INPUT = {
- unicodemath: [["Å"], parsing_wrapper(["Angstroem", "Angstrom"])],
- asciimath: [["Å"], parsing_wrapper(["Angstroem", "Angstrom"])],
+ unicodemath: [["Å"], parsing_wrapper(["Angstroem", "Angstrom"], lang: :unicode)],
+ asciimath: [["Å"], parsing_wrapper(["Angstroem", "Angstrom"], lang: :asciimath)],
mathml: ["Å"],
latex: [["Angstroem", "Angstrom", "Å"]],
omml: ["Å"],
html: ["Å"],
}.freeze
@@ -15,10 +15,10 @@
def to_latex
"\\Angstroem"
end
def to_asciimath
- parsing_wrapper("Angstrom")
+ parsing_wrapper("Angstrom", lang: :asciimath)
end
def to_unicodemath
Utility.html_entity_to_unicode("Å")
end