On 18 Apr 2002 16:37:00 -0700, Nadim Shaikli wrote: > > Mikhael/Olivier, I downloaded a recent snapshot (20020416) to test > out the Bidi code that was recently added. I compiled with fribidi; > everything went smoothly - configure noted, > > With Bi-directional text support? yes > > yet I'm not sure how to go about displaying a window title in Arabic. > I tried the following, > > Using a 10646 font (its used successful in many other applications), > I defined the following entries in my fvwm2rc file, > > Style * Font -misc-fixed-medium-r-normal--20-200-75-75-c-100-full10x20-1 > > AddToMenu arabic-test > + "Arabic" Title > + "ar-test" Exec exec xterm -title Ù?رØبا -e rsh otho & > + "Ù?رØبا" Exec exec xterm -title test -e rsh otho & > > In my .xinitrc prior to starting fvwm2, I 'xset fp+ my_10646_font_file', > I then start fvwm2; I invoke that "ar-test" entry, the xterm appears, > but the title is NOT displayed in arabic. The menu entry is not noted > in Arabic either. Do note that the environment is set so that I can use > other applications that require the Bidi library and the 10646 font (so > they're very much loaded - I hope I don't need to muck with locales and > such :-)
I don't know how to tell fvwm that the encoding is utf8; using *-10646-1 font is not enough. Setting $LC_CTYPE to, say, ar_JO.utf8 does not work. I suppose Olivier knows. I only tested 8-bit encodings, iso8859-6 and iso8859-8. Do the following. Install iso8859-6.8x fonts from: http://www.langbox.com/bidimozilla/fontXFE/ Do the same with iso8859-6 fonts in old/ subdirectory. Run xmessage from a script (if 8-bit chars can't be typed in your shell): xmessage -name "a) ÓáÑ - Åâäêåê, Î×è× ÌèêÉ" "this message is not really important, just long enough" I don't know what the string means, I copied it from some web site. Do the following: Style Xmessage Font *-iso8859-6 # Bidi applied, visual Arabic Style Xmessage Font *-iso8859-6.8x # Bidi not applied, logical Arabic The same with Hebrew: xmessage -name "a) îùôè áòáøéú" "this message is not really important" Style Xmessage Font *-iso8859-8 # Bidi applied, visual Hebrew I tried to add now iso8859-6.8x as bidi-enabled in libs/FlocaleCharset.h, but it failed. I tried all cases including "iso8859-6.8x" (what fonts.dir says), "iso8859-6.8X" (what pcf says), "iso-8859-6.8X" (what url says), nothing works. Olivier, what should be done? Regards, Mikhael. -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]