Sha256: 37dba2ba0dad81ced08015dea651fd10d26768375ef68a3c23d1a140ae797596

Contents?: true

Size: 1.06 KB

Versions: 9

Compression:

Stored size: 1.06 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

9 entries across 9 versions & 1 rubygems

Version Path
plurimath-0.8.23 lib/plurimath/math/symbols/looparrowleft.rb
plurimath-0.8.22 lib/plurimath/math/symbols/looparrowleft.rb
plurimath-0.8.21 lib/plurimath/math/symbols/looparrowleft.rb
plurimath-0.8.20 lib/plurimath/math/symbols/looparrowleft.rb
plurimath-0.8.19 lib/plurimath/math/symbols/looparrowleft.rb
plurimath-0.8.18 lib/plurimath/math/symbols/looparrowleft.rb
plurimath-0.8.17 lib/plurimath/math/symbols/looparrowleft.rb
plurimath-0.8.16 lib/plurimath/math/symbols/looparrowleft.rb
plurimath-0.8.15 lib/plurimath/math/symbols/looparrowleft.rb