Sha256: 9652962e4fc8be51ed850900c462f599deb25d0e02574b491716ae9fe2cf648b

Contents?: true

Size: 945 Bytes

Versions: 10

Compression:

Stored size: 945 Bytes

Contents

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

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

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

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

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

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
plurimath-0.8.24 lib/plurimath/math/symbols/cire.rb
plurimath-0.8.23 lib/plurimath/math/symbols/cire.rb
plurimath-0.8.22 lib/plurimath/math/symbols/cire.rb
plurimath-0.8.21 lib/plurimath/math/symbols/cire.rb
plurimath-0.8.20 lib/plurimath/math/symbols/cire.rb
plurimath-0.8.19 lib/plurimath/math/symbols/cire.rb
plurimath-0.8.18 lib/plurimath/math/symbols/cire.rb
plurimath-0.8.17 lib/plurimath/math/symbols/cire.rb
plurimath-0.8.16 lib/plurimath/math/symbols/cire.rb
plurimath-0.8.15 lib/plurimath/math/symbols/cire.rb