Sha256: f67ff06de2232b208d2e1b808649ca8033e03ae5c5de8e4d4a5bc5635c47573f

Contents?: true

Size: 1005 Bytes

Versions: 9

Compression:

Stored size: 1005 Bytes

Contents

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

        # output methods
        def to_latex(**)
          "\\circledtwodots"
        end

        def to_asciimath(**)
          parsing_wrapper("circledtwodots", lang: :asciimath)
        end

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

        def to_mathml_without_math_tag(_, **)
          ox_element("mi") << "&#x2687;"
        end

        def to_omml_without_math_tag(_, **)
          "&#x2687;"
        end

        def to_html(**)
          "&#x2687;"
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
plurimath-0.8.23 lib/plurimath/math/symbols/circledtwodots.rb
plurimath-0.8.22 lib/plurimath/math/symbols/circledtwodots.rb
plurimath-0.8.21 lib/plurimath/math/symbols/circledtwodots.rb
plurimath-0.8.20 lib/plurimath/math/symbols/circledtwodots.rb
plurimath-0.8.19 lib/plurimath/math/symbols/circledtwodots.rb
plurimath-0.8.18 lib/plurimath/math/symbols/circledtwodots.rb
plurimath-0.8.17 lib/plurimath/math/symbols/circledtwodots.rb
plurimath-0.8.16 lib/plurimath/math/symbols/circledtwodots.rb
plurimath-0.8.15 lib/plurimath/math/symbols/circledtwodots.rb