Sha256: 97b84e1b72bba1f34e6f4827f4d91980d4d72937087a946a152bc8f26502b081

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 Bytes

Contents

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

        # output methods
        def to_latex
          "\\threeunderdot"
        end

        def to_asciimath
          parsing_wrapper("threeunderdot")
        end

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

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

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

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