jed-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

XJed Unicode


Ok, it took me a bit more than I hoped...

go to http://www.paneura.com/~dino/xjed-unicode.html to see some screenshots
of XJed drawing Unicode text and ISO-8859-1 text, both with Xft and standard
core fonts, and compiled with SLang 2 and SLang 1 (only ISO-8859-1 is shown
for this, as unicode support is missing).

Please notice how it handles combining characters!

LANG is set to en_US.UTF-8 for unicode locale, and to it_IT for ISO-8859-1
locale.
Xft font is enabled passing -fn MiscFixed -fs 14 to xjed.
Core font used is -misc-fixed-medium-r-normal--14-*-*-*-*-*-iso10646-1

By googling around, I learned that Xutf8Draw* functions are almost
universally considered a mistake, and anyways these seems not to work. So I
took a look at xterm source, and it uses XDrawString16(). So I did the same:
I use:
- unicode mode (SLang 2 in Unicode mode): XftDrawString32() or
XDrawString16()
- local encoding mode (SLang 2)         : As abobe.
- SLang 1                               : XftDrawString8() or XDrawString()

Attached is the patch, based on xterm.c from jed-B0.99-17.111.

On the web page above you will find the full xterm.c, but it is a bit older.

Basic editing with Latin 1 characters seems to work as-is... but jed seems
not to support compose sequences... I have not tried enabling XIM.

Thanks,
							Dino

Attachment: xterm.diff.gz
Description: Binary data


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]