/itexToMML

To download this project, use:
bzr branch http://golem.ph.utexas.edu/~distler/code/itexToMML/

« back to all changes in this revision

Viewing changes to itex-src/itextomml.rb

  • Committer: Jacques Distler
  • Date: 2007-11-08 04:30:34 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20071108043034-pqqkmb9am6a4u8p8
Makefile Tweak
This now correctly builds a fat-binary shared library under Leopard's Ruby.

Show diffs side-by-side

added added

removed removed

118
118
      assert_equal("<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>sin</mi><mo stretchy=\"false\">(</mo><mi>x</mi><mo stretchy=\"false\">)</mo></math>", itex.block_filter('\sin(x)'))
119
119
    end
120
120
 
 
121
    def test_inline_utf8
 
122
      itex = Itex2MML::Parser.new
 
123
      assert_equal("ecuasi\303\263n <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>sin</mi><mo stretchy=\"false\">(</mo><mi>x</mi><mo stretchy=\"false\">)</mo></math>", itex.html_filter("ecuasi\303\263n $\\sin(x)$"))
 
124
    end
 
125
 
 
126
    def test_inline_utf8_inline
 
127
      itex = Itex2MML::Parser.new
 
128
      assert_equal("<math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>sin</mi><mo stretchy=\"false\">(</mo><mi>x</mi><mo stretchy=\"false\">)</mo></math>", itex.filter("ecuasi\303\263n $\\sin(x)$"))
 
129
    end
 
130
 
121
131
  end
122
132
end