Sha256: ee3b7f8b8efc2673af3631c85f8251f92956bfd60e6aed481753e10e9718725a

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upwhitearrow"
        end

        def to_asciimath
          parsing_wrapper("upwhitearrow")
        end

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

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

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

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