Sha256: 6e760a0645108cd716f1d069fdf6ee0eb658aba01bbdc235bb7249f50351284f

Contents?: true

Size: 971 Bytes

Versions: 2

Compression:

Stored size: 971 Bytes

Contents

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

        # output methods
        def to_latex
          "\\barovernorthwestarrow"
        end

        def to_asciimath
          parsing_wrapper("barovernorthwestarrow")
        end

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

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

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

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