Sha256: fc1760eb2fcff9ca64ead8057db8be0313f708fee90e6eb3c3cb6193754b8d19

Contents?: true

Size: 953 Bytes

Versions: 2

Compression:

Stored size: 953 Bytes

Contents

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

        # output methods
        def to_latex
          "\\overleftrightarrow"
        end

        def to_asciimath
          parsing_wrapper("overleftrightarrow")
        end

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

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

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

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