r96993 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96992‎ | r96993 | r96994 >
Date:19:07, 13 September 2011
Author:brion
Status:ok
Tags:
Comment:
MFT r96990: provisional revert of texvc changes that don't come with any test cases: r86962, r86965, r87092, r87117, r87284, r87298, r87934, r87936, r87941, r88030, r88260
Modified paths:
  • /branches/REL1_18/extensions/Math/math/html.ml (modified) (history)
  • /branches/REL1_18/extensions/Math/math/lexer.mll (modified) (history)
  • /branches/REL1_18/extensions/Math/math/mathml.ml (modified) (history)
  • /branches/REL1_18/extensions/Math/math/parser.mly (modified) (history)
  • /branches/REL1_18/extensions/Math/math/render_info.mli (modified) (history)
  • /branches/REL1_18/extensions/Math/math/texutil.ml (modified) (history)

Diff [purge]

Index: branches/REL1_18/extensions/Math/math/mathml.ml
@@ -1,15 +1,13 @@
22 open Tex
33 open Render_info
44
5 -type t = TREE_MN of string | TREE_MO of string | TREE_MI of string | TREE_MF of string | TREE_MFB of string * string
 5+type t = TREE_MN of string | TREE_MO of string | TREE_MI of string
66
77 let rec make_mathml_tree = function
88 TREE_MN a::otr,TEX_LITERAL(MHTMLABLEC(_,_,_,MN,b))::itr -> make_mathml_tree(TREE_MN (a^b)::otr,itr)
99 | otr,TEX_LITERAL(MHTMLABLEC(_,_,_,MN,a))::itr -> make_mathml_tree(TREE_MN a::otr,itr)
1010 | otr,TEX_LITERAL(MHTMLABLEC(_,_,_,MO,a))::itr -> make_mathml_tree(TREE_MO a::otr,itr)
1111 | otr,TEX_LITERAL(MHTMLABLEC(_,_,_,MI,a))::itr -> make_mathml_tree(TREE_MI a::otr,itr)
12 - | otr,TEX_LITERAL(MHTMLABLEC(_,_,_,MF,a))::itr -> make_mathml_tree(TREE_MF a::otr,itr)
13 - | otr,TEX_LITERAL(MHTMLABLEFC(_,_,_,MF,a,b))::itr -> make_mathml_tree(TREE_MFB (a,b)::otr,itr)
1412 | otr,TEX_CURLY(crl)::itr -> make_mathml_tree(otr,crl@itr)
1513 | otr,[] -> List.rev otr
1614 | _ -> failwith "failed to render mathml"
@@ -18,7 +16,5 @@
1917 TREE_MN s -> "<mn>"^s^"</mn>"
2018 | TREE_MI s -> "<mi>"^s^"</mi>"
2119 | TREE_MO s -> "<mo>"^s^"</mo>"
22 - | TREE_MF s -> "<mi>"^s^" </mi>"
23 - | TREE_MFB (s,b) -> "<mi>"^s^"</mi>"^"<mo>"^b^"</mo>"
2420
2521 let render tree = try Some (Util.mapjoin render_mathml_tree (make_mathml_tree ([],tree))) with _ -> None
Index: branches/REL1_18/extensions/Math/math/parser.mly
@@ -2,7 +2,7 @@
33 open Tex
44 open Render_info
55
6 - let sq_close_ri = MHTMLABLEC(FONT_UFH,"]", "]",MO,"]")
 6+ let sq_close_ri = HTMLABLEC(FONT_UFH,"]", "]")
77 %}
88 %token <Render_info.t> LITERAL DELIMITER
99 %token <string> FUN_AR2 FUN_INFIX FUN_AR1 DECL FUN_AR1opt BIG FUN_AR2nb
Index: branches/REL1_18/extensions/Math/math/lexer.mll
@@ -6,15 +6,13 @@
77 let space = [' ' '\t' '\n' '\r']
88 let alpha = ['a'-'z' 'A'-'Z']
99 let literal_id = ['a'-'z' 'A'-'Z']
10 -let literal_mn = ['0'-'9' '.']
 10+let literal_mn = ['0'-'9']
