Sha256: 2ee4298cf183946f3baa8ae54f24f3f9265f5c55777a72e10c6f5c3ddeb75c3e

Contents?: true

Size: 863 Bytes

Versions: 2

Compression:

Stored size: 863 Bytes

Contents

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

        # output methods
        def to_latex
          "\\tau"
        end

        def to_asciimath
          "tau"
        end

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

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

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

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