Sha256: 5bdbca3ce3c08746566280713de8ff66443647ae30786bf445441d876392ff46

Contents?: true

Size: 927 Bytes

Versions: 2

Compression:

Stored size: 927 Bytes

Contents

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

        # output methods
        def to_latex
          "\\gescc"
        end

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

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

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

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

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