1111 let literal_uf_lt = [',' ':' ';' '?' '!' '\'']
12 -let delimiter_uf_lt = ['(' ')']
 12+let delimiter_uf_lt = ['(' ')' '.']
1313 let literal_uf_op = ['+' '-' '*' '=']
1414 let delimiter_uf_op = ['/' '|']
15 -let boxchars = ['0'-'9' 'a'-'z' 'A'-'Z' '+' '-' '*' ',' '=' '(' ')' ':' '/' ';' '?' '.' '!' '\'' '`' ' ' '\128'-'\255']
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"
18 -let mediawiki_function_names = "arccot" | "arcsec" | "arccsc" | "sgn" | "sen"
 15+let boxchars = ['0'-'9' 'a'-'z' 'A'-'Z' '+' '-' '*' ',' '=' '(' ')' ':' '/' ';' '?' '.' '!' ' ' '\128'-'\255']
 16+let aboxchars = ['0'-'9' 'a'-'z' 'A'-'Z' '+' '-' '*' ',' '=' '(' ')' ':' '/' ';' '?' '.' '!' ' ']
1917
2018 rule token = parse
2119 space + { token lexbuf }
@@ -52,39 +50,20 @@
5351 | literal_id { let str = Lexing.lexeme lexbuf in LITERAL (MHTMLABLEC (FONT_IT, str,str,MI,str)) }
5452 | literal_mn { let str = Lexing.lexeme lexbuf in LITERAL (MHTMLABLEC (FONT_RM, str,str,MN,str)) }
5553 | literal_uf_lt { let str = Lexing.lexeme lexbuf in LITERAL (HTMLABLEC (FONT_UFH, str,str)) }
56 - | delimiter_uf_lt { let str = Lexing.lexeme lexbuf in DELIMITER (MHTMLABLEC (FONT_UFH, str,str,MO,str)) }
57 - | "-" { let str = Lexing.lexeme lexbuf in LITERAL (MHTMLABLEC (FONT_UFH,"-"," &minus; ",MO," &minus; "))}
58 - | literal_uf_op { let str = Lexing.lexeme lexbuf in LITERAL (MHTMLABLEC (FONT_UFH, str,"&nbsp;"^str^"&nbsp;",MO," "^str^" ")) }
 54+ | delimiter_uf_lt { let str = Lexing.lexeme lexbuf in DELIMITER (HTMLABLEC (FONT_UFH, str,str)) }
 55+ | "-" { let str = Lexing.lexeme lexbuf in LITERAL (MHTMLABLEC (FONT_UFH,"-"," &minus; ",MO,str))}
 56+ | literal_uf_op { let str = Lexing.lexeme lexbuf in LITERAL (MHTMLABLEC (FONT_UFH, str," "^str^" ",MO,str)) }
5957 | delimiter_uf_op { let str = Lexing.lexeme lexbuf in DELIMITER (MHTMLABLEC (FONT_UFH, str," "^str^" ",MO,str)) }
 58+ | "\\" alpha + { Texutil.find (Lexing.lexeme lexbuf) }
