Sha256: 8e397b1540ce9b5433bd62c38148a76c4d1d1967d907b3a900fe1ca20c59813b

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

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

        # output methods
        def to_latex
          "\\enclosediamond"
        end

        def to_asciimath
          parsing_wrapper("enclosediamond")
        end

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

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

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

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