/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: 2009-11-06 19:14:13 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20091106191413-phcdhpavgsp7qhy7
Tags: 1.3.16
itex2MML 1.3.16: \tooltip{}{}

Support the \tooltip{}{} command, which
creates an <maction actiontype="tooltip">.

Also, some fixes from Emmanuel Pacaud:
a) suppress a compiler warning
b) strip carriage returns

Show diffs side-by-side

added added

removed removed

1
 
/*             itex2MML 1.3.14
2
 
 *   itex2MML.l last modified 10/11/2009
 
1
/*             itex2MML 1.3.16
 
2
 *   itex2MML.l last modified 11/6/2009
3
3
 */
4
4
 
5
5
%{
760
760
"\\text"          {BEGIN(PLAINTEXT); return TEXTBOX;}
761
761
 
762
762
"\\statusline"    {BEGIN(PLAINTEXT); return STATLINE;}
 
763
"\\tooltip"       {BEGIN(PLAINTEXT); return TOOLTIP;}
763
764
 
764
765
"\\toggle"        {return TOGGLE;}
765
766
 
869
870
"\&#x"[a-fA-F0-9]+";"  {yylval=itex2MML_copy_string(yytext); return MI;}
870
871
 
871
872
"\n"             itex2MML_lineno++;
872
 
[\t ]+           ;
 
873
[\r\t ]+           ;
873
874
 
874
875
 
875
876
.              {return UNKNOWNCHAR;}