Sha256: c0cbd0f689606c22f8bdf27956ec4da9e9421ef32a935035227749faf09ef6df

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\twocups"
        end

        def to_asciimath
          parsing_wrapper("twocups")
        end

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

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

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

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