Sha256: b6dd78c5d86f685669be5e326da76904a00e5a31b0b6a6d9d1bfd6e15bc87f6d

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\steaming"
        end

        def to_asciimath
          parsing_wrapper("steaming")
        end

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

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

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

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