Skip to main content

Display Assamese Unicode character in a Java program

To display Assamese Unicode character in Java program follow the following steps-


1. check your JRE Home
2. change directory to C:\Program Files\Java\jdk1.6.0_10\jre\lib (according to default java directory)
generally within each installed JDK version there is a JRE directory. Go to that directory.
another JRE directory is generally in C:\Program Files\JRE.. no need to modify this directory
3. wherever the JRE, go to that, which one is within JDK
4. there you find the following files

../JRE/lib/fontconfig.OS.Version.properties
../JRE/lib/fontconfig.OS.Version.bfc
../JRE/lib/fontconfig.OS.properties
../JRE/lib/fontconfig.OS.bfc
../JRE/lib/fontconfig.Version.properties
../JRE/lib/fontconfig.Version.bfc
../JRE/lib/fontconfig.properties
../JRE/lib/fontconfig.bfc

There may be some less number of file, no problem, 3 will get minimum 3 files among the above listed files with extension .src
5. copy fontconfig.properties.src and past it in the same directory
6. rename the newly pasted file as fontconfig.properties
7. open it with notepade++ (or any other editor) and add the following 3 lines

##Added a line at the top of the 'Component Font Mappings':
allfonts.bengali=Vrinda
##Modifed the UTF-8 Search Sequence line to include Bengali:
sequence.allfonts.UTF-8.hi=alphabetic/1252,devanagari,bengali,dingbats,symbol
##Added a line at the top of the 'Font File Names':
filename.Vrinda=VRINDA.TTF


##if after including the above 3 line also the system is not working then add the following line in 'search sequence' area
sequence.allfonts=alphabetic/default,bengali,dingbats,symbol

####now execute the java programm. It will work

check the simple following program

import javax.swing.JOptionPane;
public class asm
{
public static void main (String [] args)
{
String asm = "\u09ae\u0987 \u0985\u09b8\u09aE\u09c0\u09df\u09be \u09b6\u09ac\u09cd\u09a6";
JOptionPane.showMessageDialog(null, asm);
}
}


If useful please leave a comment

Comments

  1. Hi i tried it, but is not displaying the assamese font.Some blocks come in place of it. And again, i like to know using which i can convert the Assamese font to Unicode as you did in String asm here. Anyway thanks a lot

    ReplyDelete

Post a Comment

Popular posts from this blog

Assamse Loan words : অসমীয়া ধাৰ কৰা শব্দ

Loanwords are words adopted by the speakers of one language ( target language ) from a different language (the source language ). A loanword can also be called a borrowing words . It is a consequence of sociocultural contact between two language communities. Borrowing of words can go in both directions between the two languages in contact, but often there is an asymmetry, such that more words go from one side to the other. In this case the source language community has some advantage of power, prestige and/or wealth that makes the objects and ideas it brings desirable and useful to the borrowing language community. The following are some example of Assamese loan words and source language. TRANSLATED LOAN WORD বাতৰি কাকত bat ɔri kakɔt (news paper) স্বৰ্ণ যুগ sɔbərnɔ zug (golden era) ৰূপালী জয়ন্তী rupali zɔjənti (silver jubilee) কন্দুৱা গেছ kɔndua ges (tear gas) দূৰদৰ্শন durdɔrχɔn (television) MARATHI WORDS তাঙৰণ taŋɔrɔn (edition) বৰঙণি bɔr...

অসমীয়া সমন্ধবাচক শব্দৰ তালিকা

আইচুদেউ আইতা আইদেউ আই আপাদেউ আমৈ এনাইদেউ ককাইদেউ ককা খুলশালী খুৰাদেউ খুৰীদেউ ঘৈণী জা জীয়ৰী জী জেঠাইদেউ জেঠা জেঠুদেউ জেঠু জেঠেৰী জে - শাহু জোঁৱাই তাৱৈ দদাইদেউ দাদা দেউতা দেওৰ ননদ নবৌ নাতিনী নাতি নিচাদেউ পিতাদেউ পিতৃ পুঠাদেউ পেহাদেউ পেহীদেউ পৈ পতি পত্নী বন্ধু বাইচাদেউ বাইদেউ বান্ধৱী বিয়নী বিয়ৈ বৈনাই বোপাই বোৱাৰী বৌদেউ ভগিনী ভগ্নী ভতিজা ভনী ভাই ভাই - পো ভাই - বোৱাৰী ভাই - শহুৰ ভাগিনী ভাগিন ভাগী মহাদেউ মহা মাতৃ মামা মামীদেউ মামী মাহীদেউ মাহীমা মা মিতিনী মোমাইদেউ শহুৰ শালপতি শাহু সখা সখীয়নী সখী সতিনী স্বামী

মিত্ৰাক্ষৰ ছন্দৰ কবিতা

বহুদিনৰ আগতে মিত্ৰাক্ষৰ ছন্দত কবিতা লিখিবলৈ চেষ্টা কৰিছিলোঁ। ব্ৰহ্মপুত্ৰ লাচিতৰ অসমত     পুত্ৰ শান্তনুৰ। বৈ আছে অহৰহ     কুলুকুলু সুৰ।। হৰিনাম ৰসে        আলোকময় প্ৰকাশে। গহীন গম্ভীৰ        গতি চিৰপ্ৰবাহমান।। তোৰ লহৰত        সোন ফুলে পথাৰত। অসমীয়ে ৰচে        সপোন সুখৰ।। ক’ত কাহিনী        সমিল-মিলৰ। বিজড়িত তোৰ         বিশাল বুকুত।। সৱ সোৱৰণি        প্ৰতিবিম্বিত আজি। অনন্ত কালৰ         সজল চকুত।।  *************** তোৰ লহৰত             অসমৰ চহৰত         নিনাদিত হয় ঐক্যতান। জাতি উপজাতি            মিলনৰ পৃষ্ঠভূমি         গায় সমন্বয়ৰ...