Sha256: 408039198d02f9dff13a74af72da12c5750c09cb3f9a3b318e80e850b102272c

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\thermod"
        end

        def to_asciimath
          parsing_wrapper("thermod")
        end

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

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

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

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