Subversion Repositories wimsdev

Rev

Rev 5936 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 reyssat 1
#! /bin/sh
2
 
3
cd `dirname $0`
1502 bpr 4
lang=$1
5
if [ -n "$lang" ] ; then file="commands.$lang" ; else file="commands" ; lang="en"; fi;
10 reyssat 6
 
5870 bpr 7
echo "
5762 bpr 8
!! This file is automatically generated! Do not edit by hand.
5870 bpr 9
"
1502 bpr 10
 
2775 bpr 11
if [ "$lang" = en ] ;  then echo "
5870 bpr 12
<p>Each command takes one line.</p>
6592 bpr 13
<p>In the following table, <span class=\"tt\">[color]</span>
10 reyssat 14
may be either a color name, or 3 integers between 0 and 255, separated by commas,
5762 bpr 15
for the values of red,green,blue.</p>
3873 bpr 16
"
17
drawing="Drawing commands"
18
synonym="Synonymes"
19
fi ;
10 reyssat 20
 
2775 bpr 21
if [ "$lang" = fr ] ; then echo "
5870 bpr 22
<p>Chaque commande prend une ligne.</p>
6592 bpr 23
<p>Dans la table suivante <span class=\"tt\">[color]</span>
1502 bpr 24
peut 阾re un nom de couleur ou 3 entiers 0 entre 255, s閜ar閟 par des virgules,
3873 bpr 25
correspondant aux valeurs de  rouge, vert, bleu.
5762 bpr 26
</p>
3873 bpr 27
"
28
drawing="Commandes"
29
synonym="Synonymes"
30
fi ;
1502 bpr 31
 
2775 bpr 32
if [ "$lang" = cn ] ;  then echo "
5870 bpr 33
<p>每条命令占一行.</p>
6592 bpr 34
<p>在下表中, <span class=\"tt\">[色彩]</span>
2071 zjchen 35
可以是色彩名, 或3个用逗号分隔的0到255的整数, 分别代表红绿蓝三种颜色.
5762 bpr 36
</p>
3873 bpr 37
"
38
drawing="作图命令"
39
synonym="同义词"
40
fi
5936 bpr 41
echo "!reset table_center
42
 \$table_header
3873 bpr 43
 <caption>$drawing</caption>
5870 bpr 44
 \$table_hdtr<th colspan=\"5\">\$wims_name_name - \$wims_name_Syntax</th></tr>
45
 \$table_hdtr<th colspan=\"2\">$synonym</th>
46
 <th colspan=\"3\">\$wims_name_Meaning</th></tr>
3873 bpr 47
"
10 reyssat 48
awk 'BEGIN {a=10}
49
        substr($0,1,1)==":" {a=0}
50
        {a++}
6592 bpr 51
        a==1 {print "$table_tr<td colspan=\"5\" class=\"nowrap tt\">"substr($0,2)"</td></tr>"}
52
        a==2 {print "$table_tr<td colspan=\"2\"><span class=\"tt\">"$0"&nbsp;</span></td>"}
3874 bpr 53
        a==3 {print "<td colspan=\"3\">"$0"</td></tr>"}
1502 bpr 54
        ' $file
10 reyssat 55
 
5762 bpr 56
echo "\$table_end"