Re: Weird problem in xvile - I can't enter a '>' character

2024-03-12 Thread Chris Green
On Tue, Mar 12, 2024 at 06:10:33AM -0400, Thomas Dickey wrote:
[a wonderful explanation of it all]

> For amusement:
> 
> https://invisible-island.net/xterm/modified-keys.html
> 
:-)

-- 
Chris Green



Re: Weird problem in xvile - I can't enter a '>' character

2024-03-12 Thread Thomas Dickey
On Tue, Mar 12, 2024 at 09:11:32AM +, Chris Green wrote:
> On Tue, Mar 12, 2024 at 02:25:59PM +1100, Brendan O'Dea wrote:
> > On Tue, 12 Mar 2024 at 02:28, Chris Green  wrote:
> > >
> > > If I comment out the line:-
> > >
> > > keysym period = period rightcaret U25B6 NoSymbol
> > >
> > > then the > key works again in xvile.  However I really don't see why
> > > the above line breaks xvile, no other programs (or none I can find
> > > anyway) are affected in the same way.  The U25B6 character works in
> > > xvile as does 'period' (I'd really miss that one!).
> > 
> > Maybe try :
> > 
> > keysym period = period greater U25B6 NoSymbol
> > 
> > On my machine, where I haven't remapped that key I get this:
> > 
> >   % xmodmap -pk | fgrep period
> >  600x002e (period) 0x003e (greater) 0x002e (period) 0x003e 
> > (greater)
> > 
> Yes, brilliant! Thank you.  It now works.
> 
> I don't know where I got rightcaret from.  It's always the most
> difficult bit when playing with character mapping, finding the right
> names.

xmodmap uses the names defined in the X keyboard map files.
Those start with a grid location, i.e., the "AB09" in this chunk:

key  { [ comma,   less,  ccedilla, Ccedilla ] };
key  { [period,greater, dead_abovedot,   dead_caron ] };
key  { [ slash,   question,  questiondown,dead_hook ] };
key  { [ backslash,bar,   notsign,brokenbar ] };

The symbols match up with /usr/include/X11/keysymdef.h, which has a bunch
of non-character codes, plus ISO-8859-1 and its friends.  There's a nice
comment in the file which explains how it relates to Unicode.

Locations that didn't right nicely into a uniform grid have special names such
as "BKSL".

The names can differ according to the keyboard map.  You can get some insight
by seeing how they're used, e.g., in /usr/share/X11/xkb (Debian):

Looking for rightcaret, I see only a few references:

symbols/my:98:key  { [Arabic_comma, rightcaret] };
symbols/in:1581:key  { [ U002E,  U0C19, 
rightcaret  ] }; // . ఙ >
symbols/us:83:key  {[ leftcaret,rightcaret ]   };

The last is plausible, but see its definition:

partial alphanumeric_keys
xkb_symbols "ibm238l" {

include "us(basic)"
name[Group1]= "English (US, IBM Arabic 238_L)";

key  {[ comma,comma  ]   };
key  {[period,period ]   };
key  {[ quoteleft,asciitilde ]   };
key  {[ backslash,bar]   };
key  {[ leftcaret,rightcaret ]   };
};

That "ibm238l" looks odd - that's used in a few places:

rules/base.extras.xml:463:ibm238l
rules/evdev.extras.xml:463:ibm238l
symbols/sun_vndr/us:63: xkb_symbols "ibm238l" {
symbols/sun_vndr/us:64: include "us(ibm238l)"
symbols/us:74:xkb_symbols "ibm238l" {

and none of those seem plausible.  Perhaps this used a customized keyboard
map which was wiped out by an upgrade.

"greater" is easier to follow, there are more than 300 references, e.g.,

symbols/us:53:key  {  [period,greater ]   };
symbols/us:138:key  { [period,greater, dead_abovedot,   
dead_caron ] };
symbols/us:194:  key  { [ period, greater, dead_abovedot, 
dead_circumflex ] };
symbols/us:224:key  { [  period,  greater, dead_abovedot, 
periodcentered  ] };
symbols/us:288:key  { [period,greater, dead_abovedot,   
dead_caron ] };
symbols/us:352:key  { [period, greater, ecircumflex,   
periodcentered ] };
symbols/us:403:key  { [  period,  greater ]   };
symbols/us:454:key  { [  period,  greater ]   };

When you use xmodmap, you're basically telling it to reinterpret one of those
table entries.  So... when you're puzzled, finding the relevant table can
help.

For amusement:

https://invisible-island.net/xterm/modified-keys.html

-- 
Thomas E. Dickey 
https://invisible-island.net


signature.asc
Description: PGP signature


Re: Weird problem in xvile - I can't enter a '>' character

2024-03-12 Thread Chris Green
On Tue, Mar 12, 2024 at 02:25:59PM +1100, Brendan O'Dea wrote:
> On Tue, 12 Mar 2024 at 02:28, Chris Green  wrote:
> >
> > If I comment out the line:-
> >
> > keysym period = period rightcaret U25B6 NoSymbol
> >
> > then the > key works again in xvile.  However I really don't see why
> > the above line breaks xvile, no other programs (or none I can find
> > anyway) are affected in the same way.  The U25B6 character works in
> > xvile as does 'period' (I'd really miss that one!).
> 
> Maybe try :
> 
> keysym period = period greater U25B6 NoSymbol
> 
> On my machine, where I haven't remapped that key I get this:
> 
>   % xmodmap -pk | fgrep period
>  600x002e (period) 0x003e (greater) 0x002e (period) 0x003e 
> (greater)
> 
Yes, brilliant! Thank you.  It now works.

I don't know where I got rightcaret from.  It's always the most
difficult bit when playing with character mapping, finding the right
names.

-- 
Chris Green



Re: Weird problem in xvile - I can't enter a '>' character

2024-03-11 Thread Brendan O'Dea
On Tue, 12 Mar 2024 at 02:28, Chris Green  wrote:
>
> If I comment out the line:-
>
> keysym period = period rightcaret U25B6 NoSymbol
>
> then the > key works again in xvile.  However I really don't see why
> the above line breaks xvile, no other programs (or none I can find
> anyway) are affected in the same way.  The U25B6 character works in
> xvile as does 'period' (I'd really miss that one!).

Maybe try :

keysym period = period greater U25B6 NoSymbol

On my machine, where I haven't remapped that key I get this:

  % xmodmap -pk | fgrep period
 600x002e (period) 0x003e (greater) 0x002e (period) 0x003e (greater)

--bod



Re: Weird problem in xvile - I can't enter a '>' character

2024-03-11 Thread Chris Green
On Mon, Mar 11, 2024 at 02:37:56PM +, Chris Green wrote:
> On Mon, Mar 11, 2024 at 10:26:07AM -0400, Thomas Dickey wrote:
> > On Mon, Mar 11, 2024 at 10:16:08AM -0400, Paul Fox wrote:
> > > chris wrote:
> > >  > I don't use xvile all that much, I use vile in a terminal window most
> > >  > of the time, however I do sometimes find I need to use xvile.
> > >  > 
> > >  > I've just found that the > character doesn't work in xvile.  This
> > >  > seems to be the same on both version 9.8v and 9.8y running on two
> > >  > different xubuntu systems.
> > >  > 
> > >  > The > character works fine everwhere else, in vile, in the terminal
> > >  > window, in browser windows, etc.
> > >  > 
> > >  > I've tried changing font selection but that didn't help.
> > >  > 
> > >  > I *can* enter a > by typing x3e.
> > >  > 
> > >  > Any ideas how to diagnose this?
> > > 
> > > Perhaps not much help, but:  works for me, 9.8v on Ubuntu.
> > 
> > same here.
> > 
> > I'd suspect locale-related problems (e.g., the keyboard configuration).
> > Some environments tend to switch my keyboard settings to UK - perhaps
> > you have the complementary problem of switching to US?
> 
> Yes, it really has to be something in my environment as otherwise I'm
> sure other people would be reporting the same problem. I've tried
> changing user and that hasn't helped though.
> 
Well I have found what causes the problem but I don't understand why
or how to fix it.

I have a .Xmodmap file as follows:-

! pointer = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 
25 26 27 28 29 30 31 32
!
!
! Set 'Windows' key to Multi_key, for accented characters etc.
!
keycode 133 = Multi_key
!
!
! Set AltGr to be Mode_switch key
!
keycode 108 = Mode_switch Mode_switch
!
!
! Add a few special characters using the Mode_switch key (which is
'Alt Gr')
!
keysym period = period rightcaret U25B6 NoSymbol
keysym slash = slash question U2714 U2714
keysym 3 = 3 U00A3 U20AC U20AC
!
!
! Prevent shifted space from giving nobreakspace, but leave with
Mode_switch key
!
keycode 65 = space space nobreakspace nobreakspace
!
!
! Stop CapsLock from doing CapsLock (xbindkeys makes it paste)
!
clear lock
keycode 66 = NoSymbol NoSymbol NoSymbol NoSymbol


If I comment out the line:-

keysym period = period rightcaret U25B6 NoSymbol

then the > key works again in xvile.  However I really don't see why
the above line breaks xvile, no other programs (or none I can find
anyway) are affected in the same way.  The U25B6 character works in
xvile as does 'period' (I'd really miss that one!).

The 'keysym slash = slash question U2714 U2714' works as expected in
xvile so it's not a general problem with using keysym.

I don't actually use the added ▶ character much so I won't really miss
that line all that much.  It's still rather puzzling though!

-- 
Chris Green



Re: Weird problem in xvile - I can't enter a '>' character

2024-03-11 Thread Gary Jennejohn
On Mon, 11 Mar 2024 10:16:08 -0400
Paul Fox  wrote:

> chris wrote:
>  > I don't use xvile all that much, I use vile in a terminal window most
>  > of the time, however I do sometimes find I need to use xvile.
>  >
>  > I've just found that the > character doesn't work in xvile.  This
>  > seems to be the same on both version 9.8v and 9.8y running on two
>  > different xubuntu systems.
>  >
>  > The > character works fine everwhere else, in vile, in the terminal
>  > window, in browser windows, etc.
>  >
>  > I've tried changing font selection but that didn't help.
>  >
>  > I *can* enter a > by typing x3e.
>  >
>  > Any ideas how to diagnose this?
>
> Perhaps not much help, but:  works for me, 9.8v on Ubuntu.
>

Similar for me, but xvile version 9.8y for freebsd15.0.

I use xvile to compose my e-mails and often have to add >'s when I
respond to e-mails.

--
Gary Jennejohn



Re: Weird problem in xvile - I can't enter a '>' character

2024-03-11 Thread Chris Green
On Mon, Mar 11, 2024 at 10:26:07AM -0400, Thomas Dickey wrote:
> On Mon, Mar 11, 2024 at 10:16:08AM -0400, Paul Fox wrote:
> > chris wrote:
> >  > I don't use xvile all that much, I use vile in a terminal window most
> >  > of the time, however I do sometimes find I need to use xvile.
> >  > 
> >  > I've just found that the > character doesn't work in xvile.  This
> >  > seems to be the same on both version 9.8v and 9.8y running on two
> >  > different xubuntu systems.
> >  > 
> >  > The > character works fine everwhere else, in vile, in the terminal
> >  > window, in browser windows, etc.
> >  > 
> >  > I've tried changing font selection but that didn't help.
> >  > 
> >  > I *can* enter a > by typing x3e.
> >  > 
> >  > Any ideas how to diagnose this?
> > 
> > Perhaps not much help, but:  works for me, 9.8v on Ubuntu.
> 
> same here.
> 
> I'd suspect locale-related problems (e.g., the keyboard configuration).
> Some environments tend to switch my keyboard settings to UK - perhaps
> you have the complementary problem of switching to US?

Yes, it really has to be something in my environment as otherwise I'm
sure other people would be reporting the same problem. I've tried
changing user and that hasn't helped though.

-- 
Chris Green



Re: Weird problem in xvile - I can't enter a '>' character

2024-03-11 Thread Thomas Dickey
On Mon, Mar 11, 2024 at 10:16:08AM -0400, Paul Fox wrote:
> chris wrote:
>  > I don't use xvile all that much, I use vile in a terminal window most
>  > of the time, however I do sometimes find I need to use xvile.
>  > 
>  > I've just found that the > character doesn't work in xvile.  This
>  > seems to be the same on both version 9.8v and 9.8y running on two
>  > different xubuntu systems.
>  > 
>  > The > character works fine everwhere else, in vile, in the terminal
>  > window, in browser windows, etc.
>  > 
>  > I've tried changing font selection but that didn't help.
>  > 
>  > I *can* enter a > by typing x3e.
>  > 
>  > Any ideas how to diagnose this?
> 
> Perhaps not much help, but:  works for me, 9.8v on Ubuntu.

same here.

I'd suspect locale-related problems (e.g., the keyboard configuration).
Some environments tend to switch my keyboard settings to UK - perhaps
you have the complementary problem of switching to US?

-- 
Thomas E. Dickey 
https://invisible-island.net


signature.asc
Description: PGP signature


Re: Weird problem in xvile - I can't enter a '>' character

2024-03-11 Thread Paul Fox
chris wrote:
 > I don't use xvile all that much, I use vile in a terminal window most
 > of the time, however I do sometimes find I need to use xvile.
 > 
 > I've just found that the > character doesn't work in xvile.  This
 > seems to be the same on both version 9.8v and 9.8y running on two
 > different xubuntu systems.
 > 
 > The > character works fine everwhere else, in vile, in the terminal
 > window, in browser windows, etc.
 > 
 > I've tried changing font selection but that didn't help.
 > 
 > I *can* enter a > by typing x3e.
 > 
 > Any ideas how to diagnose this?

Perhaps not much help, but:  works for me, 9.8v on Ubuntu.


=--
paul fox, p...@foxharp.boston.ma.us (arlington, ma, where it's 41.6 degrees)