Sha256: 25bd8f552911a7245d58b9d82eeefeda7257f010d6b9603537845146e62082ef

Contents?: true

Size: 989 Bytes

Versions: 2

Compression:

Stored size: 989 Bytes

Contents

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

        # output methods
        def to_latex
          "\\leftarrowshortrightarrow"
        end

        def to_asciimath
          parsing_wrapper("leftarrowshortrightarrow")
        end

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

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

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

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