6059 | "\\sqrt" space * "[" { FUN_AR1opt "\\sqrt" }
6160 | "\\xleftarrow" space * "[" { Texutil.tex_use_ams(); FUN_AR1opt "\\xleftarrow" }
6261 | "\\xrightarrow" space * "[" { Texutil.tex_use_ams(); FUN_AR1opt "\\xrightarrow" }
63 - | "\\" (latex_function_names as name) space * "("
64 - { LITERAL (MHTMLABLEFC(FONT_UFH,"\\" ^ name ^ "(", name ^ "(", MF, name, "(")) }
65 - | "\\" (latex_function_names as name) space * "["
66 - { LITERAL (MHTMLABLEFC(FONT_UFH,"\\" ^ name ^ "[", name ^ "[", MF, name, "[")) }
67 - | "\\" (latex_function_names as name) space * "\\{"
68 - { LITERAL (MHTMLABLEFC(FONT_UFH, "\\" ^ name ^ "\\{", name ^ "{", MF, name, "{")) }
69 - | "\\" (latex_function_names as name) space *
70 - { LITERAL (MHTMLABLEC(FONT_UFH,"\\" ^ name ^ " ", name ^ "&nbsp;", MF, name)) }
71 - | "\\" (mediawiki_function_names as name) space * "("
72 - { (Texutil.tex_use_ams(); LITERAL (MHTMLABLEFC(FONT_UFH,
73 - "\\operatorname{" ^ name ^ "}(", name ^ "(", MF, name, "("))) }
74 - | "\\" (mediawiki_function_names as name) space * "["
75 - { (Texutil.tex_use_ams(); LITERAL (MHTMLABLEFC(FONT_UFH,
76 - "\\operatorname{" ^ name ^ "}[", name ^ "[", MF, name, "["))) }
77 - | "\\" (mediawiki_function_names as name) space * "\\{"
78 - { (Texutil.tex_use_ams(); LITERAL (MHTMLABLEFC(FONT_UFH,
79 - "\\operatorname{" ^ name ^ "}\\{", name ^ "{", MF, name, "{"))) }
80 - | "\\" (mediawiki_function_names as name) space *
81 - { (Texutil.tex_use_ams(); LITERAL (MHTMLABLEC(FONT_UFH,"\\operatorname{" ^ name ^ "} ", name ^ "&nbsp;", MF, name))) }
82 - | "\\" alpha + { Texutil.find (Lexing.lexeme lexbuf) }
8362 | "\\," { LITERAL (HTMLABLE (FONT_UF, "\\,","&nbsp;")) }
8463 | "\\ " { LITERAL (HTMLABLE (FONT_UF, "\\ ","&nbsp;")) }
8564 | "\\;" { LITERAL (HTMLABLE (FONT_UF, "\\;","&nbsp;")) }
8665 | "\\!" { LITERAL (TEX_ONLY "\\!") }
87 - | "\\{" { DELIMITER (MHTMLABLEC(FONT_UFH,"\\{","{",MO,"{")) }
88 - | "\\}" { DELIMITER (MHTMLABLEC(FONT_UFH,"\\}","}",MO,"}")) }
 66+ | "\\{" { DELIMITER (HTMLABLEC(FONT_UFH,"\\{","{")) }
 67+ | "\\}" { DELIMITER (HTMLABLEC(FONT_UFH,"\\}","}")) }
8968 | "\\|" { DELIMITER (HTMLABLE (FONT_UFH,"\\|","||")) }
9069 | "\\_" { LITERAL (HTMLABLEC(FONT_UFH,"\\_","_")) }
9170 | "\\#" { LITERAL (HTMLABLE (FONT_UFH,"\\#","#")) }
@@ -120,7 +99,7 @@
121100 | '%' { LITERAL (HTMLABLEC(FONT_UFH,"\\%","%")) }
122101 | '$' { LITERAL (HTMLABLEC(FONT_UFH,"\\$","$")) }
123102 | '~' { LITERAL (HTMLABLE (FONT_UF, "~","&nbsp;")) }
124 - | '[' { DELIMITER (MHTMLABLEC(FONT_UFH,"[","[",MO,"[")) }
 103+ | '[' { DELIMITER (HTMLABLEC(FONT_UFH,"[","[")) }
125104 | ']' { SQ_CLOSE }
126105 | '{' { CURLY_OPEN }
127106 | '}' { CURLY_CLOSE }
Index: branches/REL1_18/extensions/Math/math/texutil.ml
@@ -9,7 +9,6 @@
1010 | HTMLABLEM (_,t,_) -> t
1111 | HTMLABLEC (_,t,_) -> t
1212 | MHTMLABLEC (_,t,_,_,_) -> t
13 - | MHTMLABLEFC (_,t,_,_,_,_) -> t
1413 | HTMLABLE_BIG (t,_) -> t
1514 | TEX_ONLY t -> t
1615
@@ -21,7 +20,7 @@
2221 | TEX_DQN (a) -> "_{" ^ (render_tex a) ^ "}"
2322 | TEX_UQN (a) -> "^{" ^ (render_tex a) ^ "}"
2423 | TEX_LITERAL s -> tex_part s
25 - | TEX_FUN1 (f,a) -> f ^ " " ^ (render_tex a)
 24+ | TEX_FUN1 (f,a) -> "{" ^ f ^ " " ^ (render_tex a) ^ "}"
