Sha256: b36eb232b508278f405d7f1f583701c019a93fc9d8d82b42fa6421ed608e523d

Contents?: true

Size: 900 Bytes

Versions: 2

Compression:

Stored size: 900 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upvarpi"
        end

        def to_asciimath
          parsing_wrapper("varpi")
        end

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

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

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

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