Sha256: a26a58c99309be8eab0f2c0927c66a185f58db993ffd846de629a99acde3a4fe

Contents?: true

Size: 916 Bytes

Versions: 2

Compression:

Stored size: 916 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftrightarrows"
        end

        def to_asciimath
          parsing_wrapper("leftrightarrows")
        end

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

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

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

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