Subversion Repositories wimsdev

Rev

Rev 3522 | Rev 5523 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3522 Rev 5461
Line 68... Line 68...
68
    if(fontname[0]=='\\') fontname++;
68
    if(fontname[0]=='\\') fontname++;
69
    else if(strncmp(fontname,mathfont_prefix,strlen(mathfont_prefix))==0)
69
    else if(strncmp(fontname,mathfont_prefix,strlen(mathfont_prefix))==0)
70
      fontname+=strlen(mathfont_prefix);
70
      fontname+=strlen(mathfont_prefix);
71
    if(strlen(fontname)==1 /* && strchr("xyz",fontname[0])==NULL */) {
71
    if(strlen(fontname)==1 /* && strchr("xyz",fontname[0])==NULL */) {
72
        char c=fontname[0];
72
        char c=fontname[0];
73
        if(!isalpha(c)) {
73
        if(!isalpha(c)) { // c is not a letter
74
            buf2[0]=c;buf2[1]=0;
74
            buf2[0]=c;buf2[1]=0;
75
        }
75
        }
76
        else {
76
        else {
-
 
77
        // case of variable xyz in particular
77
            char *pp;
78
            char *pp;
78
            if(c=='f') pp=" "; else pp="";
79
            if(c=='f') pp=" "; else pp="";
79
            snprintf(buf2,sizeof(buf2),"<i>%c</i>%s",c,pp);
80
            snprintf(buf2,sizeof(buf2),"<i>%c</i>%s",c,pp); //-> %c%s in mathml
80
        }
81
        }
81
    }
82
    }
-
 
83
    else {/* interpret font with at least two caracters as \RR \calB - only outside of math environment
82
    else {
84
    not useful in mathml*/
83
#ifdef CASE_INSENSITIVE_FS
85
#ifdef CASE_INSENSITIVE_FS
84
        char *underscore;
86
        char *underscore;
85
        fix_tex_size(); underscore="";
87
        fix_tex_size(); underscore="";
86
            {
88
            {
87
                char *p, *p2;
89
                char *p, *p2;