Sha256: 3e5a4fec75a15dd7c43f40c702b4a7f0ae3a0fe61cf22ee8465b09c5aaf8242b

Contents?: true

Size: 970 Bytes

Versions: 7

Compression:

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

7 entries across 7 versions & 1 rubygems

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