Sha256: d35dc75ead2b4a4f0c84edbb354dc127f3c36056a800feb0b64a42f0fd680ef1

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 Bytes

Contents

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

        # output methods
        def to_latex
          "\\squareulblack"
        end

        def to_asciimath
          parsing_wrapper("squareulblack")
        end

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

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

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

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