Sha256: 5bc5694f3f81a310061983cc94b594e12128b5b5c49d8e58e1efb14a16774121

Contents?: true

Size: 933 Bytes

Versions: 2

Compression:

Stored size: 933 Bytes

Contents

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

        # output methods
        def to_latex
          "\\midcir"
        end

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

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

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

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

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