Sha256: db2254358fcf7ab9a127fe3dcdab10b0a6edc3b3584e7f8d723bdb2d99f8880a

Contents?: true

Size: 885 Bytes

Versions: 2

Compression:

Stored size: 885 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Succeq < Symbol
        INPUT = {
          unicodemath: [["succeq", "&#x2ab0;"], parsing_wrapper([">-="])],
          asciimath: [["succeq", ">-=", "&#x2ab0;"]],
          mathml: ["&#x2ab0;"],
          latex: [["succeq", "&#x2ab0;"], parsing_wrapper([">-="])],
          omml: ["&#x2ab0;"],
          html: ["&#x2ab0;"],
        }.freeze

        # output methods
        def to_latex
          "\\succeq"
        end

        def to_asciimath
          "succeq"
        end

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

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

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

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