/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.l

  • Committer: Jacques Distler
  • Date: 2007-08-07 01:54:08 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20070807015408-bnf8punki2qalxfi
Minor Tweaks
Slightly better handling of A^\prime  and of \check{A} and \widecheck{A}.

Show diffs side-by-side

added added

removed removed

1
 
/*             itex2MML 1.2.3
2
 
 *   itex2MML.l last modified 6/15/2007
 
1
/*             itex2MML 1.2.4
 
2
 *   itex2MML.l last modified 6/20/2007
3
3
 */
4
4
 
5
5
%{
47
47
"$"{1,2} |
48
48
"\\]"           {BEGIN(INITIAL); return ENDMATH;}
49
49
 
 
50
 
50
51
"^"            return SUP;
51
52
"_"            return SUB; 
52
53
"{"[\t\r\n ]*"}"   return EMPTYMROW;
147
148
"`"   |
148
149
"*"        {yylval=itex2MML_copy_string(yytext); return MOL;}
149
150
 
 
151
"\\prime"  {yylval=itex2MML_copy_string("′"); return MOLL;}
150
152
"'"        {yylval=itex2MML_copy_string("′"); return MOL;}
151
153
"''"     {yylval=itex2MML_copy_string("″"); return MOL;}
152
154
"'''"  {yylval=itex2MML_copy_string("‴"); return MOL;}
497
499
"\\div" |
498
500
"\\rtimes" |
499
501
"\\bot" |
500
 
"\\prime" |
501
502
"\\therefore" |
502
503
"\\thickapprox" |
503
504
"\\thicksim" |