Sha256: 18bc7e2eb01f72d60fad17e43ad103e0fa4863560c64978fa85df49592810cf1

Contents?: true

Size: 901 Bytes

Versions: 2

Compression:

Stored size: 901 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upupsilon"
        end

        def to_asciimath
          "upsilon"
        end

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

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

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

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