Sha256: 2916ed51f3a6cb0195b557fb51115480f4b94a2272408b84cd8f9e9c685deafb

Contents?: true

Size: 981 Bytes

Versions: 2

Compression:

Stored size: 981 Bytes

Contents

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

        # output methods
        def to_latex
          "\\downarrowuparrow"
        end

        def to_asciimath
          parsing_wrapper("downuparrows")
        end

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

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

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

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