Sha256: 03ea017f15f258df3f1d3241bb5ccb2af5370801252bb9892903d167b98cec30

Contents?: true

Size: 869 Bytes

Versions: 2

Compression:

Stored size: 869 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Toea < Symbol
        INPUT = {
          unicodemath: [["&#x2928;"], parsing_wrapper(["toea"])],
          asciimath: [["&#x2928;"], parsing_wrapper(["toea"])],
          mathml: ["&#x2928;"],
          latex: [["toea", "&#x2928;"]],
          omml: ["&#x2928;"],
          html: ["&#x2928;"],
        }.freeze

        # output methods
        def to_latex
          "\\toea"
        end

        def to_asciimath
          parsing_wrapper("toea")
        end

        def to_unicodemath
          Utility.html_entity_to_unicode("&#x2928;")
        end

        def to_mathml_without_math_tag(_)
          ox_element("mi") << "&#x2928;"
        end

        def to_omml_without_math_tag(_)
          "&#x2928;"
        end

        def to_html
          "&#x2928;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/toea.rb
plurimath-0.8.11 lib/plurimath/math/symbols/toea.rb