Sha256: ad810e8d4f82c2535fb1c75e97dbe8286e8f8d2bb577a6e6905dc6007f33e999

Contents?: true

Size: 957 Bytes

Versions: 2

Compression:

Stored size: 957 Bytes

Contents

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

        # output methods
        def to_latex
          "\\conictaper"
        end

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

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

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

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

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