Sha256: 1ca51a33c408f95e9a236bfd2bf2d9a10523437b6e20365f6ad8cda9e7268277

Contents?: true

Size: 987 Bytes

Versions: 2

Compression:

Stored size: 987 Bytes

Contents

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

        # output methods
        def to_latex
          "\\cwrightarcarrow"
        end

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

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

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

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

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