Sha256: 5068bbad4d50cbd722d005c23d5ba25b2b1da07e1f252aef648101b4c7a68c44

Contents?: true

Size: 863 Bytes

Versions: 2

Compression:

Stored size: 863 Bytes

Contents

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

        # output methods
        def to_latex
          "\\eta"
        end

        def to_asciimath
          "eta"
        end

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

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

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

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