Sha256: 91406bfc2ca567cd27d28b9439c6654ee488bab1f25a2e16188e838f999ac398

Contents?: true

Size: 975 Bytes

Versions: 2

Compression:

Stored size: 975 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Blocklefthalf < Symbol
        INPUT = {
          unicodemath: [["&#x258c;"], parsing_wrapper(["blocklefthalf"], lang: :unicode)],
          asciimath: [["&#x258c;"], parsing_wrapper(["blocklefthalf"], lang: :asciimath)],
          mathml: ["&#x258c;"],
          latex: [["blocklefthalf", "&#x258c;"]],
          omml: ["&#x258c;"],
          html: ["&#x258c;"],
        }.freeze

        # output methods
        def to_latex
          "\\blocklefthalf"
        end

        def to_asciimath
          parsing_wrapper("blocklefthalf", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x258c;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/blocklefthalf.rb
plurimath-0.8.13 lib/plurimath/math/symbols/blocklefthalf.rb