Re: orca and encoding problem



On Tue, Apr 11, 2006 at 02:15:50PM +0200, Samuel Thibault wrote:
> Hi,
> 
> Olivier BERT, le Tue 11 Apr 2006 11:44:47 +0200, a écrit :
> > I just installed orca and it seems to work well. 
> > I only have one problem. The speech works well but the braille display 
> > doesn't displays accents correctly (I am french). On my braille display, 
> > I can recognize the UTF8 encoding of the letter but not the 
> > one-character braille representation of the character. 
> 
> Do you mean that you are getting the byte UTF-8 representation of
> characters instead of characters themselves? (I.e. you are getting "é"
> instead of "é" ?)

This is exactly my problem. 
And I understand now why the problem was not present in gnopernicus. 
Gnopernicus actually uses .a2b (ASCI to braille) tables for each 
language. 
I think it's better to use text writing method (such brlapiWriteText), 
but we have to be careful about character encoding. 

> 
> It looks like orca doesn't care about charsets. If it always gets UTF-8
> text, brl_module_writeText() should rather do
> 
> 	if (brl_initialized) {
> 		brlapi_writeStruct ws = BRLAPI_WRITESTRUCT_INITIALIZER;
> 		ws.text = str;
> 		ws.charset = "UTF-8";
> 		ws.cursor = cursor;
> 		brlapi_write(&ws);
> 	}
> 
> BTW, orca doesn't check the result of brlapi_*() function. It should, and
> call brlapi_perror() on errors.
> 
> Regards,
> Samuel

I didn't understand really if it was a brlapi problem or an orca problem 
?

Thanks
-- 
Olivier BERT
e-mail: obert01 mistigri org
Etudiant a l'E.P.I.T.A. (cycle ingenieur, 3eme annee)
Tel: 06 07 69 79 71



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]