Sha256: bbe298103a5eac63033412002fadd9d21df363a92a79e0dfc29e7263abc91ce2

Contents?: true

Size: 897 Bytes

Versions: 2

Compression:

Stored size: 897 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Eta < Symbol
        INPUT = {
          unicodemath: [["eta", "&#x3b7;"], parsing_wrapper(["upeta"], lang: :unicode)],
          asciimath: [["eta", "&#x3b7;"], parsing_wrapper(["upeta"], lang: :asciimath)],
          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.14 lib/plurimath/math/symbols/eta.rb
plurimath-0.8.13 lib/plurimath/math/symbols/eta.rb