Sha256: ba97bb8c892ae525de0d23b062f508ecbfff012899e3afe0000682aedc1cd676

Contents?: true

Size: 859 Bytes

Versions: 2

Compression:

Stored size: 859 Bytes

Contents

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

        # output methods
        def to_latex
          ";"
        end

        def to_asciimath
          ";"
        end

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

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

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

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