Sha256: 98a88c5a94b5b9816bbde5f713c8d9131630768f23374343b8ce15c2d4e71116

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\simless"
        end

        def to_asciimath
          parsing_wrapper("simless")
        end

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

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

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

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