Sha256: bfdac86ddab1f2e670221399cf838588564aa706991752bf8585decfac9067d6

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

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

        # output methods
        def to_latex
          "\\widebridgeabove"
        end

        def to_asciimath
          parsing_wrapper("widebridgeabove")
        end

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

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

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

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