Sha256: aa8bc139acf843cf6f23e06aaad6f9a0d7d52bd03b9f071241e2551ca083184a

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

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

        # output methods
        def to_latex
          "\\blacklefthalfcircle"
        end

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

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

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

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

        def to_html
          "&#x25d6;"
        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/leftcircle.rb
plurimath-0.8.13 lib/plurimath/math/symbols/leftcircle.rb