Sha256: 41bcdf72e9b9bb93d0c3157e44a216351d4dd2e571940395545cc7feb836a164

Contents?: true

Size: 928 Bytes

Versions: 2

Compression:

Stored size: 928 Bytes

Contents

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

        # output methods
        def to_latex
          "\\dashcolon"
        end

        def to_asciimath
          parsing_wrapper("eqcolon")
        end

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

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

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

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