Sha256: d447ed22ccd725017fce51f05b5f89913e719277f6975bcb079107ef1ea3889b

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

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

        # output methods
        def to_latex
          "\\downarrowuparrow"
        end

        def to_asciimath
          parsing_wrapper("downuparrows", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/downuparrows.rb
plurimath-0.8.13 lib/plurimath/math/symbols/downuparrows.rb