Sha256: 11374987ad51e8f4098b02e591fe4afd4be15498bf3ddeb8aac5f086b492805d

Contents?: true

Size: 916 Bytes

Versions: 15

Compression:

Stored size: 916 Bytes

Contents

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

        # output methods
        def to_latex(**)
          "\\asymp"
        end

        def to_asciimath(**)
          parsing_wrapper("asymp", lang: :asciimath)
        end

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

        def to_mathml_without_math_tag(_, **)
          ox_element("mi") << "&#x224d;"
        end

        def to_omml_without_math_tag(_, **)
          "&#x224d;"
        end

        def to_html(**)
          "&#x224d;"
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
plurimath-0.9.1 lib/plurimath/math/symbols/asymp.rb
plurimath-0.9.0 lib/plurimath/math/symbols/asymp.rb
plurimath-0.8.27 lib/plurimath/math/symbols/asymp.rb
plurimath-0.8.26 lib/plurimath/math/symbols/asymp.rb
plurimath-0.8.25 lib/plurimath/math/symbols/asymp.rb
plurimath-0.8.24 lib/plurimath/math/symbols/asymp.rb
plurimath-0.8.23 lib/plurimath/math/symbols/asymp.rb
plurimath-0.8.22 lib/plurimath/math/symbols/asymp.rb
plurimath-0.8.21 lib/plurimath/math/symbols/asymp.rb
plurimath-0.8.20 lib/plurimath/math/symbols/asymp.rb
plurimath-0.8.19 lib/plurimath/math/symbols/asymp.rb
plurimath-0.8.18 lib/plurimath/math/symbols/asymp.rb
plurimath-0.8.17 lib/plurimath/math/symbols/asymp.rb
plurimath-0.8.16 lib/plurimath/math/symbols/asymp.rb
plurimath-0.8.15 lib/plurimath/math/symbols/asymp.rb