Sha256: 1143cb6bf4ebe0d96780cc32dc5799e75237a9c269f95908fd499f9908701766

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\odotslashdot"
        end

        def to_asciimath
          parsing_wrapper("odotslashdot")
        end

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

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

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

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