Sha256: 227e0f5f506e0dd87801ddaec1b16370d1a293b00035a047df83b1e35b814028

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

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

        # output methods
        def to_latex
          "\\blockrighthalf"
        end

        def to_asciimath
          parsing_wrapper("blockrighthalf")
        end

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

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

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

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