Subversion Repositories wimsdev

Rev

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

Rev 4807 Rev 5890
Line 4... Line 4...
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
-
 
10
11/2012
-
 
11
Corrected html-table output
-
 
12
 
-
 
13
 
9
version 0.4
14
version 0.4
10
10/12/2010
15
10/12/2010
11
Added param pointsize to differ size of points from linewidth
16
Added param pointsize to differ size of points from linewidth
12
Removed −&times from html reply (problems with representation after sending to wims)
17
Removed −&times from html reply (problems with representation after sending to wims)
13
now just ascii + - : x
18
now just ascii + - : x
Line 378... Line 383...
378
        latex = latex + " \\end{array}";
383
        latex = latex + " \\end{array}";
379
        return latex;
384
        return latex;
380
    }
385
    }
381
 
386
 
382
    public String makeHtml(String[] reply , String[] horline){
387
    public String makeHtml(String[] reply , String[] horline){
383
        String table = "<table style=\"margin-bottom:1px;margin-top:1px;\"><tr><td align=\"right\"><table style=\"margin-bottom:1px;margin-top:1px;\" summary=\"\" width=\"100%\">";
388
        String table = "<table class=\"schaersvoorde_form\"><tr><td style=\"text-align:right\"><table class=\"schaersvoorde_form\">";
384
        String tmp="";
389
        String tmp="";
385
        for( int y = 0 ; y < reply.length ; y++ ){
390
        for( int y = 0 ; y < reply.length ; y++ ){
386
            if(reply[y] != null){
391
            if(reply[y] != null){
387
                if(right){
392
                if(right){
388
                    table=table+"<tr><td style=\"text-align:right\">"+reply[y]+"</td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>";
393
                    table=table+"<tr><td style=\"text-align:right\">"+reply[y]+"</td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>";
389
                }
394
                }
390
                else // french
395
                else // french
391
                {
396
                {
392
                    table=table+"<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td style=\"text-align:right\">"+reply[y]+"</td></tr>";              
397
                    table=table+"<tr><td style=\"text-align:center;\">&nbsp;&nbsp;&nbsp;&nbsp;</td><td style=\"text-align:right\">"+reply[y]+"</td></tr>";
393
                }
398
                }
394
                if(horline[y] != null){
399
                if(horline[y] != null){
395
                    if(horline[y].equals("\u00D7")) tmp = "x";
400
                    if(horline[y].equals("\u00D7")) tmp = "x";
396
                    else
401
                    else
397
                    if(horline[y].equals("\u00F7")) tmp = ":";
402
                    if(horline[y].equals("\u00F7")) tmp = ":";
398
                    else tmp = horline[y];
403
                    else tmp = horline[y];
399
                   
404
                   
400
                    if(right){
405
                    if(right){
401
                        table=table+"</table></td><tr><td><table style=\"margin-bottom:1px;margin-top:1px;\" summary=\"\" width=\"100%\"><tr><th width=\"90%\"><hr></th><th>"+tmp+"</th></tr></table></td></tr><td><table style=\"margin-bottom:1px;margin-top:1px;\" summary=\"\" width=\"100%\">";
406
                        table=table+"</table></td></tr><tr><td><table class=\"schaersvoorde_form\"><tr><th style=\"width:100%\"><hr style=\"height:2px;color:black;width:100%\"/></th><th>"+tmp+"</th></tr></table></td></tr><td><table class=\"schaersvoorde_form\">";
402
                    }
407
                    }
403
                    else // french
408
                    else // french
404
                    {
409
                    {
405
                        table=table+"</table></td><tr><td><table style=\"margin-bottom:1px;margin-top:1px;\" summary=\"\" width=\"100%\"><tr><th>"+tmp+"</th><th width=\"90%\"><hr></th></tr></table></td></tr><td><table style=\"margin-bottom:1px;margin-top:1px;\" summary=\"\" width=\"100%\">";
410
                        table=table+"</table></td><tr><td><table class=\"schaersvoorde_form\"><tr><th>"+tmp+"</th><th style=\"width:100%\"><hr style=\"height:2px;color:black;width:100%\"/></th></tr></table></td></tr><td><table class=\"schaersvoorde_form\">";
406
                    }
411
                    }
407
                }
412
                }
408
            }
413
            }
409
        }
414
        }
410
        table = table+"</table></td></tr></table>";
415
        table = table+"</table></td></tr></table>";
Line 597... Line 602...
597
                return;
602
                return;
598
            }
603
            }
599
            else
604
            else
600
            {
605
            {
601
                if( s.equalsIgnoreCase("fr")){
606
                if( s.equalsIgnoreCase("fr")){
602
                    line_plus="+ à droite ";
607
                    line_plus="droite + ";
603
                    line_times="droite x";
608
                    line_times="droite x";
604
                    delete_line="effacer droite";
609
                    delete_line="effacer droite";
605
                    clear_all="effacer";
610
                    clear_all="effacer";
606
                    line_min="droite -";
611
                    line_min="droite -";
607
                    line_div="droite :";
612
                    line_div="droite :";