Sha256: dd122d7be5bcabfa474f8bfc22b7e101d08525ed32feb18672909f4f34f364bb

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\topcir"
        end

        def to_asciimath
          parsing_wrapper("topcir")
        end

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

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

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

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