Sha256: 619f17f9517715d2f7e9c33ee29210a9287a38cfaca21c4c06bbed820c8c899e

Contents?: true

Size: 924 Bytes

Versions: 2

Compression:

Stored size: 924 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Coloneqq"
        end

        def to_asciimath
          parsing_wrapper("Coloneq")
        end

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

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

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

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