Sha256: 23f4e2ea29dbeae5359ceef4f4598860cc8cbe4e084fa5314e2f2c81ffd960e9

Contents?: true

Size: 946 Bytes

Versions: 2

Compression:

Stored size: 946 Bytes

Contents

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

        # output methods
        def to_latex
          "\\circledless"
        end

        def to_asciimath
          parsing_wrapper("olessthan")
        end

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

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

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

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