Sha256: 13003eddb72e2db0df9f6b17e588863b6514cb7f4ef05082b9ca11b843a8c8d6

Contents?: true

Size: 992 Bytes

Versions: 2

Compression:

Stored size: 992 Bytes

Contents

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

        # output methods
        def to_latex
          "\\blackrighthalfcircle"
        end

        def to_asciimath
          parsing_wrapper("RIGHTCIRCLE")
        end

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

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

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

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