Sha256: 2146cc27941baf33ee4fadbdde90ff80b2ba015f5f5ac2f302f66341f0a19525

Contents?: true

Size: 952 Bytes

Versions: 2

Compression:

Stored size: 952 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftrightarrows"
        end

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