Sha256: 97230688c8798ad00e74d6e020a3da46f3dd8da4a28ee58b2d75b22b04609f7a

Contents?: true

Size: 951 Bytes

Versions: 2

Compression:

Stored size: 951 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nwsearrow"
        end

        def to_asciimath
          parsing_wrapper("nwsearrow", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2921;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/nwsearrow.rb
plurimath-0.8.13 lib/plurimath/math/symbols/nwsearrow.rb