Sha256: f2fcbb42e9e8cd17edd777573964426cb3ae840a7e2f1b581354a8b8f59c4113

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\dicevi"
        end

        def to_asciimath
          parsing_wrapper("dicevi")
        end

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

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

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

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