Sha256: 45cd9364f35d35cdebb83ef20183d67982c84d7630a9cb83d647345b04c974f0

Contents?: true

Size: 927 Bytes

Versions: 2

Compression:

Stored size: 927 Bytes

Contents

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

        # output methods
        def to_latex
          "\\forkv"
        end

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

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

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

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

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