Sha256: cf0f749a4cdf11682f7553be0f867cf70e08f799a34c18e23d8780b5cf74b531

Contents?: true

Size: 702 Bytes

Versions: 4

Compression:

Stored size: 702 Bytes

Contents

# frozen_string_literal: true

require_relative "unary_function"

module Plurimath
  module Math
    module Function
      class Ms < UnaryFunction
        def to_mathml_without_math_tag(intent)
          Utility.ox_element("ms") << parameter_one
        end

        def to_asciimath
          "\"“#{parameter_one}”\""
        end

        def to_latex
          "\\text{“#{parameter_one}”}"
        end

        def to_omml_without_math_tag(display_style)
          [
            (Utility.ox_element("t", namespace: "m") << "“#{parameter_one}”"),
          ]
        end

        def to_unicodemath
          Text.new(parameter_one).to_unicodemath
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/function/ms.rb
plurimath-0.8.13 lib/plurimath/math/function/ms.rb
plurimath-0.8.12 lib/plurimath/math/function/ms.rb
plurimath-0.8.11 lib/plurimath/math/function/ms.rb