Sha256: 2b15c254b5b22c0affe84e873e98cb96f43dbdc8f711564e3d419f730f3dac73

Contents?: true

Size: 926 Bytes

Versions: 7

Compression:

Stored size: 926 Bytes

Contents

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

        # output methods
        def to_latex
          "\\enclosediamond"
        end

        def to_asciimath
          parsing_wrapper("enclosediamond")
        end

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

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

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

        def to_html
          "&#x20df;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/enclosediamond.rb
plurimath-0.8.9 lib/plurimath/math/symbols/enclosediamond.rb
plurimath-0.8.8 lib/plurimath/math/symbols/enclosediamond.rb
plurimath-0.8.7 lib/plurimath/math/symbols/enclosediamond.rb
plurimath-0.8.6 lib/plurimath/math/symbols/enclosediamond.rb
plurimath-0.8.5 lib/plurimath/math/symbols/enclosediamond.rb
plurimath-0.8.4 lib/plurimath/math/symbols/enclosediamond.rb