Sha256: cf564571e6734a4dcab467e7e532256a83712d4509ca32d0d8b21a16a192a4f9

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\neswarrow"
        end

        def to_asciimath
          parsing_wrapper("neswarrow")
        end

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

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

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

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