Sha256: 92f8e5bb595e18e768949460234af36b2d11490731af9a80951d6dfc3101d58b

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Searrow"
        end

        def to_asciimath
          parsing_wrapper("Searrow")
        end

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

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

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

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