Sha256: 47bf34e82169a127afdd57dc0054dbc564d59b691b70d315c4be4183fbb63281

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

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

        # output methods
        def to_latex
          "\\squareleftblack"
        end

        def to_asciimath
          parsing_wrapper("squareleftblack")
        end

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

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

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

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