Sha256: deabc0f16198298310f03ceaf36abbf3950e41b218d336b94d6483673ae0c0e3

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\squarellquad"
        end

        def to_asciimath
          parsing_wrapper("squarellquad")
        end

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

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

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

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