2625 | TEX_FUN1hl (f,_,a) -> "{" ^ f ^ " " ^ (render_tex a) ^ "}"
2726 | TEX_FUN1hf (f,_,a) -> "{" ^ f ^ " " ^ (render_tex a) ^ "}"
2827 | TEX_DECLh (f,_,a) -> "{" ^ f ^ "{" ^ (mapjoin render_tex a) ^ "}}"
@@ -46,22 +45,16 @@
4746 let modules_nonascii = ref false
4847 let modules_encoding = ref UTF8
4948 let modules_color = ref false
50 -let modules_teubner = ref false
51 -let modules_euro = ref false
5249
5350 (* wrappers to easily set / reset module properties *)
5451 let tex_use_ams () = modules_ams := true
5552 let tex_use_nonascii () = modules_nonascii := true
5653 let tex_use_color () = modules_color := true
57 -let tex_use_teubner () = modules_teubner := true
58 -let tex_use_euro () = modules_euro := true
5954 let tex_mod_reset () = (
6055 modules_ams := false;
6156 modules_nonascii := false;
6257 modules_encoding := UTF8;
63 - modules_color := false;
64 - modules_teubner := false;
65 - modules_euro := false;
 58+ modules_color := false
6659 )
6760
6861 (* Return TeX fragment for one of the encodings in (UTF8,LATIN1,LATIN2) *)
@@ -75,8 +68,6 @@
7669 (if !modules_nonascii then get_encoding !modules_encoding else "") ^
7770 (if !modules_ams then "\\usepackage{amsmath}\n\\usepackage{amsfonts}\n\\usepackage{amssymb}\n" else "") ^
7871 (if !modules_color then "\\usepackage[dvips,usenames]{color}\n" else "") ^
79 - (if !modules_teubner then "\\usepackage[greek]{babel}\n\\usepackage{teubner}\n" else "") ^
80 - (if !modules_euro then "\\usepackage{eurosym}\n" else "") ^
8172 "\\usepackage{cancel}\n\\pagestyle{empty}\n\\begin{document}\n$$\n"
8273
8374 (* TeX fragment appended after the content *)
@@ -106,7 +97,7 @@
10798 | "\\epsilon" -> LITERAL (TEX_ONLY "\\epsilon ")
10899 | "\\Epsilon" -> (tex_use_ams (); LITERAL (HTMLABLEC (FONT_UF,
109100 "\\mathrm{E}", "&Epsilon;")))
110 - | "\\varepsilon" -> LITERAL (HTMLABLEC (FONT_UF, "\\varepsilon ", "&epsilon;"))
 101+ | "\\varepsilon" -> LITERAL (TEX_ONLY "\\varepsilon ")
111102 | "\\zeta" -> LITERAL (HTMLABLEC (FONT_UF, "\\zeta ", "&zeta;"))
112103 | "\\Zeta" -> (tex_use_ams (); LITERAL (HTMLABLEC (FONT_UF,
113104 "\\mathrm{Z}", "&Zeta;")))
@@ -151,9 +142,9 @@
152143 "\\mathrm{T}", "&Tau;")))
153144 | "\\upsilon" -> LITERAL (HTMLABLEC (FONT_UF, "\\upsilon ", "&upsilon;"))
154145 | "\\Upsilon" -> LITERAL (HTMLABLEC (FONT_UF, "\\Upsilon ", "&Upsilon;"))
155 - | "\\phi" -> LITERAL (HTMLABLEC (FONT_UF, "\\phi ", "&#981;"))
 146+ | "\\phi" -> LITERAL (TEX_ONLY "\\phi ")
