Sha256: 142f7a89140b2c23d7b570fb4170c7a54da54e8df4b31e2cdbd5e89103798943

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\subedot"
        end

        def to_asciimath
          parsing_wrapper("subedot")
        end

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

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

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

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