Sha256: 5b8a1751cd1dd527821b2c5f1d2674098c0da04d80f4de448c1fc4c4979744b4

Contents?: true

Size: 931 Bytes

Versions: 2

Compression:

Stored size: 931 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upvarsigma"
        end

        def to_asciimath
          parsing_wrapper("upvarsigma")
        end

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

        def to_mathml_without_math_tag(_)
          ox_element("mo") << "&#x3c2;"
        end

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

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