Sha256: c4915fd21fca6ee8366302db1742c583a14c1e48d1f300cfe874549999f9b862

Contents?: true

Size: 981 Bytes

Versions: 2

Compression:

Stored size: 981 Bytes

Contents

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

        # output methods
        def to_latex
          "\\APLboxquestion"
        end

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

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

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

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

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