Sha256: 2a65a35dc02e8284e9958d41d2cdd5d52f808383b4c1837e2450fc2f91b5269f

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\smwhtcircle"
        end

        def to_asciimath
          parsing_wrapper("smwhtcircle")
        end

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

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

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

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