Rev 2775 | Rev 3874 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2775 | Rev 3873 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | if [ "$lang" = en ] ; then echo " |
10 | if [ "$lang" = en ] ; then echo " |
11 | Each command takes one line.<p> |
11 | Each command takes one line.<p> |
12 | In the following table, <tt>[color]</tt> |
12 | In the following table, <tt>[color]</tt> |
13 | may be either a color name, or 3 integers between 0 and 255, separated by commas, |
13 | may be either a color name, or 3 integers between 0 and 255, separated by commas, |
14 | for the values of red,green,blue. |
14 | for the values of red,green,blue. |
15 |
|
15 | " |
16 |
|
16 | drawing="Drawing commands" |
17 | \$table_hdtr<th colspan=5>Name and syntax |
- | |
18 |
|
17 | synonym="Synonymes" |
19 | <th colspan=3>Meaning</th></tr><tr><td><td colspan=5> |
- | |
20 |
|
18 | fi ; |
21 | 19 | ||
22 | if [ "$lang" = fr ] ; then echo " |
20 | if [ "$lang" = fr ] ; then echo " |
23 | Chaque commande prend une ligne.<p> |
21 | Chaque commande prend une ligne.<p> |
24 | Dans la table suivante <tt>[color]</tt> |
22 | Dans la table suivante <tt>[color]</tt> |
25 | peut être un nom de couleur ou 3 entiers 0 entre 255, séparés par des virgules, |
23 | peut être un nom de couleur ou 3 entiers 0 entre 255, séparés par des virgules, |
26 | correspondant aux valeurs de rouge, |
24 | correspondant aux valeurs de rouge, vert, bleu. |
27 |
|
25 | " |
28 |
|
26 | drawing="Commandes" |
29 | \$table_hdtr<th colspan=5>Nom et syntaxe |
- | |
30 |
|
27 | synonym="Synonymes" |
31 | <th colspan=3>Signification</th></tr><tr><td><td colspan=5> |
- | |
32 |
|
28 | fi ; |
33 | 29 | ||
34 | if [ "$lang" = cn ] ; then echo " |
30 | if [ "$lang" = cn ] ; then echo " |
35 | ÿÌõÃüÁîÕ¼Ò»ÐÐ.<p> |
31 | ÿÌõÃüÁîÕ¼Ò»ÐÐ.<p> |
36 | ÔÚϱíÖÐ, <tt>[É«²Ê]</tt> |
32 | ÔÚϱíÖÐ, <tt>[É«²Ê]</tt> |
37 | ¿ÉÒÔÊÇÉ«²ÊÃû, »ò3¸öÓöººÅ·Ö¸ôµÄ0µ½255µÄÕûÊý, ·Ö±ð´ú±íºìÂÌÀ¶ÈýÖÖÑÕÉ«. |
33 | ¿ÉÒÔÊÇÉ«²ÊÃû, »ò3¸öÓöººÅ·Ö¸ôµÄ0µ½255µÄÕûÊý, ·Ö±ð´ú±íºìÂÌÀ¶ÈýÖÖÑÕÉ«. |
- | 34 | " |
|
- | 35 | drawing="×÷ͼÃüÁî" |
|
- | 36 | synonym="ͬÒå´Ê" |
|
- | 37 | fi |
|
38 | <p>\$table_header |
38 | echo "<p>\$table_header |
39 | <caption> |
39 | <caption>$drawing</caption> |
40 | \$table_hdtr<th |
40 | \$table_hdtr<th colspan="5">\$wims_name_name - \$wims_name_Syntax</th> |
41 | \$table_hdtr<th |
41 | \$table_hdtr<th colspan="2">$synonym</th> |
42 | <th |
42 | <th colspan="3">\$wims_name_Meaning</th></tr> |
43 | " ; fi |
- | |
44 | 43 | " |
|
45 | awk 'BEGIN {a=10} |
44 | awk 'BEGIN {a=10} |
46 | substr($0,1,1)==":" {a=0} |
45 | substr($0,1,1)==":" {a=0} |
47 | {a++} |
46 | {a++} |
48 | a==1 {print "$table_tr<td |
47 | a==1 {print "$table_tr<td colspan=\"5\" nowrap><tt>"substr($0,2)"</tt></td></tr>"} |
49 | a==2 {print "$table_tr<td |
48 | a==2 {print "$table_tr<td colspan=\"2\"><tt>"$0" </tt></td>"} |
50 | a==3 {print "<td |
49 | a==3 {print "<td colspan=\"3\">"$0"</td></tr><tr>"} |
51 | ' $file |
50 | ' $file |
52 | 51 | ||
53 | echo "\$table_end<p>" |
52 | echo "\$table_end<p>" |