Sha256: dd6b3feb91d0b0c2af26c6c7f93f70a3b8c06d2133ee9ab3fd148e38b7411cf8

Contents?: true

Size: 875 Bytes

Versions: 2

Compression:

Stored size: 875 Bytes

Contents

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

        # output methods
        def to_latex
          "\\lrarc"
        end

        def to_asciimath
          parsing_wrapper("lrarc")
        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.12 lib/plurimath/math/symbols/lrarc.rb
plurimath-0.8.11 lib/plurimath/math/symbols/lrarc.rb