156147 | "\\Phi" -> LITERAL (HTMLABLEC (FONT_UF, "\\Phi ", "&Phi;"))
157 - | "\\varphi" -> LITERAL (HTMLABLEC (FONT_UF, "\\varphi ", "&phi;"))
 148+ | "\\varphi" -> LITERAL (TEX_ONLY "\\varphi ")
158149 | "\\chi" -> LITERAL (HTMLABLEC (FONT_UF, "\\chi ", "&chi;"))
159150 | "\\Chi" -> (tex_use_ams (); LITERAL (HTMLABLEC (FONT_UF,
160151 "\\mathrm{X}", "&Chi;")))
@@ -249,6 +240,16 @@
250241 | "\\triangleleft" -> LITERAL (TEX_ONLY "\\triangleleft ")
251242 | "\\triangleright" -> LITERAL (TEX_ONLY "\\triangleright ")
252243 | "\\textvisiblespace" -> LITERAL (TEX_ONLY "\\textvisiblespace ")
 244+ | "\\ker" -> LITERAL (HTMLABLEC(FONT_UFH,"\\ker ","ker"))
 245+ | "\\lim" -> LITERAL (TEX_ONLY "\\lim ")
 246+ | "\\limsup" -> LITERAL (TEX_ONLY "\\limsup ")
 247+ | "\\liminf" -> LITERAL (TEX_ONLY "\\liminf ")
 248+ | "\\sup" -> LITERAL (TEX_ONLY "\\sup ")
 249+ | "\\Pr" -> LITERAL (TEX_ONLY "\\Pr ")
 250+ | "\\hom" -> LITERAL (HTMLABLEC(FONT_UFH,"\\hom ","hom"))
 251+ | "\\arg" -> LITERAL (HTMLABLEC(FONT_UFH,"\\arg ","arg"))
 252+ | "\\dim" -> LITERAL (HTMLABLEC(FONT_UFH,"\\dim ","dim"))
 253+ | "\\inf" -> LITERAL (TEX_ONLY "\\inf ")
253254 | "\\circ" -> LITERAL (TEX_ONLY "\\circ ")
254255 | "\\hbar" -> LITERAL (TEX_ONLY "\\hbar ")
255256 | "\\imath" -> LITERAL (TEX_ONLY "\\imath ")
@@ -269,6 +270,32 @@
270271 | "\\limits" -> LITERAL (TEX_ONLY "\\limits ")
271272 | "\\nolimits" -> LITERAL (TEX_ONLY "\\nolimits ")
272273 | "\\top" -> LITERAL (TEX_ONLY "\\top ")
 274+ | "\\sin" -> LITERAL (HTMLABLEC(FONT_UFH,"\\sin ","sin"))
 275+ | "\\cos" -> LITERAL (HTMLABLEC(FONT_UFH,"\\cos ","cos"))
 276+ | "\\sinh" -> LITERAL (HTMLABLEC(FONT_UFH,"\\sinh ","sinh"))
 277+ | "\\cosh" -> LITERAL (HTMLABLEC(FONT_UFH,"\\cosh ","cosh"))
 278+ | "\\tan" -> LITERAL (HTMLABLEC(FONT_UFH,"\\tan ","tan"))
 279+ | "\\tanh" -> LITERAL (HTMLABLEC(FONT_UFH,"\\tanh ","tanh"))
 280+ | "\\sec" -> LITERAL (HTMLABLEC(FONT_UFH,"\\sec ","sec"))
 281+ | "\\csc" -> LITERAL (HTMLABLEC(FONT_UFH,"\\csc ","csc"))
 282+ | "\\arcsin" -> LITERAL (HTMLABLEC(FONT_UFH,"\\arcsin ","arcsin"))
 283+ | "\\arctan" -> LITERAL (HTMLABLEC(FONT_UFH,"\\arctan ","arctan"))
 284+ | "\\arccos" -> (tex_use_ams (); LITERAL (HTMLABLEC(FONT_UFH,"\\mathop{\\mathrm{arccos}}","arccos")))
 285+ | "\\arccot" -> (tex_use_ams (); LITERAL (HTMLABLEC(FONT_UFH,"\\mathop{\\mathrm{arccot}}","arccot")))
 286+ | "\\arcsec" -> (tex_use_ams (); LITERAL (HTMLABLEC(FONT_UFH,"\\mathop{\\mathrm{arcsec}}","arcsec")))
 287+ | "\\arccsc" -> (tex_use_ams (); LITERAL (HTMLABLEC(FONT_UFH,"\\mathop{\\mathrm{arccsc}}","arccsc")))
 288+ | "\\sgn" -> (tex_use_ams (); LITERAL (HTMLABLEC(FONT_UFH,"\\mathop{\\mathrm{sgn}}","sgn")))
 289+ | "\\cot" -> LITERAL (HTMLABLEC(FONT_UFH,"\\cot ","cot"))
 290+ | "\\coth" -> LITERAL (HTMLABLEC(FONT_UFH,"\\coth ","coth"))
 291+ | "\\log" -> LITERAL (HTMLABLEC(FONT_UFH,"\\log ", "log"))
 292+ | "\\lg" -> LITERAL (HTMLABLEC(FONT_UFH,"\\lg ", "lg"))
 293+ | "\\ln" -> LITERAL (HTMLABLEC(FONT_UFH,"\\ln ", "ln"))
 294+ | "\\exp" -> LITERAL (HTMLABLEC(FONT_UFH,"\\exp ", "exp"))
 295+ | "\\min" -> LITERAL (HTMLABLEC(FONT_UFH,"\\min ", "min"))
 296+ | "\\max" -> LITERAL (HTMLABLEC(FONT_UFH,"\\max ", "max"))
 297+ | "\\gcd" -> LITERAL (HTMLABLEC(FONT_UFH,"\\gcd ", "gcd"))
 298+ | "\\deg" -> LITERAL (HTMLABLEC(FONT_UFH,"\\deg ", "deg"))
 299+ | "\\det" -> LITERAL (HTMLABLEC(FONT_UFH,"\\det ", "det"))
