Subversion Repositories Kolibri OS

Rev

Rev 2839 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2413 leency 1
char *unicode_tags[]={
2
"nbsp",  " ",
3
"#38",   " ",
2764 leency 4
"#160",  " ",
2413 leency 5
 
6
"copy",  "(c)",
7
"#169",  "(c)",
8
 
2764 leency 9
"trade", "[TM]",
2413 leency 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",  "-",
32
 
33
"rsquo", "'",
34
"#39",   "'",
35
"#96",   "'",
36
"#8217", "'",
37
 
38
"quot",  "\"",
39
"#34",   "\"",
40
"ldquo", "\"",
41
"rdquo", "\"",
2764 leency 42
"#8222", "\"",
2413 leency 43
"#8221", "\"",
44
 
45
"laquo", "<<",
2764 leency 46
"#171",  "<<",
2413 leency 47
"raquo", ">>",
2764 leency 48
"#187",  ">>",
2413 leency 49
 
2764 leency 50
"uarr",  "\24",
51
"darr",  "\25",
52
"rarr",  "\26",
53
"larr",  "\27",
2413 leency 54
 
2764 leency 55
"#1028", "\242",
56
"#1030", "I",
57
"#1031", "\244",
2413 leency 58
 
2764 leency 59
"#8470", "N",
2839 leency 60
"bull",  "-", //  
2413 leency 61
"percnt","%",
62
 
63
0};
3061 leency 64
 
65
 
66
byte unicode_chars[] = "h\243i\105\244\0";
67
 
68
unsigned char GetUnicodeSymbol()
69
{
70
	int j;
71
 
72
	for (j=0; unicode_tags[j]!=0; j+=2;)
73
	{
74
		if (!strcmp(#tag, unicode_tags[j]))
75
		{
76
			strcat(#line, unicode_tags[j+1]);
77
			return NULL;
78
		}
79
	}
80
 
81
	rez = atoi(#tag + 1) - 1040;
82
	if (tag[1] == '1') && (rez>=0) && (rez<=72) && (strlen(#tag) == 5)
83
	{
84
		return unicode_chars[rez];
85
	}
86
 
87
	strcat(#line,#tag); //    ,   - 
88
	return NULL;
89
}