Sha256: 22990f96ecf73228dbccd6ff839143095b56c61c39c09f5dabe3358a462f1188

Contents?: true

Size: 993 Bytes

Versions: 2

Compression:

Stored size: 993 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nVrightarrowtail"
        end

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

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

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

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

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