Sha256: eda456adaf30788438c69773a28709c85570df92f38255d70431fa79bf9662c6

Contents?: true

Size: 977 Bytes

Versions: 2

Compression:

Stored size: 977 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nVrightarrow"
        end

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

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

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

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

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