Sha256: 6ddfbf9601b8b121ffe89a3b005874e7ff0798c676059bfeaa5d1422885126e3

Contents?: true

Size: 927 Bytes

Versions: 2

Compression:

Stored size: 927 Bytes

Contents

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

        # output methods
        def to_latex
          "\\gtcir"
        end

        def to_asciimath
          parsing_wrapper("gtcir", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/gtcir.rb
plurimath-0.8.13 lib/plurimath/math/symbols/gtcir.rb