Sha256: 9191b9306108ca6a5d5f804fcf299b379dd21b31cc45adf75dd659a09b31b4f4

Contents?: true

Size: 933 Bytes

Versions: 2

Compression:

Stored size: 933 Bytes

Contents

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

        # output methods
        def to_latex
          "\\cirmid"
        end

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

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

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

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

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