Sha256: 46d4ee556cdd09348c37cdf6fb9a1cd151be4d6e61b07f1d5ff115c9cf6d72bf

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

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

        # output methods
        def to_latex
          "\\equalleftarrow"
        end

        def to_asciimath
          parsing_wrapper("equalleftarrow")
        end

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

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

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

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