Sha256: 68de28407f5db4ef34131e653ff861a7ee45567fb2fe9fa0d609c4332ae96b3b

Contents?: true

Size: 960 Bytes

Versions: 7

Compression:

Stored size: 960 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

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/epsilon.rb
plurimath-0.8.9 lib/plurimath/math/symbols/epsilon.rb
plurimath-0.8.8 lib/plurimath/math/symbols/epsilon.rb
plurimath-0.8.7 lib/plurimath/math/symbols/epsilon.rb
plurimath-0.8.6 lib/plurimath/math/symbols/epsilon.rb
plurimath-0.8.5 lib/plurimath/math/symbols/epsilon.rb
plurimath-0.8.4 lib/plurimath/math/symbols/epsilon.rb