Sha256: ff4b42cbce954d0b6254c03f00618ed17867c7028a931e334d008e3f5dd713e3

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\blocklowhalf"
        end

        def to_asciimath
          parsing_wrapper("blocklowhalf")
        end

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

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

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

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