Sha256: 7ec4c8d2b56acf58034bddd93e3507756b041e2a10ceeab7279caa577c68fee3

Contents?: true

Size: 865 Bytes

Versions: 2

Compression:

Stored size: 865 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upTau"
        end

        def to_asciimath
          parsing_wrapper("upTau")
        end

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

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

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

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