Sha256: d7c6e569de8d62ee1d0bf34b9bd4ea8ade5e75c8bee6285a53a555f2b4d8ae40

Contents?: true

Size: 897 Bytes

Versions: 2

Compression:

Stored size: 897 Bytes

Contents

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

        # output methods
        def to_latex
          "\\ndres"
        end

        def to_asciimath
          parsing_wrapper("dsub")
        end

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

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

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

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