Original Message:
Hello,
I have a user who has some special requirements for languages.
He needs to have an environment set up to do HTML publishing
in Polish, for a translation project.
I have installed the "biznet" ISO-8859-2 "Latin2" fonts for X11R6
on the system, and Netscape can display correctly the fonts
for the Polish language - so we are 1/2 way there.
Now I need to make an environment for editing documents
with the correct fonts, in an editor such as vi or pico.
Using the Netscape Composer is *not* an option - we want to use
an xterm environment.
The user is on a PC Xterm, with a 101key IBM PC keyboard.
The system is currently running SunOS4.1.4 with X11R6 but soon will
become Solaris 2.5.1 and Openwin-3.5.1
My question is, how do we do this?
How do I make a map of the keys to Polish, and create an environment
he can switch simply to from English to Polish?
I envisage a shell that changes the environment from English
to Polish on the fly, then remaps his keyboard to use the Polish
encoding and then he will be able to edit his documents, save them and
then he can run this from an Xterm specially configured for the purpose.
Can someone please tell me how to do all this, and also provide a
mapping of the keys, so we are not stabbing in the dark trying to work
out which key produces what character?!
A solution that will work for both platforms would be much appreciated.
Despite my surname, I am not Polish - and don't know where to start ;)
SOLUTION:
I found a copy of a polish xmodmap keyboard map that was generated
with Xkeycaps.
Then I installed the biznet ISO8859-2 Latin2 fonts
onto the SunOS4 box.
Then I wrote a shell script that loaded the Polish xmodmap
and started up a Polish Xterm with the correct font loaded.
The user was able to edit the pages in Pico and see the correct
encodings appear.
Strangely enough, vi was unable to display the fonts, it was trapping
the keysym modifiers. Does anyone knwo how to fix this?
Finally, we obtained a copy of "Ogonkify" which is a perlscript
and some special fonts to help munge postscript documents
and place the extra symbols needed into text.
This was needed so Netscape could correctly print out the Latin2
characters - otherwise it replaced them.
Overall the solution worked really well, and is OK for the kind of work
needed. The vi problem is an interesting one, however.
Here's all the resources we used:
!
! This is an `xmodmap' input file
! for PC 101 key keyboard #2 (Linux/XFree86 US layout) keyboards.
! This file was automatically generated on Wed Nov 2 10:29:07 1994
! by Ryszard Mikke with XKeyCaps 2.11;
! Copyright 1991-1994 Jamie Zawinski <jwz@lucid.com>.
!
! This file makes the following changes:
!
! The "& 7" key generates 7, ampersand, and section
! The "E" key generates e, E, ecircumflex, and Ecircumflex
! The "O" key generates o, O, oacute, and Oacute
! The "A" key generates a, A, plusminus, and exclamdown
! The "S" key generates s, S, paragraph, and brokenbar
! The "L" key generates l, L, threesuperior, and sterling
! The "Z" key generates z, Z, questiondown, and macron
! The "X" key generates x, X, onequarter, and notsign
! The "C" key generates c, C, ae, and AE
! The "N" key generates n, N, ntilde, and Ntilde
! The "Alt" key generates Mode_switch
keycode 0x09 = Escape
keycode 0x43 = F1
keycode 0x44 = F2
keycode 0x45 = F3
keycode 0x46 = F4
keycode 0x47 = F5
keycode 0x48 = F6
keycode 0x49 = F7
keycode 0x4A = F8
keycode 0x4B = F9
keycode 0x4C = F10
keycode 0x5F = F11
keycode 0x60 = F12
keycode 0x6F = Print
keycode 0x4E = Multi_key
keycode 0x6E = Pause
keycode 0x31 = grave asciitilde
keycode 0x0A = 1 exclam
keycode 0x0B = 2 at
keycode 0x0C = 3 numbersign
keycode 0x0D = 4 dollar
keycode 0x0E = 5 percent
keycode 0x0F = 6 asciicircum
keycode 0x10 = 7 ampersand section
keycode 0x11 = 8 asterisk
keycode 0x12 = 9 parenleft
keycode 0x13 = 0 parenright
keycode 0x14 = minus underscore
keycode 0x15 = equal plus
keycode 0x33 = backslash bar
keycode 0x16 = BackSpace
keycode 0x6A = Insert
keycode 0x61 = Home
keycode 0x63 = Prior
keycode 0x4D = Num_Lock
keycode 0x70 = KP_Divide
keycode 0x3F = KP_Multiply
keycode 0x52 = KP_Subtract
keycode 0x17 = Tab
keycode 0x18 = Q
keycode 0x19 = W
keycode 0x1A = e E ecircumflex
Ecircumflex
keycode 0x1B = R
keycode 0x1C = T
keycode 0x1D = Y
keycode 0x1E = U
keycode 0x1F = I
keycode 0x20 = o O oacute Oacute
keycode 0x21 = P
keycode 0x22 = bracketleft braceleft
keycode 0x23 = bracketright braceright
keycode 0x24 = Return
keycode 0x6B = Delete
keycode 0x67 = End
keycode 0x69 = Next
keycode 0x4F = KP_7
keycode 0x50 = KP_8
keycode 0x51 = KP_9
keycode 0x56 = KP_Add
keycode 0x42 = Caps_Lock
keycode 0x26 = a A plusminus exclamdown
keycode 0x27 = s S paragraph brokenbar
keycode 0x28 = D
keycode 0x29 = F
keycode 0x2A = G
keycode 0x2B = H
keycode 0x2C = J
keycode 0x2D = K
keycode 0x2E = l L threesuperior sterling
keycode 0x2F = semicolon colon
keycode 0x30 = apostrophe quotedbl
keycode 0x53 = KP_4
keycode 0x54 = KP_5
keycode 0x55 = KP_6
keycode 0x32 = Shift_L
keycode 0x34 = z Z questiondown macron
keycode 0x35 = x X onequarter notsign
keycode 0x36 = c C ae AE
keycode 0x37 = V
keycode 0x38 = B
keycode 0x39 = n N ntilde Ntilde
keycode 0x3A = M
keycode 0x3B = comma less
keycode 0x3C = period greater
keycode 0x3D = slash question
keycode 0x3E = Shift_R
keycode 0x62 = Up
keycode 0x57 = KP_1
keycode 0x58 = KP_2
keycode 0x59 = KP_3
keycode 0x6C = KP_Enter
keycode 0x25 = Control_L
keycode 0x40 = Alt_L Meta_L
keycode 0x41 = space
keycode 0x71 = Mode_switch
keycode 0x6D = Control_R
keycode 0x64 = Left
keycode 0x68 = Down
keycode 0x66 = Right
keycode 0x5A = KP_0
keycode 0x5B = KP_Decimal
clear Shift
clear Lock
clear Control
clear Mod1
clear Mod2
clear Mod3
add Shift = Shift_L Shift_R
add Lock = Caps_Lock
add Control = Control_L Control_R
add Mod1 = Alt_L Mode_switch
clear Mod4
clear Mod5
! end
And here is the URL for the Latin2 fonts we used:
http://sizif.mf.uni-lj.si/linux/cee/iso8859-2.html
And Ogonkify for Netscape printing is at:
http://sizif.mf.uni-lj.si/linux/cee/printing.html#PS:Native
Thanks to the following for their help:
Gnuchev Fedor <qwe@ht.eimb.rssi.ru>
Francis Liu <fxl@pulse.itd.uts.edu.au>
Kevin Sheehan
rachel
Rachel Polanskis University of Western Sydney, Nepean
Asst. UNIX Admin PO Box 10, Kingswood NSW 2747
Systems && Operations Computing && Communications Division
K'wood
r.polanskis@nepean.uws.edu.au Phone: +61 (47) 360 291
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:57 CDT