Sha256: 300d4607334d1bfebccf078875a7ff31b6d70bf03d3bccbe7ef50da67f58973f

Contents?: true

Size: 881 Bytes

Versions: 7

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          parsing_wrapper("degf")
        end

        def to_asciimath
          parsing_wrapper("degf")
        end

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

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

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

        def to_html
          "&#x2109;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/degf.rb
plurimath-0.8.9 lib/plurimath/math/symbols/degf.rb
plurimath-0.8.8 lib/plurimath/math/symbols/degf.rb
plurimath-0.8.7 lib/plurimath/math/symbols/degf.rb
plurimath-0.8.6 lib/plurimath/math/symbols/degf.rb
plurimath-0.8.5 lib/plurimath/math/symbols/degf.rb
plurimath-0.8.4 lib/plurimath/math/symbols/degf.rb