Sha256: 03f78618dbebaa50321c9ff7bd44e69c22a757b46269c247d6f71e9f14eb4a84

Contents?: true

Size: 875 Bytes

Versions: 2

Compression:

Stored size: 875 Bytes

Contents

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

        # output methods
        def to_latex
          "\\operp"
        end

        def to_asciimath
          parsing_wrapper("operp")
        end

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

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

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

        def to_html
          "&#x29b9;"
        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/operp.rb
plurimath-0.8.11 lib/plurimath/math/symbols/operp.rb