Sha256: da96f5c7a246379b2b65f0a412bd0115340a0bd2a3f3984655d666d95e6e4c59

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\whthorzoval"
        end

        def to_asciimath
          parsing_wrapper("whthorzoval")
        end

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

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

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

        def to_html
          "&#x2b2d;"
        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/whthorzoval.rb
plurimath-0.8.11 lib/plurimath/math/symbols/whthorzoval.rb