<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6618.4">
<TITLE>Error with gtk_text_buffer_insert_at_cursor () for unicode string</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">I wrote from home, but the message never appeared...</FONT>
<BR><FONT SIZE=2 FACE="Arial">Well, here we go again:</FONT>
<BR><FONT SIZE=2 FACE="Arial">I bought nokia 770 and the bluetooth keyboard, but my mother language is portuguese and I wasn´t capable to activate deadkeys for the funny chars ã, ç, ê and so on (xmodmap doesn´t work for that, no xorg.conf, etc).</FONT></P>
<P><FONT SIZE=2 FACE="Arial">So I hacked maemopad 1.5 to enforce accents.</FONT>
<BR><FONT SIZE=2 FACE="Arial">With maemopad I developed my own GTK text editor for prototype, and after the buffer receive "^" and then an "A" char the program is supposed to write "Â" in the screen.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">My prototype running x86 Linux GTK works fine for gtk_text_buffer_insert_at_cursor (buffer, "\u00E2", -1), but when I try this for my gtk_signal for "key_press_event" in maemopad nothing happens. Nokia 770 displays funny chars, in fact the screen keyboard has dead keys for portuguese, but the same is not true for Bluetooth keyboard.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">The only and last problem for my Maemopad hack for accents with bluetooth keyboards is this single line:</FONT>
<BR><FONT SIZE=2 FACE="Arial"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">gtk_text_buffer_insert_at_cursor (buffer, "\u00E2", -1);</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">If you try ASCII char, it works!</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">gtk_text_buffer_insert_at_cursor (buffer, "a", -1);</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">And for my x86 Linux GTK prototype unicode works too!</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Some idea?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Alessandro<B></B></FONT>
</P>
<p></p><p>Essa mensagem é destinada exclusivamente ao seu destinatário e pode conter informações confidenciais, protegidas por sigilo profissional ou cuja divulgação seja proibida por lei. O uso não autorizado de tais informações é proibido e está sujeito às penalidades cabíveis.<br><p></p><p>This message is intended exclusively for its addressee and may contain information that is confidential and protected by a professional privilege or whose disclosure is prohibited by law. Unauthorized use of such information is prohibited and subject to applicable penalties.</p></BODY>
</HTML>