Sha256: 475d67faed22bc256f86fccdbb59d4b6a2629c7801beeecb125c4cd7580feaa8

Contents?: true

Size: 953 Bytes

Versions: 2

Compression:

Stored size: 953 Bytes

Contents

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

        # output methods
        def to_latex
          "\\circletophalfblack"
        end

        def to_asciimath
          parsing_wrapper("circletophalfblack")
        end

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

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

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

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