273300 | "\\bullet" -> LITERAL (HTMLABLE (FONT_UFH, "\\bullet ", "&bull;"))
274301 | "\\bull" -> LITERAL (HTMLABLE (FONT_UFH, "\\bullet ", "&bull;"))
275302 | "\\angle" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UF, "\\angle ", "&ang;")))
@@ -392,22 +419,6 @@
393420 | "\\asymp" -> LITERAL (TEX_ONLY "\\asymp ")
394421 | "\\doteq" -> LITERAL (TEX_ONLY "\\doteq ")
395422 | "\\parallel" -> LITERAL (TEX_ONLY "\\parallel ")
396 - | "\\euro" -> (tex_use_euro (); LITERAL (HTMLABLE (FONT_UF, "\\mbox{\\euro}", "&euro;")))
397 - | "\\geneuro" -> (tex_use_euro (); LITERAL (TEX_ONLY "\\mbox{\\geneuro}"))
398 - | "\\geneuronarrow" -> (tex_use_euro (); LITERAL (TEX_ONLY "\\mbox{\\geneuronarrow}"))
399 - | "\\geneurowide" -> (tex_use_euro (); LITERAL (TEX_ONLY "\\mbox{\\geneurowide}"))
400 - | "\\officialeuro" -> (tex_use_euro (); LITERAL (TEX_ONLY "\\mbox{\\officialeuro}"))
401 - | "\\Coppa" -> (tex_use_teubner (); LITERAL (HTMLABLE (FONT_UF, "\\mbox{\\Coppa}", "&#984;")))
402 - | "\\coppa" -> (tex_use_teubner (); LITERAL (HTMLABLE (FONT_UF, "\\mbox{\\coppa}", "&#985;")))
403 - | "\\varcoppa" -> (tex_use_teubner (); LITERAL (HTMLABLE (FONT_UF, "\\mbox{\\coppa}", "&#985;")))
404 - | "\\Digamma" -> (tex_use_teubner (); LITERAL (HTMLABLE (FONT_UF, "\\mbox{\\Digamma}", "&#988;")))
405 - | "\\Koppa" -> (tex_use_teubner (); LITERAL (HTMLABLE (FONT_UF, "\\mbox{\\Koppa}", "&#984;")))
406 - | "\\koppa" -> (tex_use_teubner (); LITERAL (HTMLABLE (FONT_UF, "\\mbox{\\koppa}", "&#991;")))
407 - | "\\Sampi" -> (tex_use_teubner (); LITERAL (TEX_ONLY "\\mbox{\\Sampi}"))
408 - | "\\sampi" -> (tex_use_teubner (); LITERAL (HTMLABLE (FONT_UF, "\\mbox{\\sampi}", "&#993;")))
409 - | "\\Stigma" -> (tex_use_teubner (); LITERAL (TEX_ONLY "\\mbox{\\Stigma}"))
410 - | "\\stigma" -> (tex_use_teubner (); LITERAL (HTMLABLE (FONT_UF, "\\mbox{\\stigma}", "&#987;")))
411 - | "\\varstigma" -> (tex_use_teubner (); LITERAL (TEX_ONLY "\\mbox{\\varstigma}"))
412423 | "\\implies" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UF, "\\implies ", "&rArr;")))
413424 | "\\mod" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mod ", "mod")))
414425 | "\\Diamond" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UF, "\\Diamond ", "&loz;")))
@@ -416,17 +427,16 @@
417428 | "\\dotsi" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UF, "\\dotsi ", "&sdot;&sdot;&sdot;")))
418429 | "\\dotsm" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UF, "\\dotsm ", "&sdot;&sdot;&sdot;")))
419430 | "\\dotso" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UF, "\\dotso ", "...")))
420 - | "\\reals" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{R}", "&#8477;")))
421 - | "\\Reals" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{R}", "&#8477;")))
422 - | "\\R" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{R}", "&#8477;")))
423 - | "\\C" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{C}", "&#8450;")))
424 - | "\\cnums" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{C}", "&#8450;")))
425 - | "\\Complex" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{C}", "&#8450;")))
426 - | "\\Z" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{Z}", "&#8484;")))
427 - | "\\natnums" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{N}", "&#8469;")))
428 - | "\\N" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{N}", "&#8469;")))
429 - | "\\Q" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{Q}", "&#8474;")))
430 - | "\\H" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{H}", "&#8461;")))
 431+ | "\\reals" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{R}", "<b>R</b>")))
 432+ | "\\Reals" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{R}", "<b>R</b>")))
 433+ | "\\R" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{R}", "<b>R</b>")))
 434+ | "\\C" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{C}", "<b>C</b>")))
 435+ | "\\cnums" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{C}", "<b>C</b>")))
 436+ | "\\Complex" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{C}", "<b>C</b>")))
 437+ | "\\Z" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{Z}", "<b>Z</b>")))
 438+ | "\\natnums" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{N}", "<b>N</b>")))
 439+ | "\\N" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{N}", "<b>N</b>")))
 440+ | "\\Q" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{Q}", "<b>Q</b>")))
