Rev 5890 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5890 | Rev 6252 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | ********************************************************************************* |
2 | ********************************************************************************* |
3 | * J.M. Evers 2010 * |
3 | * J.M. Evers 2010 * |
4 | * This is all amateur scriblings... So no copyrights. * |
4 | * This is all amateur scriblings... So no copyrights. * |
5 | * This source code file, and compiled classes derived from it, * |
5 | * This source code file, and compiled classes derived from it, * |
6 | * can be used and distributed without restriction, including for commercial use * |
6 | * can be used and distributed without restriction, including for commercial use * |
7 | * No warrenty. * |
7 | * No warrenty. * |
8 | ********************************************************************************* |
8 | ********************************************************************************* |
9 | version 0.41 |
9 | version 0.41 |
10 | 11/2012 |
10 | 11/2012 |
11 |
|
11 | corrected html table output |
12 | - | ||
13 | 12 | ||
14 | version 0.4 |
13 | version 0.4 |
15 | 10/12/2010 |
14 | 10/12/2010 |
16 | Added param pointsize to differ size of points from linewidth |
15 | Added param pointsize to differ size of points from linewidth |
17 | Removed −× from html reply (problems with representation after sending to wims) |
16 | Removed −× from html reply (problems with representation after sending to wims) |
Line 383... | Line 382... | ||
383 | latex = latex + " \\end{array}"; |
382 | latex = latex + " \\end{array}"; |
384 | return latex; |
383 | return latex; |
385 | } |
384 | } |
386 | 385 | ||
387 | public String makeHtml(String[] reply , String[] horline){ |
386 | public String makeHtml(String[] reply , String[] horline){ |
388 | String table = "<table |
387 | String table = "<table style=\"margin-bottom:1px;margin-top:1px;\"><tr><td style=\"text-align:right\"><table style=\"margin-bottom:1px;margin-top:1px;width:100%\">"; |
389 | String tmp=""; |
388 | String tmp=""; |
390 | for( int y = 0 ; y < reply.length ; y++ ){ |
389 | for( int y = 0 ; y < reply.length ; y++ ){ |
391 | if(reply[y] != null){ |
390 | if(reply[y] != null){ |
392 | if(right){ |
391 | if(right){ |
393 | table=table+"<tr><td style=\"text-align:right\">"+reply[y]+"</td><td> </td></tr>"; |
392 | table=table+"<tr><td style=\"text-align:right\">"+reply[y]+"</td><td> </td></tr>"; |
394 | } |
393 | } |
395 | else // french |
394 | else // french |
396 | { |
395 | { |
397 | table=table+"<tr><td |
396 | table=table+"<tr><td> </td><td style=\"text-align:right\">"+reply[y]+"</td></tr>"; |
398 | } |
397 | } |
399 | if(horline[y] != null){ |
398 | if(horline[y] != null){ |
400 | if(horline[y].equals("\u00D7")) tmp = "x"; |
399 | if(horline[y].equals("\u00D7")) tmp = "x"; |
401 | else |
400 | else |
402 | if(horline[y].equals("\u00F7")) tmp = ":"; |
401 | if(horline[y].equals("\u00F7")) tmp = ":"; |
403 | else tmp = horline[y]; |
402 | else tmp = horline[y]; |
404 | 403 | ||
405 | if(right){ |
404 | if(right){ |
406 | table=table+"</table></td>< |
405 | table=table+"</table></td><tr><td><table style=\"margin-bottom:1px;margin-top:1px;width:100%\"><tr><td style=\"width:90%\"><hr></td><td>"+tmp+"</td></tr></table></td></tr><td><table style=\"margin-bottom:1px;margin-top:1px;width:100%\">"; |
407 | } |
406 | } |
408 | else // french |
407 | else // french |
409 | { |
408 | { |
410 | table=table+"</table></td><tr><td><table |
409 | table=table+"</table></td><tr><td><table style=\"margin-bottom:1px;margin-top:1px;width:100%\"><tr><td>"+tmp+"</td><td width=\"90%\"><hr></td></tr></table></td></tr><td><table style=\"margin-bottom:1px;margin-top:1px;width=:100%\">"; |
411 | } |
410 | } |
412 | } |
411 | } |
413 | } |
412 | } |
414 | } |
413 | } |
415 | table = table+"</table></td></tr></table>"; |
414 | table = table+"</table></td></tr></table>"; |
Line 602... | Line 601... | ||
602 | return; |
601 | return; |
603 | } |
602 | } |
604 | else |
603 | else |
605 | { |
604 | { |
606 | if( s.equalsIgnoreCase("fr")){ |
605 | if( s.equalsIgnoreCase("fr")){ |
607 | line_plus=" |
606 | line_plus="+ à droite "; |
608 | line_times="droite x"; |
607 | line_times="droite x"; |
609 | delete_line="effacer droite"; |
608 | delete_line="effacer droite"; |
610 | clear_all="effacer"; |
609 | clear_all="effacer"; |
611 | line_min="droite -"; |
610 | line_min="droite -"; |
612 | line_div="droite :"; |
611 | line_div="droite :"; |