Sha256: 2060c39e5d0adceb495da378d802ebd7a4a618234b5f5d6c89d6359daa609419

Contents?: true

Size: 904 Bytes

Versions: 2

Compression:

Stored size: 904 Bytes

Contents

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

        # output methods
        def to_latex
          "\\lessgtr"
        end

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

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

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

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

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