Sha256: bd2b5f82ba37ea72ba204d2c5e070c61c66def6a9a9f9747acbc9cd8f6021593

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\suplarr"
        end

        def to_asciimath
          parsing_wrapper("suplarr")
        end

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

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

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

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