Sha256: 062048ec2c1d7264a05ef4008a56f5883e461c84879927c180d0f16081c5f419

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\asteraccent"
        end

        def to_asciimath
          parsing_wrapper("asteraccent")
        end

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

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

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

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