Sha256: caa690ef3aaf42ecf7b63917c9d3aba77e434004a2b95e207beab8e5c1beca9e

Contents?: true

Size: 865 Bytes

Versions: 2

Compression:

Stored size: 865 Bytes

Contents

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

        # output methods
        def to_latex
          "\\acute"
        end

        def to_asciimath
          parsing_wrapper("acute")
        end

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

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

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

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