Sha256: e9803f87cbb79f1bcf2edf13b7ad30401a0fde41214aa4a960f4a2ae30ad272a

Contents?: true

Size: 877 Bytes

Versions: 7

Compression:

Stored size: 877 Bytes

Contents

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

        # output methods
        def to_latex
          "\\lesseqgtr"
        end

        def to_asciimath
          parsing_wrapper("lesseqgtr")
        end

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

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

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

        def to_html
          "&#x22da;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/lesseqgtr.rb
plurimath-0.8.9 lib/plurimath/math/symbols/lesseqgtr.rb
plurimath-0.8.8 lib/plurimath/math/symbols/lesseqgtr.rb
plurimath-0.8.7 lib/plurimath/math/symbols/lesseqgtr.rb
plurimath-0.8.6 lib/plurimath/math/symbols/lesseqgtr.rb
plurimath-0.8.5 lib/plurimath/math/symbols/lesseqgtr.rb
plurimath-0.8.4 lib/plurimath/math/symbols/lesseqgtr.rb