Sha256: 649785dd3557266ff443ea64ce0ecb52307840e17f2cf899b7948b4f5598c99d

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

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

        # output methods
        def to_latex
          "\\underleftarrow"
        end

        def to_asciimath
          parsing_wrapper("underleftarrow")
        end

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

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

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

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