Sha256: b20ae89870b66e0888b5ceda1ef129b3f9d609f32e17f81cb28cd4c7834ea512

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\vlongdash"
        end

        def to_asciimath
          parsing_wrapper("vlongdash")
        end

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

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

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

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