Sha256: 797d9badb07d3420fd8c75837173f33ae5d47ca1c08b197b6e193eff6f832bb8

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\triangleodot"
        end

        def to_asciimath
          parsing_wrapper("triangleodot")
        end

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

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

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

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