Sha256: 3ae5eb69ea3462cb2285f3a150a57a4ae9402034283721dc4a650716a30bf8a8

Contents?: true

Size: 889 Bytes

Versions: 2

Compression:

Stored size: 889 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upomicron"
        end

        def to_asciimath
          parsing_wrapper("upomicron")
        end

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

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

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

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