News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

X Progress Window and UTF8

Started by nite_man, October 13, 2009, 03:31:26 PM

Previous topic - Next topic

nite_man

Hi,

Another problem appears with localization LinuxMCE UI. The progress window where some messages are displayed during loading the core is developed using Xlib. I didn't find a way to show messages correctly. As I understand the function  XDrawString() doesn't support UFT8 at all. Some other one should be use such XmbDrawString() or so. But I didn't find the actual solution. If somebody who has better experience with X programming can help me I'll be very very appreciated!

TIA
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

tschak909

The correct course of action here would be to pick a UI toolkit, either GTK+ or Qt, and rewrite the OrbiterLinux portions that use the xlib calls, to use the toolkit calls, because xlib does NOT support unicode, and the amount of infrastructure required to graft such support on (think Pango) would be better spent basically just rewriting the code to use proper calls anyway. There are far too many weird little bugs with this code to continue using it in its current state.

Go for it.

-Thom

nite_man

You confirmed my thoughts, Tom :) I vote Qt since LinuxMCE is based on KDE. If so I'll try to implement it.
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]