Sha256: 50fe42788c8db4c76965e69cb9d723530b31f9deb031050dcf3b0ceb52ec7f14

Contents?: true

Size: 939 Bytes

Versions: 2

Compression:

Stored size: 939 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Dbkarow < Symbol
        INPUT = {
          unicodemath: [["&#x290f;"], parsing_wrapper(["dbkarow"], lang: :unicode)],
          asciimath: [["&#x290f;"], parsing_wrapper(["dbkarow"], lang: :asciimath)],
          mathml: ["&#x290f;"],
          latex: [["dbkarow", "&#x290f;"]],
          omml: ["&#x290f;"],
          html: ["&#x290f;"],
        }.freeze

        # output methods
        def to_latex
          "\\dbkarow"
        end

        def to_asciimath
          parsing_wrapper("dbkarow", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x290f;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/dbkarow.rb
plurimath-0.8.13 lib/plurimath/math/symbols/dbkarow.rb