Sha256: e2fa5961d4d462887019c9a92a7cdaca33c33bee702a184eae2c1b29a4363e7c

Contents?: true

Size: 969 Bytes

Versions: 2

Compression:

Stored size: 969 Bytes

Contents

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

        # output methods
        def to_latex
          "\\doublebarvee"
        end

        def to_asciimath
          parsing_wrapper("doublebarvee", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/doublebarvee.rb
plurimath-0.8.13 lib/plurimath/math/symbols/doublebarvee.rb