Sha256: a8eae0370a1de81a4122cdb211610ba00b295223e694225dadcd68e13d9cb14c

Contents?: true

Size: 875 Bytes

Versions: 2

Compression:

Stored size: 875 Bytes

Contents

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

        # output methods
        def to_latex
          "\\strns"
        end

        def to_asciimath
          parsing_wrapper("strns")
        end

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

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

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

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