Sha256: 42a0d9c7ee710a0ef624871511e458ddab564b2a7998f8023040b77ddef4eb9b

Contents?: true

Size: 971 Bytes

Versions: 2

Compression:

Stored size: 971 Bytes

Contents

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

        # output methods
        def to_latex
          "\\ocommatopright"
        end

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

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

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

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

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