Sha256: ed58fe1f869cd2a5679f4b3f5d6219a2c4f0387e437cb472aa319103851d436a

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

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

        # output methods
        def to_latex
          "\\twoheadmapsfrom"
        end

        def to_asciimath
          parsing_wrapper("twoheadmapsfrom")
        end

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

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

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

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