Sha256: c6feae8f0e3ec9b68b8f28dba9bb21a82ecf98fcd17ac53687340d116e116c58

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

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

        # output methods
        def to_latex
          "\\squarenwsefill"
        end

        def to_asciimath
          parsing_wrapper("squarenwsefill")
        end

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

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

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

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