Sha256: eb812b4aed5b726a154f81a156e1840d34eb1f758a4f6fe4251c6febc81eb18b

Contents?: true

Size: 1.03 KB

Versions: 10

Compression:

Stored size: 1.03 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

10 entries across 10 versions & 1 rubygems

Version Path
plurimath-0.8.24 lib/plurimath/math/symbols/downuparrows.rb
plurimath-0.8.23 lib/plurimath/math/symbols/downuparrows.rb
plurimath-0.8.22 lib/plurimath/math/symbols/downuparrows.rb
plurimath-0.8.21 lib/plurimath/math/symbols/downuparrows.rb
plurimath-0.8.20 lib/plurimath/math/symbols/downuparrows.rb
plurimath-0.8.19 lib/plurimath/math/symbols/downuparrows.rb
plurimath-0.8.18 lib/plurimath/math/symbols/downuparrows.rb
plurimath-0.8.17 lib/plurimath/math/symbols/downuparrows.rb
plurimath-0.8.16 lib/plurimath/math/symbols/downuparrows.rb
plurimath-0.8.15 lib/plurimath/math/symbols/downuparrows.rb