Sha256: 64d90c92539d9847040c49b1ae1a5c5bd65848fee390abed692ee26b67dd941d

Contents?: true

Size: 875 Bytes

Versions: 2

Compression:

Stored size: 875 Bytes

Contents

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

        # output methods
        def to_latex
          "\\gtcir"
        end

        def to_asciimath
          parsing_wrapper("gtcir")
        end

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

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

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

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