4.6-current on a HP EliteBook 8530w. I cannot get xterm
to let me type some iso8859-2 (Czech) characters.
For testing purposes, I removed my ~/.xinitrc and ~/.Xresources,
to start from the bottom up. Running `startx' gets me into fvwm
and launches an xterm, as is the default. From that xterm, I run
setxkbmap -layout "us,cz" -option "grp:shifts_toggle,grp_led:scroll"
which works, i.e. sets the Xkb map to us/cz being toggled by shifts.
In firefox, for instance, I can type Czech now. In xterm, I can't:
some letters show up correct and some don't. Namely, the acute'd letters
show up correct, and the check'd letters don't show up at all - does this
have any significance?
Figuring that I might also need an appropriate font to display the
letters, I ask 'xlsfonts -misc-fixed-*-iso8859-2' about my options
and run
xterm -fn -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-2
launching an anither xterm whose xprop(1) say
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW
_NET_WM_PID(CARDINAL) = 1262
WM_CLIENT_LEADER(WINDOW): window id # 0xe0000d
WM_LOCALE_NAME(STRING) = "C"
WM_CLASS(STRING) = "xterm", "XTerm"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified size: 819 by 484
program specified minimum size: 29 by 24
program specified resize increment: 10 by 20
program specified base size: 19 by 4
window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "hp.stare.cz"
WM_COMMAND(STRING) = { "xterm", "-fn",
"-misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-2" }
WM_ICON_NAME(STRING) = "xterm"
WM_NAME(STRING) = "xterm"
In this new xterm, I have the very same problem.
(Does this xprop output say that the xterm is actually using the font?
Because I get the same behaviour in an xterm without any -fn specified.
The font name appears in the WM_COMMAND which I did indeed run, but
should I expect the font name to appear in some *_FONT variable, too?)
This only concerns _typing_: in the default xterm, when I view a Czech
webpage with lynx, the acute'd letters are OK, the check'd are not;
in the xterm -fn, the same page appears OK, but I still cannot _type_
the check'd characters.
Assuming that the xterm is indeed using the specified font,
is there anything else I need to do besides
(1) running setxkbmap to have a "cz" keyboard
(2) run my xterm with a "-*-iso8859-2" font
to have an xterm where I could type all the iso8859-2 characters?
Is there something else I should test? For instance, why is xclipboard
having the same problem, but not firefox? What is the distinction
between them, for X's point of view regarding fonts?
Also, because my X does not run without an xorg.conf (blame my nvidia chip),
I use a xorg.conf which specifies the Device as vesa; this xorg.conf
also specifies a font path which does include the font I am using,
and does not say anything about Xkb. Can anything else in that xorg.conf
be relevant to my problem?
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/OTF"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
EndSection
Section "Module"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "freetype"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "wsmouse"
Option "Device" "/dev/wsmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "UseFBDev" # [<bool>]
#Option "Rotate" # [<str>]
#Option "VideoKey" # <i>
#Option "FlatPanel" # [<bool>]
#Option "FPDither" # [<bool>]
#Option "CrtcNumber" # <i>
#Option "FPScale" # [<bool>]
#Option "FPTweak" # <i>
#Option "DualHead" # [<bool>]
Identifier "Card0"
Driver "vesa"
#Driver "nv"
#VendorName "NVIDIA"
#BoardName "Unknown Board"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Thank you for your time
Jan