Author Topic: Dash symbol with Italian keyboard and Linux (not dual boot)  (Read 5770 times)

salvomic

  • Sr. Member
  • ****
  • Posts: 290
    • View Profile
hi,
in my Gemini with Italian keyboard I have a problem with “-“ (dash symbol) in GNURoot Debian (X, graphic mode only), and also in Termux Desktop (Openbox): in XTerm there is not possible to get the dash "-".
It should be typed with FN+"." key combination  in Italian keyboard (in English layout, if I'm not in error, it is FN+O): but that combination returns a "." (the same as the dot "." returned by the key without FN), I cannot find any other dash (a part of "_" underscore: FN+"M”).
I cannot type, i.e., apt-get or name -a ..., that's I cannot use graphics in Debian (inside Android, not rooted for now, I've not still installed dual boot).

Maybe the problem is that the Italian layout is not correct in those programs.

All is ok with Android, Termux, command line programs but not in XTerm (both Openbox and GNURoot Debian X).


Any help, please?

Salvo


PS:
It is surely a problem of the layout: I had a similar problem with another tablet (there the culprit was the slash "/", another important char), see here.
« Last Edit: June 12, 2018, 11:38:13 am by salvomic »
Gemini, Psion S5 and S5mx, iPhone, iPad, Huawei MediaPad M5, some HP calculators.
Psion Fans Italia moderator

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Dash symbol with Italian keyboard and Linux (not dual boot)
« Reply #1 on: June 12, 2018, 02:04:51 pm »
Quote from: salvomic
hi,
in my Gemini with Italian keyboard I have a problem with “-“ (dash symbol) in GNURoot Debian (X, graphic mode only), and also in Termux Desktop (Openbox): in XTerm there is not possible to get the dash "-".
It should be typed with FN+"." key combination  in Italian keyboard (in English layout, if I'm not in error, it is FN+O): but that combination returns a "." (the same as the dot "." returned by the key without FN), I cannot find any other dash (a part of "_" underscore: FN+"M”).
I cannot type, i.e., apt-get or name -a ..., that's I cannot use graphics in Debian (inside Android, not rooted for now, I've not still installed dual boot).

Maybe the problem is that the Italian layout is not correct in those programs.

All is ok with Android, Termux, command line programs but not in XTerm (both Openbox and GNURoot Debian X).


Any help, please?

Salvo


PS:
It is surely a problem of the layout: I had a similar problem with another tablet (there the culprit was the slash "/", another important char), see here.

I had this problem when installing dual boot ( android + debian ) .
So, in terminal, with an external mouse I did the command man df and selected  "-" with the mouse. So, with the middle button pressed ( in terminal ) I  pasted  "-".
It is not a good solution , only a remedy.
I did the same with "/".
I did pwd command in terminal  and selected "/" with the external mouse and pasted it pressing the middle mouse button ( or the wheel  button pressed ) .
After this I was able to get the updates and load the correct keyboard.

salvomic

  • Sr. Member
  • ****
  • Posts: 290
    • View Profile
Dash symbol with Italian keyboard and Linux (not dual boot)
« Reply #2 on: June 12, 2018, 02:49:03 pm »
Quote from: galodoido
I had this problem when installing dual boot ( android + debian ) .
So, in terminal, with an external mouse I did the command man df and selected  "-" with the mouse. So, with the middle button pressed ( in terminal ) I  pasted  "-".
It is not a good solution , only a remedy.
I did the same with "/".
I did pwd command in terminal  and selected "/" with the external mouse and pasted it pressing the middle mouse button ( or the wheel  button pressed ) .
After this I was able to get the updates and load the correct keyboard.

thanks!
I'm trying just now.
I hope however a real fix and I would like to know if this is also a problem with the XSDL X Server...

Salvo

EDIT: tried, but no luck, also 'cause here in Terminal dash is ok, it isn't ok in XTerm inside X, as there were two different layout: one for CLI and one for X...
« Last Edit: June 12, 2018, 03:20:27 pm by salvomic »
Gemini, Psion S5 and S5mx, iPhone, iPad, Huawei MediaPad M5, some HP calculators.
Psion Fans Italia moderator

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Dash symbol with Italian keyboard and Linux (not dual boot)
« Reply #3 on: June 12, 2018, 09:27:29 pm »
Quote from: salvomic
Quote from: galodoido
I had this problem when installing dual boot ( android + debian ) .
So, in terminal, with an external mouse I did the command man df and selected  "-" with the mouse. So, with the middle button pressed ( in terminal ) I  pasted  "-".
It is not a good solution , only a remedy.
I did the same with "/".
I did pwd command in terminal  and selected "/" with the external mouse and pasted it pressing the middle mouse button ( or the wheel  button pressed ) .
After this I was able to get the updates and load the correct keyboard.

