Re: UTF-8 in OGRE

Leon Bottou <[email protected]> Fri, 24 Feb 2006 16:05:21 -0500
Newsgroups gmane.lisp.lush.devel
Message-ID <[email protected]>
On Friday 24 February 2006 03:27 pm, Raymond Martin wrote:
> Alright! I can use multiple languages now in a text pane (i.e. English, French, and Japanese).
> I have noticed a problem, the cursor is not aligned with the character. 
> It seems to be set to the byte offset of a character in the string and not 
> the printed character location in the visible text.
That won't work until the string.c functions (left,right,mid,asc,chr,etc.)
are fixed for multibyte using function mbrtowc, wcrtomb and mbrlen. 
All changes have to be dependent on macro HAVE_MBRTOWC (see string.c).
If you want to give it a try...

Useful documentation:
  http://www.gnu.org/software/libc/manual/html_node/Character-Set-Handling.html
  http://www.gnu.org/software/libc/manual/html_node/Classification-of-Wide-Characters.html
  http://www.gnu.org/software/libc/manual/html_node/Wide-Character-Case-Conversion.html


Regexps might be tough to change.

> Another issue I am having is not being able to set the 
> font for the window title as displayed by the window manager.
That is now fixed. It surely never worked before.

- L.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642