Re: UTF-8 and some issues...
Stéphane Bisinger <metal_kj-/[email protected]>
| Newsgroups | gmane.network.centericq |
|---|---|
| Message-ID | <[email protected]> |
Hi again, I am back with some news and some new questions... First, Stéphane Bisinger <metal_kj-/[email protected]> wrote: > I am trying to see how hard it could be to make > centericq working with utf-8. Now I can see more clearly the whole issue and I think that in a couple of months it could be feasible, even less if somebody is to join me on this effort! I downloaded utf8cpp (the library in the article someone mentioned), but it is just for utf8 and it does not work with wchar_t types (which is what I need). I think I will do a string class on my own that works just like the string class, but with wchar_t instead of char as a type. This way we could handle not only utf-8, but most (if not all) wide-character encodings. My next major issue is the following: how do you recognise, for example, a ctrl-x key combination from a normal x? Searching for an answer I could only understand that from ctrl-a to ctrl-z translate to ascii 01 through 26 and that from alt-q to alt-m translate in a 0016 through 0050 sequence of characters. I also found that sometimes the alt key sets the 8th bit of ASCII. Dealing with ncurses, the library is able to recognize such key presses, but I could not understand how. Do you have any pointer to some valid documentation on these issues? In particular that ctrl/alt keypress recognition is important to understand how to handle keyboard shortcuts... I tried to look for some more detailed information on ioctl(0, TIOCLINUX, 6); but without success... Does anybody have some information on how to use ncurses with wide-character support? I found NOTHING about it, I only know that ncursesw has the same interface as ncurses, but nothing more... I would be thankful also for that! Oh one more question: are you still having troubles with the configure script/Makefiles? If I try to deactivate some protocols, configure fails... Is that a known problem with the CVS version or do you need my output? I can think of no more questions for now... Thank you! P.S.: I am concentrating on the editor for now, I hope to send you some patches very soon! Stéphane ___________________________________________________________ All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html _______________________________________________ Cicq mailing list Cicq-xGejAJT2w6wWP6gT/[email protected] http://mailman.linuxpl.org/mailman/listinfo/cicq Questions? Check the FAQ first: http://centericq.de/faq/