Sha256: a290ae2bcf93b67ddc98100977e63355c55300c80a2dcb24e750e59ec2fb4cb9

Contents?: true

Size: 891 Bytes

Versions: 2

Compression:

Stored size: 891 Bytes

Contents

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

        # output methods
        def to_latex
          "\\third"
        end

        def to_asciimath
          "third"
        end

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

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

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

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