Sha256: e752075495ab43c357a4664a4cbd1460d93026ead08b7a45bc06d17287a9e55d

Contents?: true

Size: 945 Bytes

Versions: 7

Compression:

Stored size: 945 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Harr < Symbol
        INPUT = {
          unicodemath: [["Leftrightarrow", "&#x21d4;"], parsing_wrapper(["<=>", "hArr", "iff"])],
          asciimath: [["Leftrightarrow", "<=>", "hArr", "iff", "&#x21d4;"]],
          mathml: ["&#x21d4;"],
          latex: [["Leftrightarrow", "&#x21d4;"], parsing_wrapper(["<=>", "hArr", "iff"])],
          omml: ["&#x21d4;"],
          html: ["&#x21d4;"],
        }.freeze

        # output methods
        def to_latex
          "\\hArr"
        end

        def to_asciimath
          "hArr"
        end

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

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

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

        def to_html
          "&#x21d4;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/harr.rb
plurimath-0.8.9 lib/plurimath/math/symbols/harr.rb
plurimath-0.8.8 lib/plurimath/math/symbols/harr.rb
plurimath-0.8.7 lib/plurimath/math/symbols/harr.rb
plurimath-0.8.6 lib/plurimath/math/symbols/harr.rb
plurimath-0.8.5 lib/plurimath/math/symbols/harr.rb
plurimath-0.8.4 lib/plurimath/math/symbols/harr.rb