Sha256: 6a6bf45f0547febbbdbe525597cf63162d4c41affc32e5085c116448df18cfde

Contents?: true

Size: 904 Bytes

Versions: 2

Compression:

Stored size: 904 Bytes

Contents

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

        # output methods
        def to_latex
          "\\longleftarrow"
        end

        def to_asciimath
          parsing_wrapper("longleftarrow")
        end

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

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

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

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