Sha256: 46c496f9efa203f8632a0891b501cf2503414baed97d91fcd99ef1b2b8bfbc1f

Contents?: true

Size: 973 Bytes

Versions: 2

Compression:

Stored size: 973 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Longmappedfrom"
        end

        def to_asciimath
          parsing_wrapper("Longmapsfrom")
        end

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

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

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

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