Sha256: 8485e5803f91834ce86411e9f32aa4d7cf289aea1635a40baf3a4509ad7a3d56

Contents?: true

Size: 908 Bytes

Versions: 7

Compression:

Stored size: 908 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

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/mapsup.rb
plurimath-0.8.9 lib/plurimath/math/symbols/mapsup.rb
plurimath-0.8.8 lib/plurimath/math/symbols/mapsup.rb
plurimath-0.8.7 lib/plurimath/math/symbols/mapsup.rb
plurimath-0.8.6 lib/plurimath/math/symbols/mapsup.rb
plurimath-0.8.5 lib/plurimath/math/symbols/mapsup.rb
plurimath-0.8.4 lib/plurimath/math/symbols/mapsup.rb