Sha256: ca6ded355c392e925a916f1644c0d670cf845c2fddd5bca37f7221b73b563c90

Contents?: true

Size: 959 Bytes

Versions: 2

Compression:

Stored size: 959 Bytes

Contents

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

        # output methods
        def to_latex
          "\\blockthreeqtrshaded"
        end

        def to_asciimath
          parsing_wrapper("blockthreeqtrshaded")
        end

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

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

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

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