Recent

Author Topic: Typing ^. in Linux is cumbersome, what to do?  (Read 3723 times)

Fungus

  • Sr. Member
  • ****
  • Posts: 353
Typing ^. in Linux is cumbersome, what to do?
« on: August 07, 2016, 05:40:54 pm »
In Windows when i type "^" and then "." the result is "^." but when I do this in Linux the result is ".". In order to get "^." I have to press space between the two characters. Are there any setting in Lazzie (or Linux) that can overcome this "issue"?

Danish keyboard layout btw..

Thaddy

  • Hero Member
  • *****
  • Posts: 14169
  • Probably until I exterminate Putin.
Re: Typing ^. in Linux is cumbersome, what to do?
« Reply #1 on: August 07, 2016, 06:11:52 pm »
I can't reproduce this in Linux. It is probably a user setting that causes that. Nothing to do with either fpc or Lazarus.
Specialize a type, not a var.

bylaardt

  • Sr. Member
  • ****
  • Posts: 309
Re: Typing ^. in Linux is cumbersome, what to do?
« Reply #2 on: August 07, 2016, 10:13:23 pm »
This results from the keyboard configuration, choose another input method on linux who ignores ^ as a diacritic complement. Otherwise you can keep so and when you type  '^'+'a' to get 'â'
This is a linux configuration, not lazarus or fpc: You can test it on gedit or kate to be sure.

Bart

  • Hero Member
  • *****
  • Posts: 5265
    • Bart en Mariska's Webstek
Re: Typing ^. in Linux is cumbersome, what to do?
« Reply #3 on: August 07, 2016, 10:56:35 pm »
In Windows when you compose keys (you have an interational keyboard layout), then when you press the second key, and it cannot be composed, you get separate characters.
I.e. type ^ and then a, you get â, but type ^ and then z, you get ^z.

On Linux this may not be the case.
If the first character is one that can be combined to compose, and you need it "un-composed", you need to press space after it.
At least that's how my Fedora/KDE does it, and like my old Suse/KDE did.
Since I hardly need diacritics when programming I wrote a little shell script to swicth between using standard US and US-international keyboard.

Code: [Select]
#!/bin/bash
function usage {
  echo usage: $0 on\|off
  exit 1
}

if [ -z "$1" ]; then
  usage
fi

opt=$1
if [ "$opt" = "on" ]; then
  echo setting -variant intl for X keyboard
  setxkbmap -variant intl
elif [ "$opt" = "off" ]; then
  echo turning off -variant intl for X keyboard
  setxkbmap -variant ""
else usage
fi

This was way back in Suse 10.0.
Not sure if this would still work.

Bart

Fungus

  • Sr. Member
  • ****
  • Posts: 353
Re: Typing ^. in Linux is cumbersome, what to do?
« Reply #4 on: August 08, 2016, 03:23:01 pm »
It is system wide with the exception that typing "^." in lazarus yields "." anywhere else no character comes out at all. And sadly it seems to be actually related to KDE since the issue is not present in all DE's. It's just buggering me; gotten used to the windows behaviour and old habbits are hard to change :o

Fungus

  • Sr. Member
  • ****
  • Posts: 353
Re: Typing ^. in Linux is cumbersome, what to do?
« Reply #5 on: August 09, 2016, 11:30:31 am »
If anyone could have interrest in it, the issue has been solved by enabling "dead keys" in keyboard layout settings ;D

 

TinyPortal © 2005-2018