Index: trunk/extensions/Math/math/lexer.mll |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | let delimiter_uf_op = ['/' '|'] |
15 | 15 | let boxchars = ['0'-'9' 'a'-'z' 'A'-'Z' '+' '-' '*' ',' '=' '(' ')' ':' '/' ';' '?' '.' '!' '\'' '`' ' ' '\128'-'\255'] |
16 | 16 | let aboxchars = ['0'-'9' 'a'-'z' 'A'-'Z' '+' '-' '*' ',' '=' '(' ')' ':' '/' ';' '?' '.' '\'' '`' '!' ' '] |
17 | | -let latex_function_names = "arccos"| "arcsin" | "arctan" | "arg" | "cos" | "cosh" | "cot" | "coth" | "csc"| "deg" | "det" | "dim" | "exp" | "gcd" | "hom" | "inf" | "ker" | "lg" | "lim" | "liminf" | "limsup" | "ln" | "log" | "max" | "min" | "Pr" | "sec" | "sin" | "sinh" | "sup" | "tan" | "tanh" |
| 17 | +let latex_function_names = "arccos" | "arcsin" | "arctan" | "arg" | "cos" | "cosh" | "cot" | "coth" | "csc"| "deg" | "det" | "dim" | "exp" | "gcd" | "hom" | "inf" | "ker" | "lg" | "lim" | "liminf" | "limsup" | "ln" | "log" | "max" | "min" | "Pr" | "sec" | "sin" | "sinh" | "sup" | "tan" | "tanh" |
18 | 18 | let mediawiki_function_names = "arccot" | "arcsec" | "arccsc" | "sgn" | "sen" |
19 | 19 | |
20 | 20 | rule token = parse |
— | — | @@ -56,7 +56,6 @@ |
57 | 57 | | "-" { let str = Lexing.lexeme lexbuf in LITERAL (MHTMLABLEC (FONT_UFH,"-"," − ",MO,str))} |
58 | 58 | | literal_uf_op { let str = Lexing.lexeme lexbuf in LITERAL (MHTMLABLEC (FONT_UFH, str," "^str^" ",MO,str)) } |
59 | 59 | | delimiter_uf_op { let str = Lexing.lexeme lexbuf in DELIMITER (MHTMLABLEC (FONT_UFH, str," "^str^" ",MO,str)) } |
60 | | - | "\\" alpha + { Texutil.find (Lexing.lexeme lexbuf) } |
61 | 60 | | "\\sqrt" space * "[" { FUN_AR1opt "\\sqrt" } |
62 | 61 | | "\\xleftarrow" space * "[" { Texutil.tex_use_ams(); FUN_AR1opt "\\xleftarrow" } |
63 | 62 | | "\\xrightarrow" space * "[" { Texutil.tex_use_ams(); FUN_AR1opt "\\xrightarrow" } |
— | — | @@ -79,6 +78,7 @@ |
80 | 79 | "\\operatorname{" ^ name ^ "}\\{", name ^ "{", MF, name, "{"))) } |
81 | 80 | | "\\" (mediawiki_function_names as name) space * |
82 | 81 | { (Texutil.tex_use_ams(); LITERAL (MHTMLABLEC(FONT_UFH,"\\operatorname{" ^ name ^ "}", name ^ " ", MF, name))) } |
| 82 | + | "\\" alpha + { Texutil.find (Lexing.lexeme lexbuf) } |
83 | 83 | | "\\," { LITERAL (HTMLABLE (FONT_UF, "\\,"," ")) } |
84 | 84 | | "\\ " { LITERAL (HTMLABLE (FONT_UF, "\\ "," ")) } |
85 | 85 | | "\\;" { LITERAL (HTMLABLE (FONT_UF, "\\;"," ")) } |