Sha256: 8636481e0660f445fc7d90534e3b4a6860a797b1fd8a1bf0790f1c33fe5297fb

Contents?: true

Size: 945 Bytes

Versions: 2

Compression:

Stored size: 945 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Eqqcolon < Symbol
        INPUT = {
          unicodemath: [["&#x2255;"], parsing_wrapper(["eqqcolon"], lang: :unicode)],
          asciimath: [["&#x2255;"], parsing_wrapper(["eqqcolon"], lang: :asciimath)],
          mathml: ["&#x2255;"],
          latex: [["eqqcolon", "&#x2255;"]],
          omml: ["&#x2255;"],
          html: ["&#x2255;"],
        }.freeze

        # output methods
        def to_latex
          "\\eqqcolon"
        end

        def to_asciimath
          parsing_wrapper("eqqcolon", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2255;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/eqqcolon.rb
plurimath-0.8.13 lib/plurimath/math/symbols/eqqcolon.rb