-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform3- mal-eng dictionary.txt
258 lines (202 loc) · 19.7 KB
/
form3- mal-eng dictionary.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace Aksharam
{
public partial class Form3 : Form
{
string[] swaram ={ "a", "aa", "i", "ee", "u", "oo", "aR", "e", "E", "ai", "o", "O", "ou", "Am", "a:" };
string[] u_swaram ={ "\u0041", "\u0042", "\u0043", "\u0043\u0075", "\u0044", "\u0044\u0075", "\u0045", "\u0046", "\u0047", "\u0073\u0046", "\u0048", "\u0048\u006D", "\u0048\u0075", "\u0041\u0077", "\u0041\u0078" };
string[] vya ={ "ka", "kh", "g", "gh", "ng", "ch", "chh", "j", "jh", "nj", "T", "Th", "D", "Dh", "N", "th", "thh", "d", "dh", "n", "p", "ph", "b", "bh", "m", "y", "r", "l", "v", "sh", "Sh", "s", "h", "L", "zh", "R", "kk", "kSh", "kL", "kT", "kth", "gg", "gL", "gm", "gn", "chch", "chchh", "jj", "TT", "DD", "NN", "Nd", "Nm", "Ndh", "thth", "ththh", "thb", "thm", "ths", "dd", "ddh", "nn", "ngng", "nK", "njnj", "nch", "mp", "nt", "nd", "njj", "nth", "nthh", "ndh", "nm", "pp", "pL", "bb", "bdh", "bd", "bL", "mm", "mL", "yy", "ykk", "ll", "lp", "vv", "shsh", "shL", "ShT", "shch", "ss", "sL", "st", "hL", "hn", "hm", "LL", "tt", "B", "c", "C", "f", "F", "G", "H", "J", "K", "P", "S", "t", "V", "w", "W", "Y", "z", "Z", "kS", "kt", "chc", "tht", "ngn", "njn", "nc", "yk", "shs", "shc", "q", "Q", "x", "X", "n~", "N~", "l~", "L~", "R~", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "+", "-", "_", "|", "\\", ">", "<", ".", "?", ";", ":", "{", "}", "[", "]", "'", "/", "=", "`", "~", " ", "\n" };
string[] u_vya ={ "\u0049", "\u004A", "\u004B", "\u004C", "\u004D", "\u004E", "\u004F", "\u0050", "\u0051", "\u0052", "\u0053", "\u0054", "\u0055", "\u0056", "\u0057", "\u0058", "\u0059", "\u005A", "\u005B", "\u005C", "\u005D", "\u005E", "\u005F", "\u0060", "\u0061", "\u0062", "\u0063", "\u0065", "\u0068", "\u0069", "\u006A", "\u006B", "\u006C", "\u0066", "\u0067", "\u0064", "\u00A1", "\u00A3", "\u00A2", "\u00CE", "\u00E0", "\u00A4", "\u00A5", "\u00DC", "\u00E1", "\u00A8", "\u00D1", "\u00D6", "\u00AB", "\u00CD", "\u00AE", "\u00AD", "\u00D7", "\u00DE", "\u00AF", "\u00B0", "\u00DB", "\u00DF", "\u00D5", "\u00B1", "\u00B2", "\u00B6", "\u00A7", "\u00A6", "\u00AA", "\u00A9", "\u00BC", "\u00E2", "\u00B5", "\u00DA", "\u00B4", "\u00D9", "\u00D4", "\u2219", "\u00B8", "\u00B9", "\u00BA", "\u00CF", "\u00D0", "\u00BB", "\u00BD", "\u00BE", "\u00BF", "\u00ED", "\u00C3", "\u00E5", "\u00C6", "\u00C8", "\u00C7", "\u00E3", "\u00DD", "\u00CA", "\u00C9", "\u00CC", "\u00CB", "\u00D3", "\u00D2", "\u00C5", "\u00E4", "\u005F", "\u0049", "\u0049", "\u005E", "\u005E", "\u004B", "\u006C", "\u0050", "\u0049", "\u005D", "\u006B", "\u0053", "\u0068", "\u0068", "\u0068", "\u0062", "\u006B", "\u006B", "\u0049\u006B", "\u0049\u0053", "\u004E\u0049", "\u0058\u0053", "\u004D\u005C", "\u0052\u005C", "\u005C\u0049", "\u0062\u0049", "\u0069\u006B", "\u0069\u0049", "\u0049", "\u0049", "\u0049\u006B", "\u0049\u006B", "\u005C", "\u0057", "\u0065", "\u0066", "\u0064", "\u0030", "\u0031", "\u0032", "\u0033", "\u0034", "\u0035", "\u0036", "\u0037", "\u0038", "\u0039", "\u0021", "*", "*", "*", "\u0025", "*", "*", "\u002A", "\u0028", "\u0029", "\u002B", "\u005F", "*", "*", "*", "\u003E", "\u003C", "\u002E", "\u003F", "\u003B", "\u003A", "*", "*", "\u005B", "\u005D", "\u0027", "\u002F", "\u003D", "*", "\u00ED", " ", "\n" };
string[] swaram_sym ={ "aa", "i", "ee", "u", "oo", "e", "E", "ai", "o", "O", "ou", "M", "w", "ry", "r", "y" };
string[] u_swaram_sym ={ "\u006D", "\u006E", "\u006F", "\u0070", "\u0071", "\u0073", "\u0074", "\u0073\u0073", "\u0073\u006D", "\u0074\u006D", "\u0075", "\u0077", "\u007A", "\u007B\u0079", "\u0072", "\u0079" };
int si = 0, found = 0, fs, li = 1, flag = 0, ind = 0, index = 0, len = 1, swf = 0, vyf = 0, swsy1 = 0, syf = 0;
string[] tok = new string[200];
string s, comp = null;
char[] sep = new char[] { '.', ' ', ':', ';', '!', '*', '(', ')', '_', '+', ',', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '<', '>', '=', '-', '?', '\n', '\t', '\'', '"','\b' };
string p;
string k = "";
int l;
public string rword;
public string nword;
public string delim;
public string data;
public bool more = true;
string[] tokens = new string[] { };
string line;
public Form3()
{
InitializeComponent();
}
public string NextWord()
{
string word = "";
int index = data.IndexOfAny(sep, 0);
if (index != -1)
{
delim = data.Substring(index, 1);
word = data.Substring(0, index);
data = data.Substring(index + 1);
}
else
{
delim = "";
word = data.Substring(0);
data = "";
}
if (data.Length == 0)
{
more = false;
}
return word;
}
private void Form3_Load(object sender, EventArgs e)
{
for (int bu = 0; bu < 15; bu++)
{
panel1.Controls[bu].Click += new EventHandler(button_Click);
}
for (int bu = 0; bu < 36 ; bu++)
{
panel2.Controls[bu].Click += new EventHandler(button_Click);
}
for (int bu = 0; bu < 15 ; bu++)
{
panel3.Controls[bu].Click += new EventHandler(button_Click);
}
for (int bu = 0; bu < 57; bu++)
{
panel5.Controls[bu].Click += new EventHandler(button_Click);
}
for (int bu = 0; bu < 5; bu++)
{
panel6.Controls[bu].Click += new EventHandler(button_Click);
}
}
void button_Click(object sender, EventArgs e)
{
rt1.Text += ((Button)sender).Text.ToString();
}
public string getTokens(string data)
{
StreamReader sr = new StreamReader(@"dict\dict.dic", Encoding.Default);
string newmword = null;
sr.BaseStream.Seek(0, SeekOrigin.Begin);
while (!sr.EndOfStream)
{
line = sr.ReadLine();
tokens = line.Split(new char[] { ' ' }, StringSplitOptions.None);
if (line != "" && line != "")
{
if (tokens[1] == data)
{
newmword = tokens[0]; break;
}
}
}
return newmword;
}
private void button16_Click(object sender, EventArgs e)
{
rt2.Clear();
data = rt1.Text;
while (more)
{
rt2.Text += getTokens(NextWord());
rt2.Text += delim;
} more = true;
}
private void richTextBox1_TextChanged(object sender, EventArgs e)
{
rt2.Clear();
data = rt1.Text;
while (more)
{
rt2.Text += getTokens(NextWord());
rt2.Text += delim;
} more = true;
}
private void button60_Click(object sender, EventArgs e)
{
rt1.Clear();
rt2.Clear();
comp = "";
vyf = 0;
swf = 0;
index = 0;
len = 1;
swsy1 = 0;
rt1.Focus();
}
private void button45_Click(object sender, EventArgs e)
{
}
private void button46_Click(object sender, EventArgs e)
{
}
private void button44_Click(object sender, EventArgs e)
{
}
private void button122_Click(object sender, EventArgs e)
{
rt1.Text += " ";
}
private void cutToolStripMenuItem_Click(object sender, EventArgs e)
{
rt1.Cut();
}
private void toolStripMenuItem1_Click(object sender, EventArgs e)
{
rt1.Redo();
}
private void undoToolStripMenuItem_Click(object sender, EventArgs e)
{
rt1.Undo();
}
private void copyToolStripMenuItem_Click(object sender, EventArgs e)
{
rt1.Copy();
}
private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
{
rt1.Paste();
}
private void selectAllToolStripMenuItem_Click(object sender, EventArgs e)
{
rt1.SelectAll();
}
private void toolStripMenuItem7_Click(object sender, EventArgs e)
{
rt2.Undo();
}
private void toolStripMenuItem6_Click(object sender, EventArgs e)
{
rt2.Redo();
}
private void toolStripMenuItem2_Click(object sender, EventArgs e)
{
rt2.Cut();
}
private void toolStripMenuItem3_Click(object sender, EventArgs e)
{
rt2.Copy();
}
private void toolStripMenuItem4_Click(object sender, EventArgs e)
{
rt2.Paste();
}
private void toolStripMenuItem5_Click(object sender, EventArgs e)
{
rt2.SelectAll();
}
private void Form3_FormClosed(object sender, FormClosedEventArgs e)
{
}
}
}