Sha256: 85e129482f075d182829ac09eca260b05a3321755dbed5c8f02e5b5e77d8dd31

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\squarevfill"
        end

        def to_asciimath
          parsing_wrapper("squarevfill")
        end

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

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

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

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