File: math_ml.rb

package info (click to toggle)
ruby-mathml 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 516 kB
  • sloc: ruby: 10,090; makefile: 10
file content (25 lines) | stat: -rw-r--r-- 520 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# MathML Library
#
# Copyright (C) 2005, KURODA Hiraku <hiraku@hinet.mydns.jp>
# You can redistribute it and/or modify it under GPL2.

require 'strscan'
module MathML
  require 'eim_xml'

  class XMLElement < EimXML::Element
    def pop
      @contents.pop
    end
  end

  def self.pcstring(s, encoded = false)
    s.is_a?(EimXML::PCString) ? s : EimXML::PCString.new(s, encoded)
  end

  class Error < StandardError; end
end

require 'math_ml/element'
require 'math_ml/symbol/entity_reference'
require 'math_ml/latex'