Sha256: 3c537b921065c23fd9f37e651b65df7f89c10b974bec9d09c0e72b3555992a4e

Contents?: true

Size: 969 Bytes

Versions: 9

Compression:

Stored size: 969 Bytes

Contents

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

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

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

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

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

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

        def to_html(**)
          "&#x2a67;"
        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/dotequiv.rb
plurimath-0.8.22 lib/plurimath/math/symbols/dotequiv.rb
plurimath-0.8.21 lib/plurimath/math/symbols/dotequiv.rb
plurimath-0.8.20 lib/plurimath/math/symbols/dotequiv.rb
plurimath-0.8.19 lib/plurimath/math/symbols/dotequiv.rb
plurimath-0.8.18 lib/plurimath/math/symbols/dotequiv.rb
plurimath-0.8.17 lib/plurimath/math/symbols/dotequiv.rb
plurimath-0.8.16 lib/plurimath/math/symbols/dotequiv.rb
plurimath-0.8.15 lib/plurimath/math/symbols/dotequiv.rb