Sha256: 3dfe3d2b58fda2812ee72a159b30b9228b5adcae1545d9e0db8d9ee28d9ee686

Contents?: true

Size: 869 Bytes

Versions: 2

Compression:

Stored size: 869 Bytes

Contents

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

        # output methods
        def to_latex
          "\\dsol"
        end

        def to_asciimath
          parsing_wrapper("dsol")
        end

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

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

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

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