Sha256: 8959e8cdb345f3d76f98f9e8f19499ec08b47a73e9c36358e8e5549d7badd83d

Contents?: true

Size: 865 Bytes

Versions: 2

Compression:

Stored size: 865 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upEta"
        end

        def to_asciimath
          parsing_wrapper("upEta")
        end

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

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

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

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