Sha256: d77eb36f4aa1e50d7a2f44888ca641ffb1c7f62a5121d209f2741ac442ad3a8a

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

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

        # output methods
        def to_latex
          "\\squareneswfill"
        end

        def to_asciimath
          parsing_wrapper("squareneswfill")
        end

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

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

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

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