On Sun, Feb 27, 2005 at 11:45:40AM +0100, Richard Levitte via RT wrote:
> [EMAIL PROTECTED] - Sun Feb 27 10:07:31 2005]:
> > I tried to use Latin 1 characters in menus some time ago. It breaks
> > horrible without I18N
>
> Yup, that's expected the way the code currently looks.  I'm asking
> again, would it hurt anyone if we made I18N a default (or even removed
> the conditions entirely and made I18N a mandatory default of sorts)?

Here on Debian unstable, with ctwm -info
  Twm version:  MIT X Consortium, R6, ctwm 3.6 + I18N Patch
  Compile time options : XPM USEM4 SOUNDS I18N

... I18N work as much as I would expect, i.e. international characters
in menus and window-titles are displayed if the chosen font has them.

> > and ctwm just ignores the characters when I18N is defined.
>
> I assume you checked that it wasn't a font problem.
>
> I guess I should try it...  :-)

When trying, keep an eye on the order in your .ctwmrc.  As the
man-page says:

  [...]fications:  Variables, Bindings, Menus.  The  Variables  sec-
  tion  must  come  first and is used to describe the fonts, colors,
  [...]
  Variable names and keywords are case-insensitive.  Strings must be
  surrounded  by  double  quote  characters  (e.g.  'blue')  and are

Why the example uses single quotes I don't know, but double quotes
work for me.  I only tried iso10646-1 encoded font, e.g.

MenuFont "-misc-fixed-medium-r-normal--12-*-75-75-c-*-iso10646-1"
TitleFont "-efont-biwidth-bold-r-normal-*-*-160-*-*-p-*-iso10646-1"

and with that the following

menu "menu3"{
        "Standard ÃÃÃÃÃÃÃ"  f.title
        "test ××××× ×××××"  f.exec "my_prog&"
}
xterm -T "××××××××××××ÃÃÃ" -e sleep 4

does what one would think. (In a .UTF-8 locale, configuration file and
such.)  Note that the I18N-support is still incomplete.  For example
ctwm doesn't do bidirectional ordering (Hebrew, Arabic), and I didn't
even try combining character.  Anyway, I think these things are
usually addressed at the toolkit level, so they may be beyond what the
ctwm programmers want to do.

Regarding what already works, I don't know what is in Debian's
I18N-patch, but the source code is available from the Package page

http://packages.debian.org/unstable/x11/ctwm

and probably the maintainer (is Branden Robinson on this list?) will
know more.  One could also read on the page "Overview of ctwm source
package" http://packages.qa.debian.org/c/ctwm.html

Daniel

Reply via email to