Sha256: 687d82a2b082a6f30d4e1a1ab00d768fe51724099b0a25117ec7935da0aab34c

Contents?: true

Size: 927 Bytes

Versions: 2

Compression:

Stored size: 927 Bytes

Contents

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

        # output methods
        def to_latex
          "\\forks"
        end

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

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

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

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

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