On Wed, Aug 06, 2008 at 10:40:33PM +0200, Jehan wrote: > I am well advancing on this UTF-8 stuff... Depending on the time I will > have on the next day, I may have a working code very soon (working -- > enough to begin to hope having a good support -- but probably not clean > yet for real "production"). I was just wondering one stuff. Why in the > code are there many references to utf-8 stuffs? Are they remaining from > the older code of rxvt? Did someone try to add utf-8 and abandonned? > > These questions are simply out of curiosity, just to know...
I never for the life of me can figure out multichar stuff. A long time ago I was tweaking the Xft codebase to get better performance, and I remember asking Jimmy similar questions. I attach his response, GI -- Practice safe eating; always use condiments.
XIM works fine with XFT for me, at least for inputting Simplified Chinese. See the attached picture. In general, a stream of text may include both multi-byte text and normal English text. We need to figure out which part of the text is multi-byte, and which part of the text is English. Then we choose different font to display different text. For multi-byte text, a procedure of encoding is often needed in order to for the font rendering routines to draw the correct text on screen. For X11, we use XDrawString16/XDrawImageString16 for multi-byte text and XDrawString/XDrawImageString for English text. For XFT, we can only use XftDrawStringUTF8 font rendering routine to draw multi-byte text. XftDrawString16 do not draw the multi-byte text correctly. This means that we must convert multi-byte text into UTF8 encoding first. This is achieved by calling iconv (). A big problem I have seen with XFT is that the document is not clear/complete. I am sure you have seen the crash problem when we try to free some XFT resources. It also took me quite a while to figure out how to make XFT work with multi-byte text. Keep in mind that currently, mrxvt can only handle two-byte characters. Anything beyond two-byte is not supported. For example, Chinese GB18030 characters need 3-4 bytes, thus is not supported. Jimmy On 3/18/06, Gautam Iyer <[EMAIL PROTECTED]> wrote: > On Sat, Mar 18, 2006 at 03:16:08PM +0900, Yoshihiko KASHIO wrote: > > > > Would you please attach the patch file instead of pasting it in the > > > message body? > > > > Hmm.. I certainly had attached the patch file, and I received my post > > with that attachment from materm-devel list :-( But the list archive > > shows concatenated multipart message... I think it may be the behavior > > of Mailman. > > Jimmy -- The mime-type of Kash's attachment was text/plain, so it might > have been displayed inline (as it was for me too). With most mail > programs (e.g. mutt) you should *also* be able to treat it as a > standalone attachment. > > While we're on the subject of XIM, can you tell me if XIM works with > Xft? If no, then I'm guess we should make it part of our agenda for > 0.5.1 :). > > GI > > -- > ACTUAL LABEL INSTRUCTIONS ON CONSUMER GOODS: > On a bag of Fritos: You could be a winner! No purchase necessary. > Details inside. > > > ------------------------------------------------------- > 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 > _______________________________________________ > Materm-devel mailing list > Materm-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/materm-devel >
pgpsKN2dlJyel.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Materm-devel mailing list Materm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/materm-devel mrxvt home page: http://materm.sourceforge.net