Sha256: 1b6f6674f35c9db0fe263647676718a349eaf6bff8c59c1d096e72f845151c1f

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\lesdot"
        end

        def to_asciimath
          parsing_wrapper("lesdot")
        end

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

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

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

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