Sha256: 486b18c349b556ddac4d216272e2efc30b5240ec55f9fb80b405d15ecb4a2bd9

Contents?: true

Size: 953 Bytes

Versions: 2

Compression:

Stored size: 953 Bytes

Contents

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

        # output methods
        def to_latex
          "\\errbarblackdiamond"
        end

        def to_asciimath
          parsing_wrapper("errbarblackdiamond")
        end

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

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

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

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