Sha256: 701e1bc580ecd14cddbc7a122a4439de40d791bf58d77abe6ae0df2c10acb44a

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\updasharrow"
        end

        def to_asciimath
          parsing_wrapper("updasharrow")
        end

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

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

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

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