Sha256: 9303742c90dd3cd53e321fff796cd01f9ec194fb6ecc2ca19ae3b9e0289afc92

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\wideutilde"
        end

        def to_asciimath
          parsing_wrapper("utilde")
        end

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

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

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

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