Sha256: e9bf14f8d54c2efa230ea614e31b84e3d6e244e8e01dd00a49b6f6fcc838d1c6

Contents?: true

Size: 938 Bytes

Versions: 2

Compression:

Stored size: 938 Bytes

Contents

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

        # output methods
        def to_latex
          "\\overparen"
        end

        def to_asciimath
          parsing_wrapper("wideparen")
        end

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

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

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

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