Sha256: ce58069a9ed9b3142eb8620bb3297214991ddc68eb979cd81690300a4df2e6ed

Contents?: true

Size: 896 Bytes

Versions: 7

Compression:

Stored size: 896 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

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/blockfull.rb
plurimath-0.8.9 lib/plurimath/math/symbols/blockfull.rb
plurimath-0.8.8 lib/plurimath/math/symbols/blockfull.rb
plurimath-0.8.7 lib/plurimath/math/symbols/blockfull.rb
plurimath-0.8.6 lib/plurimath/math/symbols/blockfull.rb
plurimath-0.8.5 lib/plurimath/math/symbols/blockfull.rb
plurimath-0.8.4 lib/plurimath/math/symbols/blockfull.rb