Subversion Repositories Kolibri OS

Rev

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

Rev 7750 Rev 7752
Line 1... Line 1...
1
char *unicode_tags[]={
1
char *unicode_symbols[]={
2
"nbsp",  " ",
2
"#32", " ",      
-
 
3
"#34", "\"",     "quot","\"",
-
 
4
"#38", "&",      "amp", "&",
3
"#38",   " ",
5
"#39", "'",
-
 
6
"#039","'",
-
 
7
"#60", "<",      "lt",  "<",
-
 
8
"#62", ">",      "gt",  ">",
4
"#160",  " ",
9
"#91", "[",
5
 
10
"#93", "]",
6
"copy",  "(c)",
11
"#96", "'",
7
"#169",  "(c)",
12
"#149","-",
-
 
13
"#151","-",
-
 
14
"#160"," ",     "nbsp", " ",
-
 
15
"#169","(c)",   "copy", "(c)",
-
 
16
"#171","<<",    "laquo","<<",
-
 
17
"#174","(r)",   "reg",  "(r)",
-
 
18
"#187",">>",    "raquo",">>",
Line 8... Line 19...
8
 
19
 
9
"trade", "[TM]",
-
 
10
 
-
 
11
"reg",   "(r)",
-
 
12
"#174",  "(r)",
-
 
13
 
20
"trade", "[TM]",
Line 14... Line -...
14
"bdquo", ",,",
-
 
15
 
-
 
16
"amp",   "&",
-
 
17
"#38",   "&",
-
 
18
 
-
 
19
"lt",    "<",
-
 
20
"#60",   "<",
-
 
21
 
-
 
22
"gt",    ">",
-
 
23
"#62",   ">",
21
"bdquo", ",,",
24
 
22
 
25
"minus", "-",
23
"minus", "-",
26
"ndash", "-",
-
 
27
"mdash", "-", //--
-
 
28
"#8722", "-",
-
 
29
"#8211", "-",
-
 
30
"#151",  "-",
-
 
Line 31... Line 24...
31
"#149",  "-",
24
"ndash", "-",
32
"#9642", "-", //square in the middle of the line
-
 
33
 
-
 
34
"rsquo", "'",
-
 
35
"#39",   "'",
-
 
Line 36... Line 25...
36
"#039",  "'",
25
"mdash", "-", //--
37
"#96",   "'",
26
 
38
"#8217", "'",
27
"rsquo", "'",
-
 
28
 
39
 
29
"#1028", "\242",
40
"quot",  "\"",
30
"#1030", "I",
41
"#34",   "\"",
31
"#1031", "\244",
42
"ldquo", "\"",
-
 
43
"rdquo", "\"",
32
 
44
"#8222", "\"",
33
"#8211", "-",
45
"#8221", "\"",
34
"#8217", "'",
46
 
35
"#8222", "\"", "ldquo", "\"",
Line 47... Line 36...
47
"laquo", "<<",
36
"#8221", "\"", "rdquo", "\"",
48
"#171",  "<<",
37
"#8470", "N",
49
"raquo", ">>",
38
"#8722", "-",
50
"#187",  ">>",
39
"#9642", "-", //square in the middle of the line
Line 51... Line -...
51
 
-
 
52
"uarr",  "\24",
-
 
53
"darr",  "\25",
40
 
54
"rarr",  "\26",
-
 
55
"larr",  "\27", 
-
 
56
 
-
 
57
"#1028", "\242",
41
"uarr",  "\24",
Line -... Line 42...
-
 
42
"darr",  "\25",
-
 
43
"rarr",  "\26",
58
"#1030", "I",
44
"larr",  "\27", 
Line 59... Line 45...
59
"#1031", "\244",
45
 
Line 60... Line 46...
60
 
46
"bull",  "\31",
61
"#8470", "N",
47
"percnt","%",
62
"bull",  "\31", //âîîáùå çäåñü òî÷êà
48
 
Line 63... Line 49...
63
"percnt","%",
49
"#xfeff", "",
64
 
50
 
65
0}; 
51
0}; 
66
 
52
 
67
 
53
 
68
unsigned char unicode_chars[] = "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯àáâãäåæçèéêëìíîïðñh£\243i\105\244\0";
54
unsigned char unicode_chars[] = "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯àáâãäåæçèéêëìíîïðñh£\243i\105\244\0";
69
 
55
 
70
bool GetUnicodeSymbol(dword in_tag)
56
bool GetUnicodeSymbol(dword in_tag)
Line 71... Line 57...
71
{
57
{
Line 72... Line 58...
72
	int j, specia1040;
58
	int j, specia1040;
73
	
59
	
74
	for (j=0; unicode_tags[j]!=0; j+=2;) 
60
	for (j=0; unicode_symbols[j]!=0; j+=2;) 
75
	{
61
	{
76
		if (!strcmp(in_tag, unicode_tags[j]))
62
		if (!strcmp(in_tag, unicode_symbols[j]))
77
		{
63
		{