Sha256: 272940921795b7e87f25942a5cac86895aa02ea129a7457ce0dc90bb21f28678

Contents?: true

Size: 963 Bytes

Versions: 2

Compression:

Stored size: 963 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Epsilon < Symbol
        INPUT = {
          unicodemath: [["varepsilon", "&#x3b5;"], parsing_wrapper(["epsilon", "upepsilon"])],
          asciimath: [["epsilon", "&#x3b5;"], parsing_wrapper(["varepsilon", "upepsilon"])],
          mathml: ["&#x3b5;"],
          latex: [["upepsilon", "epsilon", "&#x3b5;"], parsing_wrapper(["varepsilon"])],
          omml: ["&#x3b5;"],
          html: ["&#x3b5;"],
        }.freeze

        # output methods
        def to_latex
          "\\varepsilon"
        end

        def to_asciimath
          "epsilon"
        end

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

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

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

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