/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/itex2MML.y

  • Committer: Jacques Distler
  • Date: 2007-10-25 07:18:39 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20071025071839-5qk7wd33pomcda57
Angle Brackets
In the stream filter, the default behaviour is now to allow angle bracket in itex equations.
To forbid them, use the --forbid-markup commandline flag.

Show diffs side-by-side

added added

removed removed

1
 
/*             itex2MML 1.3
2
 
 *   itex2MML.y last modified 10/22/2007
 
1
/*             itex2MML 1.3.1
 
2
 *   itex2MML.y last modified 10/24/2007
3
3
 */
4
4
 
5
5
%{
1576
1576
 
1577
1577
int itex2MML_html_filter (const char * buffer, unsigned long length)
1578
1578
{
 
1579
  itex2MML_do_html_filter (buffer, length, 0);
 
1580
}
 
1581
 
 
1582
int itex2MML_strict_html_filter (const char * buffer, unsigned long length)
 
1583
{
 
1584
  itex2MML_do_html_filter (buffer, length, 1);
 
1585
}
 
1586
 
 
1587
int itex2MML_do_html_filter (const char * buffer, unsigned long length, const int forbid_markup)
 
1588
{
1579
1589
  int result = 0;
1580
1590
 
1581
1591
  int type = 0;
1642
1652
        {
1643
1653
        case '<':
1644
1654
        case '>':
1645
 
          skip = 1;
 
1655
          if (forbid_markup == 1) skip = 1;
1646
1656
          break;
1647
1657
 
1648
1658
        case '\\':