Sha256: 78adb4be9dc5a8c26bd91efd8a80883c10babaf8a4a245b93cc34149197cbb99

Contents?: true

Size: 1006 Bytes

Versions: 2

Compression:

Stored size: 1006 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Longleftarrow"
        end

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

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

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

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

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