thanks!
I'm trying just now.
I hope however a real fix and I would like to know if this is also a problem with the XSDL X Server...

Salvo

EDIT: tried, but no luck, also 'cause here in Terminal dash is ok, it isn't ok in XTerm inside X, as there were two different layout: one for CLI and one for X...

Try my recommendation in xterm: not in terminal.
So, in xterm, with an external mouse I did the command man df and selected  "-" with the mouse. So, with the middle button pressed ( in xterm ) I  pasted  "-".
It is not a good solution , only a remedy.
I did the same with "/".
I did pwd command in xterm and selected "/" with the external mouse and pasted it pressing the middle mouse button ( or the wheel  button pressed ) .
After this I was able to get the updates and load the correct keyboard.
« Last Edit: June 12, 2018, 09:28:09 pm by galodoido »

salvomic

  • Sr. Member
  • ****
  • Posts: 290
    • View Profile
Dash symbol with Italian keyboard and Linux (not dual boot)
« Reply #4 on: June 13, 2018, 02:43:04 am »
Quote from: galodoido
Try my recommendation in xterm: not in terminal.
So, in xterm, with an external mouse I did the command man df and selected  "-" with the mouse. So, with the middle button pressed ( in xterm ) I  pasted  "-".
It is not a good solution , only a remedy.
I did the same with "/".
I did pwd command in xterm and selected "/" with the external mouse and pasted it pressing the middle mouse button ( or the wheel  button pressed ) .
After this I was able to get the updates and load the correct keyboard.

I want actually follow your advice, yes, but first I need to solve another thing: in Debian here the fonts in xterm is too small: how can I change it? Then I'll try your tips.

Salvo
Gemini, Psion S5 and S5mx, iPhone, iPad, Huawei MediaPad M5, some HP calculators.
Psion Fans Italia moderator

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Dash symbol with Italian keyboard and Linux (not dual boot)
« Reply #5 on: June 13, 2018, 07:34:43 am »
Quote from: salvomic
Quote from: galodoido
Try my recommendation in xterm: not in terminal.
So, in xterm, with an external mouse I did the command man df and selected  "-" with the mouse. So, with the middle button pressed ( in xterm ) I  pasted  "-".
It is not a good solution , only a remedy.
I did the same with "/".
I did pwd command in xterm and selected "/" with the external mouse and pasted it pressing the middle mouse button ( or the wheel  button pressed ) .
After this I was able to get the updates and load the correct keyboard.

I want actually follow your advice, yes, but first I need to solve another thing: in Debian here the fonts in xterm is too small: how can I change it? Then I'll try your tips.

Salvo

First with an external mouse you open xterm . Then click and hold control key ( ctrl ) and also at the same time you click the second button(right button  ) mouse  ( in the black screen of xterm ). A menu will appear . So, select true type fonts. Now , the xterm is already large. So,  you will create a file in your /home/user, a  file named  .Xresources ( nano .Xresources ).
You will put the lines below  in .Xresources :

XTerm*faceName:terminal
Xterm*faceSize:18
UXTerm*faceName:terminal
UXterm*faceSize:18


Save it and exit  . ( CTRL O, and CTRL X ).  Logout and login again to refect these changes. .
where "terminal" is a font ( you can select another you want ) and 18 is the size.
I  also put UXTERM , so this will correct the small size in UXterm.

Enjoy.
« Last Edit: June 13, 2018, 07:42:26 am by galodoido »

salvomic

  • Sr. Member
  • ****
  • Posts: 290
    • View Profile
Dash symbol with Italian keyboard and Linux (not dual boot)
« Reply #6 on: June 13, 2018, 09:42:11 am »
thank you!
your tips helped, a part of .Xresources that seems not to be active after logout: there are some relevant letter that are to be set small caps or big caps in your listing?
Ctrl+2nd button is ok with TrueType. I'm now also experimenting with resolution of XSDL X server...
I put a bogus file with - inside in home, so I type ls and I've there both - and / to copy/paste...

