Sha256: 0002612b0da04b5096d48a5d1ec842c34a17c6ca419ff270c0a92ac4d3e2999d

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\doublebarvee"
        end

        def to_asciimath
          parsing_wrapper("doublebarvee")
        end

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

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

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

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