Sha256: 41c3d288ff6e4682984c1884de2409aa130d15d8e64dd6706252736ff2e5987a

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\MapsUp"
        end

        def to_asciimath
          parsing_wrapper("mapsup")
        end

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

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

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

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