Sha256: bc30c449c1381f90ce248e1686f3fb491dbcf1214c32e8425a6aacb0b92b1e36

Contents?: true

Size: 915 Bytes

Versions: 2

Compression:

Stored size: 915 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Lsh"
        end

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

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

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

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

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