Sha256: 5ed034bef22b54713d5dc29fc50d64fedc27e8483d2a4a9a29a8118c160ef6b3

Contents?: true

Size: 892 Bytes

Versions: 2

Compression:

Stored size: 892 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Updownarrow"
        end

        def to_asciimath
          parsing_wrapper("Updownarrow")
        end

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

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

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

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