Sha256: c5709a07767010f9f7e53f24a25c0842230ca208510ee31dffb4ddc7904b5797

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\gtlpar"
        end

        def to_asciimath
          parsing_wrapper("gtlpar")
        end

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

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

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

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