Sha256: e47a3ecc5c24858fa996eb16b80ae2f44750b502a03f3e3b10e7594e139ef947

Contents?: true

Size: 999 Bytes

Versions: 2

Compression:

Stored size: 999 Bytes

Contents

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

        # output methods
        def to_latex
          "\\cwundercurvearrow"
        end

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

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

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

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

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