Sha256: c70327ea67b4d9d79e947d77dfeefdaa0c0d663e0be53732d043573584ccc448

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 Bytes

Contents

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

        # output methods
        def to_latex
          "\\threedotcolon"
        end

        def to_asciimath
          parsing_wrapper("threedotcolon")
        end

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

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

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

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