Sha256: d083aa16f4df31819249608125b8023897a485c3f0ba027985f79ad362b69b8c

Contents?: true

Size: 920 Bytes

Versions: 4

Compression:

Stored size: 920 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Quad < Symbol
        INPUT = {
          unicodemath: ["&#xa0;&#xa0;", "&#x2001;", "quad"],
          asciimath: ["&#xa0;&#xa0;", "&#x2001;", "quad"],
          mathml: ["&#xa0;&#xa0;", "&#x2001;"],
          latex: ["&#xa0;&#xa0;", "&#x2001;", "quad"],
          omml: ["&#xa0;&#xa0;", "&#x2001;"],
          html: ["&#xa0;&#xa0;", "&#x2001;"],
        }.freeze

        # output methods
        def to_latex
          "\\quad"
        end

        def to_asciimath
          "quad"
        end

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

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

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

        def to_html
          "&#xa0;&#xa0;"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/quad.rb
plurimath-0.8.13 lib/plurimath/math/symbols/quad.rb
plurimath-0.8.12 lib/plurimath/math/symbols/quad.rb
plurimath-0.8.11 lib/plurimath/math/symbols/quad.rb