431441 | "\\lVert" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\lVert ", "||")))
432442 | "\\rVert" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\rVert ", "||")))
433443 | "\\nmid" -> (tex_use_ams (); LITERAL (TEX_ONLY "\\nmid "))
@@ -482,7 +492,6 @@
483493 | "\\hat" -> FUN_AR1 "\\hat "
484494 | "\\hline" -> LITERAL (TEX_ONLY "\\hline ")
485495 | "\\vline" -> LITERAL (TEX_ONLY "\\vline ")
486 - | "\\widetilde" -> LITERAL (TEX_ONLY "\\widetilde ")
487496 | "\\widehat" -> LITERAL (TEX_ONLY "\\widehat ")
488497 | "\\overline" -> LITERAL (TEX_ONLY "\\overline ")
489498 | "\\overbrace" -> LITERAL (TEX_ONLY "\\overbrace ")
Index: branches/REL1_18/extensions/Math/math/render_info.mli
@@ -11,13 +11,10 @@
1212 MN
1313 | MI
1414 | MO
15 - | MF
16 -
1715 type t =
1816 HTMLABLEC of font_class * string * string
1917 | HTMLABLEM of font_class * string * string
2018 | HTMLABLE of font_class * string * string
2119 | MHTMLABLEC of font_class * string * string * math_class * string
22 - | MHTMLABLEFC of font_class * string * string * math_class * string * string
2320 | HTMLABLE_BIG of string * string
2421 | TEX_ONLY of string
Index: branches/REL1_18/extensions/Math/math/html.ml
@@ -28,7 +28,6 @@
2929 TEX_LITERAL (HTMLABLE (ft,_,sh))::r -> (html_liberal (); (font_render sh (ctx,ft))^html_render_flat ctx r)
3030 | TEX_LITERAL (HTMLABLEC(ft,_,sh))::r -> (font_render sh (ctx,ft))^html_render_flat ctx r
3131 | TEX_LITERAL (MHTMLABLEC(ft,_,sh,_,_))::r -> (font_render sh (ctx,ft))^html_render_flat ctx r
32 - | TEX_LITERAL (MHTMLABLEFC(ft,_,sh,_,_,_))::r -> (font_render sh (ctx,ft))^html_render_flat ctx r
3332 | TEX_LITERAL (HTMLABLEM(ft,_,sh))::r -> (html_moderate(); (font_render sh (ctx,ft))^html_render_flat ctx r)
3433 | TEX_LITERAL (HTMLABLE_BIG (_,sh))::r -> (html_liberal (); sh^html_render_flat ctx r)
3534 | TEX_FUN1hl (_,(f1,f2),a)::r -> f1^(html_render_flat ctx [a])^f2^html_render_flat ctx r
@@ -76,7 +75,6 @@
7776 | TEX_LITERAL (HTMLABLEM(ft,_,sh))::r -> (html_moderate(); ("",(font_render sh (ctx,ft)),"")::html_render_deep ctx r)
7877 | TEX_LITERAL (HTMLABLEC(ft,_,sh))::r -> ("",(font_render sh (ctx,ft)),"")::html_render_deep ctx r
7978 | TEX_LITERAL (MHTMLABLEC(ft,_,sh,_,_))::r -> ("",(font_render sh (ctx,ft)),"")::html_render_deep ctx r
80 - | TEX_LITERAL (MHTMLABLEFC(ft,_,sh,_,_,_))::r -> ("",(font_render sh (ctx,ft)),"")::html_render_deep ctx r
8179 | TEX_LITERAL (HTMLABLE_BIG (_,sh))::r -> (html_liberal (); ("",sh,"")::html_render_deep ctx r)
8280 | TEX_FUN2h (_,f,a,b)::r -> (html_liberal (); (f a b)::html_render_deep ctx r)
8381 | TEX_INFIXh (_,f,a,b)::r -> (html_liberal (); (f a b)::html_render_deep ctx r)

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r86962The following changes enhance the way texvc handles space around...thenub31418:17, 26 April 2011
r86965This change adds support for the \widetilde command as mentioned in bug 26380thenub31418:44, 26 April 2011
r87092The following fixes bug 19547 by allowing left and right single...thenub31418:23, 28 April 2011
r87117This update removes unneeded code from texutil.ml and corrects the way...thenub31406:08, 29 April 2011
r87284This update fixes bug 27324 by loading the eurosym package to provide...thenub31419:28, 2 May 2011
r87298This update provides the functionality requested in bug 27754. More...thenub31421:13, 2 May 2011
r87934This updates improves the MathML support of texvc. New new tags have...thenub31421:46, 12 May 2011
r87936Corrects a small bug causing <math>\sin</math> to return an unknown...thenub31422:29, 12 May 2011
r87941A change to fix a bug in LaTeX rendering of function names. An...thenub31400:01, 13 May 2011
r88030Removed the &ApplyFunction; MathML entity. This entity doesn't...thenub31403:04, 14 May 2011
r88260The following change fixes minor issues with the MathML display of...thenub31419:25, 16 May 2011
r96990Revert changes to texvc that provide no test cases or examples of what they'r...brion19:00, 13 September 2011

Status & tagging log