Sha256: b12f862b82e5879bf740fe8cf8cde1bd7fd8d24086465545d5ca298c8632b651

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\suphsol"
        end

        def to_asciimath
          parsing_wrapper("suphsol")
        end

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

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

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

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