Sha256: f27cb7ca0ecab9b02eae4ad8f9ce8016b77932acfe0b7120451933c584266ea6

Contents?: true

Size: 925 Bytes

Versions: 2

Compression:

Stored size: 925 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nVrightarrow"
        end

        def to_asciimath
          parsing_wrapper("ffun")
        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.12 lib/plurimath/math/symbols/ffun.rb
plurimath-0.8.11 lib/plurimath/math/symbols/ffun.rb