Sha256: 94222a0bee608bc1d7e81de788de12bd0a06a728cc3c2331c9683f455f211a47

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

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

        # output methods
        def to_latex
          "\\squarecrossfill"
        end

        def to_asciimath
          parsing_wrapper("squarecrossfill")
        end

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

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

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

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