Sha256: 3b3b2e6a2d5270a93646d8ed0fdc38f464ad61b6c4cb7212d81c3cd553756991

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\zcmp"
        end

        def to_asciimath
          parsing_wrapper("semi")
        end

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

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

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

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