Sha256: f45b18441f267f7e4b654325a6affea011f8bb38366dcae94036761819fdd7a3

Contents?: true

Size: 975 Bytes

Versions: 10

Compression:

Stored size: 975 Bytes

Contents

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

        # output methods
        def to_latex(**)
          "\\longdashv"
        end

        def to_asciimath(**)
          parsing_wrapper("longdashv", lang: :asciimath)
        end

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

        def to_mathml_without_math_tag(_, **)
          ox_element("mi") << "&#x27de;"
        end

        def to_omml_without_math_tag(_, **)
          "&#x27de;"
        end

        def to_html(**)
          "&#x27de;"
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
plurimath-0.8.24 lib/plurimath/math/symbols/longdashv.rb
plurimath-0.8.23 lib/plurimath/math/symbols/longdashv.rb
plurimath-0.8.22 lib/plurimath/math/symbols/longdashv.rb
plurimath-0.8.21 lib/plurimath/math/symbols/longdashv.rb
plurimath-0.8.20 lib/plurimath/math/symbols/longdashv.rb
plurimath-0.8.19 lib/plurimath/math/symbols/longdashv.rb
plurimath-0.8.18 lib/plurimath/math/symbols/longdashv.rb
plurimath-0.8.17 lib/plurimath/math/symbols/longdashv.rb
plurimath-0.8.16 lib/plurimath/math/symbols/longdashv.rb
plurimath-0.8.15 lib/plurimath/math/symbols/longdashv.rb