I wonder why are they / and - missing in the keyboard layout, a mystery...

Salvo
Gemini, Psion S5 and S5mx, iPhone, iPad, Huawei MediaPad M5, some HP calculators.
Psion Fans Italia moderator

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Dash symbol with Italian keyboard and Linux (not dual boot)
« Reply #7 on: June 13, 2018, 10:13:03 am »
Quote from: salvomic
thank you!
your tips helped, a part of .Xresources that seems not to be active after logout: there are some relevant letter that are to be set small caps or big caps in your listing?
Ctrl+2nd button is ok with TrueType. I'm now also experimenting with resolution of XSDL X server...
I put a bogus file with - inside in home, so I type ls and I've there both - and / to copy/paste...

I wonder why are they / and - missing in the keyboard layout, a mystery...

Salvo

Yes , correct is as below

XTerm*faceName:terminal
XTerm*faceSize:18
UXTerm*faceName:terminal
UXTerm*faceSize:18

salvomic

  • Sr. Member
  • ****
  • Posts: 290
    • View Profile
Dash symbol with Italian keyboard and Linux (not dual boot)
« Reply #8 on: June 13, 2018, 10:18:47 am »
thanks!
Gemini, Psion S5 and S5mx, iPhone, iPad, Huawei MediaPad M5, some HP calculators.
Psion Fans Italia moderator

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Dash symbol with Italian keyboard and Linux (not dual boot)
« Reply #9 on: June 13, 2018, 11:18:23 am »
Quote from: salvomic
thanks!

I forgot this command after :

xrdb -merge ~/.Xresources

salvomic

  • Sr. Member
  • ****
  • Posts: 290
    • View Profile
Dash symbol with Italian keyboard and Linux (not dual boot)
« Reply #10 on: June 13, 2018, 04:27:47 pm »
Quote from: galodoido
I forgot this command after :

xrdb -merge ~/.Xresources

Well, it worked!
Good tips by you.

I wonder if it possible to remap the keys, e.g.

! -> /
£ -> -
Two keys not often used with the two very often used.

Salvo
Gemini, Psion S5 and S5mx, iPhone, iPad, Huawei MediaPad M5, some HP calculators.
Psion Fans Italia moderator

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Dash symbol with Italian keyboard and Linux (not dual boot)
« Reply #11 on: June 13, 2018, 07:18:40 pm »
Quote from: salvomic
Quote from: galodoido
I forgot this command after :

xrdb -merge ~/.Xresources

Well, it worked!
Good tips by you.

I wonder if it possible to remap the keys, e.g.

! -> /
£ -> -
Two keys not often used with the two very often used.

Salvo


See this link :

https://askubuntu.com/questions/24916/how-d...keys-or-devices
« Last Edit: June 13, 2018, 07:23:43 pm by galodoido »

salvomic

  • Sr. Member
  • ****
  • Posts: 290
    • View Profile
Dash symbol with Italian keyboard and Linux (not dual boot)
« Reply #12 on: June 14, 2018, 02:34:18 am »
Quote from: galodoido
See this link :

https://askubuntu.com/questions/24916/how-d...keys-or-devices

thanks, I'll try in the afternoon.

salvo
Gemini, Psion S5 and S5mx, iPhone, iPad, Huawei MediaPad M5, some HP calculators.
Psion Fans Italia moderator

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Dash symbol with Italian keyboard and Linux (not dual boot)
« Reply #13 on: June 15, 2018, 02:58:55 pm »
Quote from: salvomic
Quote from: galodoido
See this link :

https://askubuntu.com/questions/24916/how-d...keys-or-devices

thanks, I'll try in the afternoon.

salvo

I think this link will help you :

https://michal.kosmulski.org/computing/arti...ayouts-xkb.html

salvomic

  • Sr. Member
  • ****
  • Posts: 290
    • View Profile
Dash symbol with Italian keyboard and Linux (not dual boot)
« Reply #14 on: June 15, 2018, 03:16:15 pm »
Quote from: galodoido
I think this link will help you :

https://michal.kosmulski.org/computing/arti...ayouts-xkb.html

Well, it is very interesting, I'll read it soon.
Maybe assigning - and / to two combination of keys we could solve the problem without change layout...

thanks!

salvo
Gemini, Psion S5 and S5mx, iPhone, iPad, Huawei MediaPad M5, some HP calculators.
Psion Fans Italia moderator