Sha256: 17b3818f8ef8813bfdbd2869bdcf7d009c908c56b0923ae123a0c9c55572bfa8

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\gtrsim"
        end

        def to_asciimath
          parsing_wrapper("apprge")
        end

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

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

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

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