Sha256: 9c84b80a0ec32b4bf302c30374809edb252a1520dae16795c54e9173e8b4a044

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

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

        # output methods
        def to_latex
          "\\qquad"
        end

        def to_asciimath
          parsing_wrapper("qquad")
        end

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

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

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

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