Sha256: 52ba8db1e84fe2712c682a8f446be82e98a8f52609128bc4e446c21c927b0dae

Contents?: true

Size: 997 Bytes

Versions: 2

Compression:

Stored size: 997 Bytes

Contents

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

        # output methods
        def to_latex
          "\\looparrowright"
        end

        def to_asciimath
          parsing_wrapper("looparrowleft")
        end

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

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

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

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