LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-18-2008, 12:17 AM   #1
maromi
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Rep: Reputation: 0
Help with unicode ouput


Hi there,

I'm writing a program in C++ with wxWidgets that has to output characters in different scripts e.g. Devanagari, Tibetan etc. When I need to output a character that is made up of two characters (by making a string like "\u0F63\u0FA1") they don't come out stacked in the correct way, (an analogy with latin characters would be é and É where the accent sign doesn't move for E), I looked in the font I'm using and it has a separate glyph for the two chracters stacked but it does not get ouput, instead \u0F63 is output and then \u0FA1 is output underneath, so they are "semi stacked".

Is it my responsibility as the programmer to look at the two characters and select the apropriate glyph from the font, or should it be handled by the operating system/X server/desktop enviroment and something is not configured properly?

Also, if anyone could point me in the direction of some good resources unicode and C++ it would be much appreciated.

Thanks
 
Old 01-18-2008, 10:15 PM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
This should be managed by the OS, first check that this works on your system. Use any Unicode aware application and check the script. If that works then your OS is probably fine but the glyph rendering engine that your program is using (via wxWidgets) is outdated. I say probably because there are a few rendering engines, I forget their names.

For Tibetan check out the Pan Localisation project (Dzongkha). I was involved in this in the very early days and I know that they have got it working but you may require an update to your system.
 
Old 01-19-2008, 06:46 PM   #3
maromi
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for that information. Firefox displays Tibetan letters fine and so do all the Java programs that use Tibetan I've tried, so I will look into updating my system.

Can anyone recommend any websites or books that have good information about localization, Unicode, etc.? Because I've found it had to find information on supporting languages other than English in my programs.

Thanks
 
Old 01-20-2008, 12:53 AM   #4
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Getting info on programming Unicode is not easy and since C/C++ doesn't support it natively you will need to look for various libraries. What I can suggest is that you look at the PANL10N web site and the Dzongkha project on Source forge. There are some contact emails you can extract from those sites to ask people about specific questions that you have.

By the way Dzongkha is the language from Bhutan and it uses the Tibetan script.
 
Old 01-20-2008, 09:54 AM   #5
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 510

Rep: Reputation: 53
Quote:
Originally Posted by maromi View Post
Can anyone recommend any websites or books that have good information about localization, Unicode, etc.? Because I've found it had to find information on supporting languages other than English in my programs.

Thanks
Check out Markus Kuhn's indispensable UTF-8 and Unicode FAQ. A must-read.

Also, O'Reilly's old "CJKV" book is sometimes helpful, but they've got a new one actually called "Unicode explained" and another one "Fonts and Encoding". I don't know them, though.
 
Old 01-21-2008, 12:32 AM   #6
maromi
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks

Thanks for all your help, those resources should be really helpful.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i'd like to parse the ouput in shell ElectroLinux Linux - General 1 05-22-2007 06:24 AM
how to ouput ls result Cigar Linux - General 2 03-06-2007 09:41 AM
Noise in tv sound ouput erpe Linux - Hardware 3 04-25-2006 05:53 PM
question about ouput of ls -l Itzac Linux - Newbie 1 05-09-2004 04:18 PM
SAR Ouput Question te_conway Linux - General 10 01-26-2003 09:29 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration