Hi, I am still new to C# and am working on an annotator: 1. Input some Chinese Text. 2. Click Button. 3. Output some Chinese Text - each word that's found in the dictionary get's a span-html-class around for later implementing it in a website. Here it the code for clicking the button: [CODE] private void annobutton_Click(object sender, EventArgs e) { while (pos < inputBox.TextLength) { if (inputBox.Text.Substring(pos).Length < len) { textpart = inputBox.Text.Substring(pos, inputBox.Text.Substring(pos).Length); } else { textpart = inputBox.Text.Substring(pos, len); } if (!dict.ContainsKey(textpart) && len >= 1) { len--; } else if (dict.ContainsKey(textpart) && len >= 1) { …

Member Avatar
Member Avatar
+0 forum 11

Hi, I am currently working on a websiteproject for learning chinese. To help the readers to understand the texts better, I want to annotate the Chinese Characters with popup translations from the HanDeDict (German-Chinese Dictionary). I already downloaded the dictionary but the file seems to be too big to work with properly. To get an impression of what I mean you can visit: [url]http://www.dersinologe.de/hdd1py-working3[/url] (Just mouseover the chinese text at the very end of the site and some tooltip dialoges will show) Now I need your help. How can I annotate the whole text? Below you can see my php-code …

Member Avatar
Member Avatar
+0 forum 4

The End.