Sha256: 909aad92ab6d7700eeb72711aec5b15aade6a97acff5e8fa2405efe41c0ccddd

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\longdashv"
        end

        def to_asciimath
          parsing_wrapper("longdashv")
        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

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/longdashv.rb
plurimath-0.8.11 lib/plurimath/math/symbols/longdashv.rb