Sha256: 3837d44d97190003aa156a8493d2e7b6103042ab6efdd2a2d53bb430439a1018

Contents?: true

Size: 838 Bytes

Versions: 2

Compression:

Stored size: 838 Bytes

Contents

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

        # output methods
        def to_latex
          "\\wr"
        end

        def to_asciimath
          parsing_wrapper("wr")
        end

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

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

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

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