Infomani

Hi, this is for U only.Do well, Feel Free…

  • No of Hits

    • 6,955 hits
  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 8 other followers

  • Time is Now

    March 2010
    M T W T F S S
        Jun »
    1234567
    891011121314
    15161718192021
    22232425262728
    293031  
  • Zip

  • Advertisements

Creating Tamil Dictionary in JAVA

Posted by Manikandan.MS on March 3, 2010


Instruction:

1. Copy the below code and paste it in the notepad and save as TamilDict.java

2.Open one MS office Document and put some of the Tamil sentence like

‘ apple: ஆப்பிள் என்பது ஒரு வகையான பழம்’

* you should save as “apple.doc”

3. The same thing (point 2) make another ms document  and put some Tamil sentence

and save as “ball.doc”

4. The same thing we make ‘n’ number of document and put it in a folder where your source code(TamilDict.java) is available.

5. Check whether you should installed ” j2sdk1.4 ” otherwise it will not work(if it is old version)

6. When you run this program : It ask a word and you enter a word  like ‘ apple ‘ then it automatically display the corresponding Meaning in Tamil which we written in the MS Document.

Source code:

//program name : TamilDict.java

import java.awt.*;
import java.awt.event.*;
import java.io.*;

class TamilDict extends Frame implements ActionListener
{
TextField t1;
TextArea t;
Button b1;
Label l1;

Test2()
{
super("Unicode");
setSize(1024, 768);
setVisible(true);
setBackground(Color.pink);
setLayout(null);

l1 = new Label("Server");
t1 = new TextField("enter your word");
b1 = new Button("search");
t=new TextArea(" ");

l1.setBounds(30, 80, 200, 25);
t1.setBounds(100, 80, 200, 25);
t.setBounds(50,150,300,300);
b1.setBounds(320, 80, 80, 25);

b1.addActionListener(this);
add(t1);
add(t);
add(l1);
add(b1);

t1.requestFocus();
addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e1)
{
System.exit(0);
}
}
);

}
public void actionPerformed(ActionEvent e2)
{

try
{
String s="";
int temp;
String fname = t1.getText() + ".doc";

if (e2.getSource() == b1)
{
FileInputStream fis = new FileInputStream(fname);
InputStreamReader isr = new InputStreamReader(fis, "UTF8");

while((temp=isr.read())!=-1)
{
s=s+ (char)temp;
}

t.setText(s);

}

}
catch (Exception e) { }

}
public static void main(String args[])    {

Test o = new Test();
}
}

/* This is one of the Project which I did.

  • powered by Manikandan,  Enjoy This… */
Advertisements

9 Responses to “Creating Tamil Dictionary in JAVA”

  1. You can use blogspot, wordpress for blog spot or you can create your own blog with any framework. If you wanna more things, please contact me will respond you.

  2. Raul said

    Hello! I know this is kinda off topic however I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest writing a blog post or vice-versa?

    My blog addresses a lot of the same topics as yours and I
    think we could greatly benefit from each other. If you are interested feel free
    to send me an email. I look forward to hearing from
    you! Terrific blog by the way!

  3. Latanya said

    I simply thought to declare I must say I value your writing ability.
    It is good to see someone whom provides a grasp of grammar
    and additionally spelling on-line. I will tell other individuals about Creating
    Tamil Dictionary in JAVA Infomani. Regards!

  4. Greetings! Very useful advice within this post! It is the little changes that produce the greatest changes.
    Thanks for sharing!

  5. Maggie said

    It’s really a cool and helpful piece of information. I am glad that you shared this helpful information with us. Please stay us informed like this. Thanks for sharing.

  6. Manikandan.S said

    i like ur blog… i need one help frm u?
    how to incrase the blog hits(no of visitiors)..
    can u help me?
    Thank u…

    • Dear Manikandan.S,
      Thanks for your response.
      If you want to increase your blog hits, you will follow a few steps
      1. Post a different types of content
      2. Share it on Social media like Facebook, twitter etc
      3. Mainly give comments or reply to other’s blog.
      Then your blog hits will increase.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

 
Pradeep

Why We live

TechView Mani

A blog of New Technologies

Infomani

Hi, this is for U only.Do well, Feel Free...

%d bloggers like this: