Sha256: f121f1a9ebe7e2aebbfd10b1ed5ab5584315b999e1e4d3583526678792363cb8

Contents?: true

Size: 886 Bytes

Versions: 2

Compression:

Stored size: 886 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upuparrows"
        end

        def to_asciimath
          parsing_wrapper("upuparrows")
        end

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

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

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

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