home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp / 14668 < prev    next >
Encoding:
Text File  |  1993-01-08  |  4.3 KB  |  112 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!cs.utexas.edu!usc!sdd.hp.com!hp-cv!hp-pcd!hpcvusn!hpcvusc.cv.hp.com!tommc
  3. From: tommc@hpcvusc.cv.hp.com (Tom McFarland)
  4. Subject: Re: Problem with ISO8859 and HP keyboard
  5. Message-ID: <1993Jan8.214117.15080@hpcvusn.cv.hp.com>
  6. Sender: nobody@hpcvusn.cv.hp.com (Nobody - UID must be 99999)
  7. Nntp-Posting-Host: hpcvusc.cv.hp.com
  8. Reply-To: tommc@cv.hp.com
  9. Organization: Hewlett Packard UTD-Corvallis
  10. References:  <1993Jan6.125830.8710@ratp.fr> <1993Jan8.131612.6687@jussieu.fr>
  11. Date: Fri, 8 Jan 1993 21:41:17 GMT
  12. Lines: 98
  13.  
  14. In article <1993Jan8.131612.6687@jussieu.fr>, umberto@aomc.jussieu.fr (Umberto D'Ortona) writes:
  15. |> In article <1993Jan6.125830.8710@ratp.fr>, jt@ratp.fr (Janick TAILLANDIER) writes:
  16. |> |> I have installed patch PHSS_1659 on an HP9000/400 (HP-UX 8.0) to be able
  17. |> |> to use the ISO8859-1 character set with the resource "HPterm*roman8" set
  18. |> |> to "False" and an appropriate ISO font.
  19. |> |> 
  20. |> |> Everything works fine but...  with an HP46021AF keyboard (French layout),
  21. |> |> the key sequence [Ext Char][`] does not generate the character '|' (decimal
  22. |> |> 124) but a character whose decimal value is 166.  I am worried since this
  23. |> |> key sequence in the only way to introduce the '|' character (very useful on
  24. |> |> Unix :-) with a French keyboard.
  25. |> |> 
  26. |> |> Have I missed something ?
  27. |> |> 
  28. |> |> Janick Taillandier
  29. |> |> jt@ratp.fr
  30. |> 
  31. |> Hi,
  32. |> I have a analogous problem.
  33. |> Same keyboard, HP720 and HP-UX 8.05
  34. |> When I work in a hpterm, I obtain the pipe character "|"
  35. |> by typing  [Ext Char][`] but when I work in a xterm,
  36. |> the same sequence give me a capital i with a hat 
  37. |> something like I^ . So I compile and execute the small
  38. |> following C program 
  39. |> 
  40. |> #include <stdio.h>
  41. |> main() {
  42. |>     int c;
  43. |>     while ((c =getchar())!= EOF) {
  44. |>         printf("%d \n",c);
  45. |>     }
  46. |> }
  47. |> When I execute it in hpterm, and I type  [Ext Char][`] 
  48. |> it give me 124, fine but when I execute it in a xterm
  49. |> it give me 166. 
  50.  
  51. You have the same problem as Janick, but have the additional problem that
  52. you are using an HP ROMAN8 font with your xterm.  Character 166 in Latin 1
  53. is the broken bar character; character 166 in Roman8 is I-curcumflex (capital
  54. I with a hat).  So your Latin-1 xterm (xterm can *only* generate Latin-1)
  55. is receiving the XK_broken_bar keysym, calling XLookupString, which results
  56. in the Latin-1 character "broken bar" (value 166).  You are then telling
  57. xterm to render character code 166 with a Roman8 font; character 166 in
  58. Roman8 is I-circumflex.
  59.  
  60. So to solve your problem, use an ISO8859-1 font with your xterm.  Since
  61. the file names for the latin-1 fonts are identical in most cases to those
  62. of the Roman8 fonts, you will need to do one of the following:
  63.  
  64.   1. modify your X servers default search path
  65.     (use xset +fp /usr/lib/X11/fonts/iso_88591/75dpi)/, but do this only
  66.     if you want Latin1 for all/most clients.
  67.  
  68.   2. use an xlfd spec instead of a file name for the font resource.
  69.  
  70.   3. add an alias to /usr/lib/X11/fonts/iso_8859.1/75dpi/fonts.alias file
  71.      such as:
  72.  
  73.     my_latin1  -adobe-courier-medium-r-normal--18-180-75-75-m-110-iso8859-1
  74.      
  75.      Then force the X server to re-look at the alias file by running:
  76.  
  77.     xset fp rehash
  78.  
  79. In addition to one of the above, you still need to put the appropriate keysym
  80. in your servers keymap.  To do this:
  81.  
  82.    xmodmap -pk  (this prints out the current keymap for your X server)
  83.  
  84.    locate the keycode value on which the broken bar keysym is allocated.
  85.  
  86.    then modify the keymap by typing the following:
  87.  
  88.       xmodmap - <Return>
  89.       keycode NUMBER =  grave asterisk bar brokenbar
  90.  
  91.    I think you will find NUMBER to be 108 for the ITF French keyboard.
  92.  
  93. |> Till now, I have found no solution, if I want a pipe in
  94. |> a xterm (and I'm oblige to use xterm, because on some computer
  95. |> there is no hpterm) I have tu cut and paste from an hpterm.
  96. |> So I think my problem is very close from the one of Janick Taillandier.
  97. |> I have also red the two answers of Arne Thormodsen and, may be I'm not
  98. |> so smart, but I don't see the solution.
  99. |> Hope this will help to fix the problem
  100. |>   
  101. |> 
  102. |> -- 
  103. |> Umberto D'Ortona (umberto@aomc.jussieu.fr)
  104. |> Labo. AOMC   Universite  P.  et  M.  Curie 
  105. |> 4  Pl Jussieu  75252 Paris Cedex 5  FRANCE
  106. |> Tel: 33 1 44274529      Fax: 33 1 44273854
  107. |> 
  108.  
  109. Good luck,
  110.  
  111. Tom McFarland
  112.