Sha256: bde58468ae21d49d763ed505e3712664518667e76ef5995ee57222a1a4f45887

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\squarehvfill"
        end

        def to_asciimath
          parsing_wrapper("squarehvfill")
        end

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

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

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

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