Sha256: cb65fb097c0fe0f9d28af62a4a431869ffdb1b61bd97fa352010f5cbdaa54167

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\vertoverlay"
        end

        def to_asciimath
          parsing_wrapper("vertoverlay")
        end

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

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

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

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