1 |
On Sunday 09 Mar 2014 09:00:23 Matti Nykyri wrote: |
2 |
> On Mar 8, 2014, at 20:44, Mick <michaelkintzios@×××××.com> wrote: |
3 |
> > On Saturday 08 Mar 2014 18:10:21 Mick wrote: |
4 |
> >> On Saturday 08 Mar 2014 17:42:07 Pavel Volkov wrote: |
5 |
> >>> On Saturday 08 March 2014 15:50:27 Mick wrote: |
6 |
> >>>> I can't understand why a PC that uses the KDE desktop always sticks an |
7 |
> >>>> |
8 |
> >>>> accented capital "A" in front of the pound sign. It looks like this: |
9 |
> >>>> £ |
10 |
> >>> |
11 |
> >>> I don't have this problem in KDE (though I'm not using UK layout to |
12 |
> >>> type it). I use the additional X.Org layout called "typo" and type the |
13 |
> >>> pound sign with AltGr+F. |
14 |
> >>> |
15 |
> >>> What tool do you use to switch keyboard layouts and what are those |
16 |
> >>> layouts? |
17 |
> >> |
18 |
> >> This machine only has UK qwerty keyboard and UK locale. I don't switch |
19 |
> >> into any other layouts. |
20 |
> >> |
21 |
> >> I've just changed the default country in the KDE locale GUI from UK to |
22 |
> >> 'No Country' and will restart the desktop as soon as I can kick a Luser |
23 |
> >> off it, to see if it works. |
24 |
> > |
25 |
> > The user logged out of KDE and back in and the darn thing still shows up. |
26 |
> > :-/ |
27 |
> > |
28 |
> > Any ideas what might be causing this? There is no problem with typing |
29 |
> > the US dollar character key (Shift+4), but there is when pressing the |
30 |
> > GBP character (Shift+3). |
31 |
> > |
32 |
> > This is what xev shows when pressing and releasing Shift plus the key: |
33 |
> > |
34 |
> > ====================================================== |
35 |
> > KeyPress event, serial 37, synthetic NO, window 0x4a00001, |
36 |
> > |
37 |
> > root 0x15b, subw 0x4a00002, time 125124784, (30,32), root:(3052,475), |
38 |
> > state 0x10, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES, |
39 |
> > XLookupString gives 0 bytes: |
40 |
> > XmbLookupString gives 0 bytes: |
41 |
> > XFilterEvent returns: False |
42 |
> > |
43 |
> > KeyPress event, serial 40, synthetic NO, window 0x4a00001, |
44 |
> > |
45 |
> > root 0x15b, subw 0x4a00002, time 125128642, (30,32), root:(3052,475), |
46 |
> > state 0x11, keycode 12 (keysym 0xa3, sterling), same_screen YES, |
47 |
> > XLookupString gives 2 bytes: (c2 a3) "£" |
48 |
> > XmbLookupString gives 2 bytes: (c2 a3) "£" |
49 |
> > XFilterEvent returns: False |
50 |
> > |
51 |
> > KeyRelease event, serial 40, synthetic NO, window 0x4a00001, |
52 |
> > |
53 |
> > root 0x15b, subw 0x4a00002, time 125128772, (30,32), root:(3052,475), |
54 |
> > state 0x11, keycode 12 (keysym 0xa3, sterling), same_screen YES, |
55 |
> > XLookupString gives 2 bytes: (c2 a3) "£" |
56 |
> > XFilterEvent returns: False |
57 |
> > |
58 |
> > KeyRelease event, serial 40, synthetic NO, window 0x4a00001, |
59 |
> > |
60 |
> > root 0x15b, subw 0x4a00002, time 125128977, (30,32), root:(3052,475), |
61 |
> > state 0x11, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES, |
62 |
> > XLookupString gives 0 bytes: |
63 |
> > XFilterEvent returns: False |
64 |
> > |
65 |
> > ====================================================== |
66 |
> |
67 |
> When you press £-symbol on your keyboard and are using a unicode keymap |
68 |
> U+00A3 unicode keypoint is created. When that is encoded to UTF-8 a 2-byte |
69 |
> string is created: 0x2CA3. Now when this string is displayed the software |
70 |
> displaying the string needs to know the encoding of the string. If it is |
71 |
> interpreted as UTF-8 string you will see: £. If it is interpreted as |
72 |
> ISO-8859-1 or CP1252 these both will produce: £. |
73 |
> |
74 |
> So what this means is that you have an in correct unicode configuration. In |
75 |
> the console I have correct unicode setup. How ever when run command |
76 |
> unicode_stop I get £ and after I run unicode_start I will get £ as I |
77 |
> should. |
78 |
> |
79 |
> When computer boots always starts with us layout and ascii map. It is upto |
80 |
> your configuration to switch to your preferred layout and charmap. |
81 |
> |
82 |
> For X set your layout in xorg.conf.d in 10-evdev.conf (XkbLayout). Then |
83 |
> test that X has the correct keyboard layout: sudo Xorg :0 -ac -terminate & |
84 |
> (sleep 4 && DISPLAY=:0.0 xterm) |
85 |
> |
86 |
> If that works you should have the right layout in kde. Deleting kde config |
87 |
> will bring you the correct layout. |
88 |
> |
89 |
> For the console set unicode aware font in conf.d/consolefont and keymap in |
90 |
> keymaps. And in rc.conf set unicode to yes. |
91 |
|
92 |
Thank you Matti! I had some deprecated syntax in /etc/locale.gen and clearly |
93 |
my UTF8 local was not being generated. As soon as I fixed that and rebooted I |
94 |
was able to type £ without  preceding it. |
95 |
|
96 |
This is a rather old machine and I have not spent much time configuring it |
97 |
over the years. It still has an old xorg.conf file which I will need to |
98 |
modify when I get a minute. |
99 |
|
100 |
Thanks again for your help. :-) |
101 |
|
102 |
-- |
103 |
Regards, |
104 |
Mick |