Sha256: 6b6b04be29565f71e80f95b3a8850b1dc55948c21f581e8ac2694b12a8e751b6

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\subrarr"
        end

        def to_asciimath
          parsing_wrapper("subrarr")
        end

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

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

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

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