Sha256: cbaf4cb55fed31a716947a7560b5435e266bafa02e81a22705e08bc27b800c01

Contents?: true

Size: 987 Bytes

Versions: 2

Compression:

Stored size: 987 Bytes

Contents

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

        # output methods
        def to_latex
          "\\curvearrowright"
        end

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

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

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

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

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