Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!sics.se!ifi!nuug!ugle.unit.no!news From: Steinar.Haug@delab.sintef.no (Steinar Haug) Newsgroups: comp.windows.x Subject: Problems using xterm "translations": Shifted and unshifted equal Message-ID: <1991Mar27.214211*Steinar.Haug@delab.sintef.no> Date: 27 Mar 91 20:42:11 GMT Sender: news@ugle.unit.no Organization: SINTEF DELAB, Trondheim, Norway. Lines: 32 I am trying to use the xterm "translations" resource to dynamically switch between the use of ISO8859-1 character sets (where I want the 'ae' key to insert ISO8859-1 'ae', 0xd7), and ISO646 character sets (where I want the 'ae' key to insert its 7-bit "equivalent", which is '{', 0x7b, in the Norwegian variant of ISO646). My problem is, I cannot get the xterm to distinguish between a shifted and an unshifted key. So to simplify the task, I tried the following: XTerm*VT100.Translations: #override \ F4: keymap(None) \n\ F5: keymap(extra) XTerm*VT100.extraKeymap.translations: #override\ x: string("A") \n\ Shiftx: string("B") I simply want an unshifted x to insert 'A', and a shifted X to insert "B". The problem is that only the first definition is used by xterm. I always get 'A', both shifted and unshifted. If I place the line with Shift -> B first, I always get B in both shifted and unshifted positions. Furthermore, in either of these cases I get the same character also for ctrl-x! Can anybody tell me what the translations should look like to do this? Or is it simply not possible? According to the documentation, it seems that it should be possible. Oh, btw, I have tried this on both Suns and HPs here, all running X11R4 at patchlevel 14. Steinar Haug, system/networks administrator SINTEF DELAB, University of Trondheim, NORWAY Email: Steinar.Haug@delab.sintef.no, sthaug@idt.unit.no, steinar@tosca.er.sintef.no