Rev 7750 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7752 | leency | 1 | char *unicode_symbols[]={ |
2 | "#32", " ", |
||
3 | "#34", "\"", "quot","\"", |
||
4 | "#38", "&", "amp", "&", |
||
5 | "#39", "'", |
||
6 | "#039","'", |
||
7 | "#60", "<", "lt", "<", |
||
8 | "#62", ">", "gt", ">", |
||
9 | "#91", "[", |
||
10 | "#93", "]", |
||
11 | "#96", "'", |
||
12 | "#149","-", |
||
13 | "#151","-", |
||
14 | "#160"," ", "nbsp", " ", |
||
15 | "#169","(c)", "copy", "(c)", |
||
16 | "#171","<<", "laquo","<<", |
||
17 | "#174","(r)", "reg", "(r)", |
||
18 | "#187",">>", "raquo",">>", |
||
4411 | leency | 19 | |
20 | "trade", "[TM]", |
||
21 | "bdquo", ",,", |
||
22 | |||
23 | "minus", "-", |
||
24 | "ndash", "-", |
||
25 | "mdash", "-", //-- |
||
26 | |||
27 | "rsquo", "'", |
||
28 | |||
7752 | leency | 29 | "#1028", "\242", |
30 | "#1030", "I", |
||
31 | "#1031", "\244", |
||
4411 | leency | 32 | |
7752 | leency | 33 | "#8211", "-", |
34 | "#8217", "'", |
||
35 | "#8222", "\"", "ldquo", "\"", |
||
36 | "#8221", "\"", "rdquo", "\"", |
||
37 | "#8470", "N", |
||
38 | "#8722", "-", |
||
39 | "#9642", "-", //square in the middle of the line |
||
4411 | leency | 40 | |
41 | "uarr", "\24", |
||
42 | "darr", "\25", |
||
43 | "rarr", "\26", |
||
44 | "larr", "\27", |
||
45 | |||
7752 | leency | 46 | "bull", "\31", |
4411 | leency | 47 | "percnt","%", |
48 | |||
7752 | leency | 49 | "#xfeff", "", |
50 | |||
4411 | leency | 51 | 0}; |
52 | |||
53 | |||
7750 | leency | 54 | unsigned char unicode_chars[] = " กขฃคฅฆงจฉชซฌญฎฏเแโใไๅๆ็่้๊๋์ํ๎๏๐๑hฃ\243i\105\244\0"; |
4411 | leency | 55 | |
7749 | leency | 56 | bool GetUnicodeSymbol(dword in_tag) |
4411 | leency | 57 | { |
7750 | leency | 58 | int j, specia1040; |
4411 | leency | 59 | |
7752 | leency | 60 | for (j=0; unicode_symbols[j]!=0; j+=2;) |
4411 | leency | 61 | { |
7752 | leency | 62 | if (!strcmp(in_tag, unicode_symbols[j])) |
4411 | leency | 63 | { |
7752 | leency | 64 | strcat(#line, unicode_symbols[j+1]); |
7749 | leency | 65 | return true; |
4411 | leency | 66 | } |
67 | } |
||
7749 | leency | 68 | |
7750 | leency | 69 | specia1040 = atoi(in_tag + 1) - 1040; |
70 | |||
7752 | leency | 71 | if (ESBYTE[in_tag+1] == '1') && (specia1040>=0) |
7750 | leency | 72 | && (specia1040<=72) && (strlen(in_tag) == 5) |
4411 | leency | 73 | { |
7750 | leency | 74 | if (strlen(#line) |
75 | /* |
||
76 | j = strlen(#line); |
||
77 | line[j] = unicode_chars[specia1040]; |
||
78 | line[j+1] = EOS; |
||
79 | */ |
||
80 | chrcat(#line, unicode_chars[specia1040]); |
||
81 | } |
||
7749 | leency | 82 | return true; |
4411 | leency | 83 | } |
7749 | leency | 84 | |
85 | return false; |
||
4411 | leency | 86 | }=72)>", |