Sha256: ff7f5f9f0ba7ab60c0e9897e3e5fd8fb6dcd4dcec3be85ebc1eae2989f619159

Contents?: true

Size: 716 Bytes

Versions: 4

Compression:

Stored size: 716 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Ul < Symbol
        INPUT = {
          unicodemath: [["_"]],
          asciimath: [["_"]],
          mathml: ["_"],
          latex: [["\\_"]],
          omml: ["_"],
          html: ["_"],
        }.freeze

        # output methods
        def to_latex
          "\\_"
        end

        def to_asciimath
          "_"
        end

        def to_unicodemath
          Utility.html_entity_to_unicode("\\_")
        end

        def to_mathml_without_math_tag(_)
          ox_element("mo") << "_"
        end

        def to_omml_without_math_tag(_)
          "_"
        end

        def to_html
          "_"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/ul.rb
plurimath-0.8.13 lib/plurimath/math/symbols/ul.rb
plurimath-0.8.12 lib/plurimath/math/symbols/ul.rb
plurimath-0.8.11 lib/plurimath/math/symbols/ul.rb