Sha256: d266f3b7b02f30f76469d1c4048b06f40390d30dcbdfdf6bd1ec5ef9bdf1728a

Contents?: true

Size: 927 Bytes

Versions: 2

Compression:

Stored size: 927 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Second < Symbol
        INPUT = {
          unicodemath: [["&#x2033;"], parsing_wrapper(["''", "second", "dprime"])],
          asciimath: [["''", "&#x2033;"], parsing_wrapper(["second", "dprime"])],
          mathml: ["&#x2033;"],
          latex: [["second", "dprime", "&#x2033;"], parsing_wrapper(["''"])],
          omml: ["&#x2033;"],
          html: ["&#x2033;"],
        }.freeze

        # output methods
        def to_latex
          "\\second"
        end

        def to_asciimath
          "''"
        end

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

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

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

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