Sha256: e748437b60a6e3d9b306ce50fac145220a202cd472434fa221d35b919085c86d

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\trianglecdot"
        end

        def to_asciimath
          parsing_wrapper("trianglecdot")
        end

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

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

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

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