Sha256: eaac6fcba3b1dece4f8ada92cc307f61081a1ad58a0269bef980cea87e54c452

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\smwhitestar"
        end

        def to_asciimath
          parsing_wrapper("smwhitestar")
        end

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

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

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

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