Sha256: 0deff9392f046474cc4749482cd58cd37bd222079bda5cedf91f82a6d83d4eea

Contents?: true

Size: 1004 Bytes

Versions: 2

Compression:

Stored size: 1004 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Backepsilon < Symbol
        INPUT = {
          unicodemath: [["&#x3f6;"], parsing_wrapper(["upbackepsilon", "backepsilon"], lang: :unicode)],
          asciimath: [["&#x3f6;"], parsing_wrapper(["upbackepsilon", "backepsilon"], lang: :asciimath)],
          mathml: ["&#x3f6;"],
          latex: [["upbackepsilon", "backepsilon", "&#x3f6;"]],
          omml: ["&#x3f6;"],
          html: ["&#x3f6;"],
        }.freeze

        # output methods
        def to_latex
          "\\backepsilon"
        end

        def to_asciimath
          parsing_wrapper("backepsilon", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x3f6;"
        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/backepsilon.rb
plurimath-0.8.13 lib/plurimath/math/symbols/backepsilon.rb