Sha256: 775b5642ce79ff632f769cd4573aa2c0058732440338140bc4830f75aa8e421b

Contents?: true

Size: 945 Bytes

Versions: 2

Compression:

Stored size: 945 Bytes

Contents

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

        # output methods
        def to_latex
          "\\forksnot"
        end

        def to_asciimath
          parsing_wrapper("forksnot", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2add;"
        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/forksnot.rb
plurimath-0.8.13 lib/plurimath/math/symbols/forksnot.rb