Sha256: bc3d4fc0de2659df0e83346079342d24348476167b00b719f2ea10c8164eb255

Contents?: true

Size: 904 Bytes

Versions: 7

Compression:

Stored size: 904 Bytes

Contents

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

        # output methods
        def to_latex
          "<"
        end

        def to_asciimath
          "lt"
        end

        def to_unicodemath
          Utility.html_entity_to_unicode("<")
        end

        def to_mathml_without_math_tag
          ox_element("mo") << "&#x3c;"
        end

        def to_omml_without_math_tag(_)
          "<"
        end

        def to_html
          "&#x3c;"
        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/less.rb
plurimath-0.8.9 lib/plurimath/math/symbols/less.rb
plurimath-0.8.8 lib/plurimath/math/symbols/less.rb
plurimath-0.8.7 lib/plurimath/math/symbols/less.rb
plurimath-0.8.6 lib/plurimath/math/symbols/less.rb
plurimath-0.8.5 lib/plurimath/math/symbols/less.rb
plurimath-0.8.4 lib/plurimath/math/symbols/less.rb