Sha256: ea5ecd5d763edd8b7bc59c0235acb5c44aa8bffc65a1c1ffeef71833e5150ac6

Contents?: true

Size: 945 Bytes

Versions: 2

Compression:

Stored size: 945 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Strictfi < Symbol
        INPUT = {
          unicodemath: [["&#x297c;"], parsing_wrapper(["leftfishtail", "strictfi"])],
          asciimath: [["&#x297c;"], parsing_wrapper(["leftfishtail", "strictfi"])],
          mathml: ["&#x297c;"],
          latex: [["leftfishtail", "strictfi", "&#x297c;"]],
          omml: ["&#x297c;"],
          html: ["&#x297c;"],
        }.freeze

        # output methods
        def to_latex
          "\\leftfishtail"
        end

        def to_asciimath
          parsing_wrapper("strictfi")
        end

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

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

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

        def to_html
          "&#x297c;"
        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/strictfi.rb
plurimath-0.8.11 lib/plurimath/math/symbols/strictfi.rb