Sha256: 7a2682593d01e974e7b701d9dff4b0142c8d11ba17a1d9d75d10a948e61f95a6

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\blockfull"
        end

        def to_asciimath
          parsing_wrapper("blockfull")
        end

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

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

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

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