Sha256: 5b60cb413156715045297898344556c18a21400cf4b2f723cf4ad88a9ec6717c

Contents?: true

Size: 963 Bytes

Versions: 2

Compression:

Stored size: 963 Bytes

Contents

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

        # output methods
        def to_latex
          "\\MapsUp"
        end

        def to_asciimath
          parsing_wrapper("mapsup", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/mapsup.rb
plurimath-0.8.13 lib/plurimath/math/symbols/mapsup.rb