Sha256: c2af205dd67f8d42de4dbd393f1ca9d7120ac3919a1d90426f790fa951e0e3f1

Contents?: true

Size: 941 Bytes

Versions: 2

Compression:

Stored size: 941 Bytes

Contents

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

        # output methods
        def to_latex
          "\\squarerightblack"
        end

        def to_asciimath
          parsing_wrapper("squarerightblack")
        end

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

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

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

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