Sha256: 8a066bdd5586c6cd52da2fc5e7c8bf5aee93888bc14f41cf0ee22b8c6a7f12bc

Contents?: true

Size: 834 Bytes

Versions: 4

Compression:

Stored size: 834 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Varepsilon < Symbol
        INPUT = {
          unicodemath: ["&#x25b;", "varepsilon"],
          asciimath: ["varepsilon", "&#x25b;"],
          mathml: ["&#x25b;"],
          latex: ["varepsilon", "&#x25b;"],
          omml: ["&#x25b;"],
          html: ["&#x25b;"],
        }.freeze

        # output methods
        def to_latex
          "\\varepsilon"
        end

        def to_asciimath
          "varepsilon"
        end

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

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

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

        def to_html
          "&#x25b;"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/varepsilon.rb
plurimath-0.8.13 lib/plurimath/math/symbols/varepsilon.rb
plurimath-0.8.12 lib/plurimath/math/symbols/varepsilon.rb
plurimath-0.8.11 lib/plurimath/math/symbols/varepsilon.rb