Sha256: 73e27b7cbb1e0a0e4b04ee94be4c7296fb92b4db75a8a56572444e77f0ffce5d

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\uranus"
        end

        def to_asciimath
          parsing_wrapper("Uranus")
        end

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

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

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

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