Rev 7032 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4411 | leency | 1 | char *unicode_tags[]={ |
2 | "nbsp", " ", |
||
3 | "#38", " ", |
||
4 | "#160", " ", |
||
5 | |||
6 | "copy", "(c)", |
||
7 | "#169", "(c)", |
||
8 | |||
9 | "trade", "[TM]", |
||
10 | |||
11 | "reg", "(r)", |
||
12 | "#174", "(r)", |
||
13 | |||
14 | "bdquo", ",,", |
||
15 | |||
16 | "amp", "&", |
||
17 | "#38", "&", |
||
18 | |||
19 | "lt", "<", |
||
20 | "#60", "<", |
||
21 | |||
22 | "gt", ">", |
||
23 | "#62", ">", |
||
24 | |||
25 | "minus", "-", |
||
26 | "ndash", "-", |
||
27 | "mdash", "-", //-- |
||
28 | "#8722", "-", |
||
29 | "#8211", "-", |
||
30 | "#151", "-", |
||
31 | "#149", "-", |
||
7032 | leency | 32 | "#9642", "-", //square in the middle of the line |
4411 | leency | 33 | |
34 | "rsquo", "'", |
||
35 | "#39", "'", |
||
36 | "#96", "'", |
||
37 | "#8217", "'", |
||
38 | |||
39 | "quot", "\"", |
||
40 | "#34", "\"", |
||
41 | "ldquo", "\"", |
||
42 | "rdquo", "\"", |
||
43 | "#8222", "\"", |
||
44 | "#8221", "\"", |
||
45 | |||
46 | "laquo", "<<", |
||
47 | "#171", "<<", |
||
48 | "raquo", ">>", |
||
49 | "#187", ">>", |
||
50 | |||
51 | "uarr", "\24", |
||
52 | "darr", "\25", |
||
53 | "rarr", "\26", |
||
54 | "larr", "\27", |
||
55 | |||
56 | "#1028", "\242", |
||
57 | "#1030", "I", |
||
58 | "#1031", "\244", |
||
59 | |||
60 | "#8470", "N", |
||
7282 | leency | 61 | "bull", "\31", // |
4411 | leency | 62 | "percnt","%", |
63 | |||
64 | 0}; |
||
65 | |||
66 | |||
67 | byte unicode_chars[] = "h\243i\105\244\0"; |
||
68 | |||
69 | unsigned char GetUnicodeSymbol() |
||
70 | { |
||
71 | int j; |
||
72 | |||
73 | for (j=0; unicode_tags[j]!=0; j+=2;) |
||
74 | { |
||
75 | if (!strcmp(#tag, unicode_tags[j])) |
||
76 | { |
||
77 | strcat(#line, unicode_tags[j+1]); |
||
78 | return NULL; |
||
79 | } |
||
80 | } |
||
81 | |||
82 | j = atoi(#tag + 1) - 1040; |
||
83 | if (tag[1] == '1') && (j>=0) && (j<=72) && (strlen(#tag) == 5) |
||
84 | { |
||
85 | return unicode_chars[j]; |
||
86 | } |
||
87 | |||
88 | strcat(#line,#tag); // , - |
||
89 | return NULL; |
||
90 | }=72)>", |