Sha256: 1083b869f2da7b85c067bfa53b58de514c6207ae11ff5ff65f79ecbb38d897bd

Contents?: true

Size: 1006 Bytes

Versions: 9

Compression:

Stored size: 1006 Bytes

Contents

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

        # output methods
        def to_latex(**)
          "\\iff"
        end

        def to_asciimath(**)
          "iff"
        end

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

        def to_mathml_without_math_tag(_, **)
          ox_element("mi") << "&#x27ff;"
        end

        def to_omml_without_math_tag(_, **)
          "&#x27ff;"
        end

        def to_html(**)
          "&#x27ff;"
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
plurimath-0.8.23 lib/plurimath/math/symbols/iff.rb
plurimath-0.8.22 lib/plurimath/math/symbols/iff.rb
plurimath-0.8.21 lib/plurimath/math/symbols/iff.rb
plurimath-0.8.20 lib/plurimath/math/symbols/iff.rb
plurimath-0.8.19 lib/plurimath/math/symbols/iff.rb
plurimath-0.8.18 lib/plurimath/math/symbols/iff.rb
plurimath-0.8.17 lib/plurimath/math/symbols/iff.rb
plurimath-0.8.16 lib/plurimath/math/symbols/iff.rb
plurimath-0.8.15 lib/plurimath/math/symbols/iff.rb