Sha256: 6d6141ac28cb73da9fe126128930ec3eb8ade2b0ca3949b5bb564559548a533d

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Mapsto"
        end

        def to_asciimath
          parsing_wrapper("Mapsto")
        end

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

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

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

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