Sha256: 578a19bf761199539990cc3d0623c7d68725c667bffba7fba2780c91997b627e

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

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

        # output methods
        def to_latex
          "\\looparrowright"
        end

        def to_asciimath
          parsing_wrapper("looparrowleft", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/looparrowleft.rb
plurimath-0.8.13 lib/plurimath/math/symbols/looparrowleft.rb