Sha256: 9a5732f7af16a5e1948c81a0a0f835476b3ad38404525f0231a50a09d65804b1

Contents?: true

Size: 927 Bytes

Versions: 2

Compression:

Stored size: 927 Bytes

Contents

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

        # output methods
        def to_latex
          "\\lrarc"
        end

        def to_asciimath
          parsing_wrapper("lrarc", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x25de;"
        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/lrarc.rb
plurimath-0.8.13 lib/plurimath/math/symbols/lrarc.rb