Sha256: eb957c2320697de426eedf5f1f8c07843723b4a4098e79228d3a164f6d1541a5

Contents?: true

Size: 905 Bytes

Versions: 2

Compression:

Stored size: 905 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Longmapsto"
        end

        def to_asciimath
          parsing_wrapper("Longmapsto")
        end

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

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

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

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