Sha256: e07f5d9bea7b1e5365c5e3c54df81c84ec54b06f97115184451bf105766c2af6

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\ltquest"
        end

        def to_asciimath
          parsing_wrapper("ltquest")
        end

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

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

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

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