Sha256: 0f69eafc636ef4f317b80c28b00e70aa9f271b5fdef991621eeefe4342eae70d

Contents?: true

Size: 904 Bytes

Versions: 2

Compression:

Stored size: 904 Bytes

Contents

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

        # output methods
        def to_latex
          "\\lessdot"
        end

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

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

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

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

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