Sha256: a477f3e192b49029bc8a1faf99862edd576f9da1a0c691b47467bdc3e831e425

Contents?: true

Size: 940 Bytes

Versions: 2

Compression:

Stored size: 940 Bytes

Contents

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

        # output methods
        def to_latex
          "\\fallingdotseq"
        end

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

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

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

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

        def to_html
          "&#x2252;"
        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/fallingdotseq.rb
plurimath-0.8.13 lib/plurimath/math/symbols/fallingdotseq.rb