LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2021, 04:51 AM   #1
Pistrie
LQ Newbie
 
Registered: Apr 2021
Posts: 1

Rep: Reputation: Disabled
What program causes me to see a preview of the single quote I´m about to type? (layout = us intl with dead keys)


When I type a single quote like this ´ I see a preview of that character when I type it (I press ´ to type it and then space to make it appear. If I did ´+e it would create an é)

Last edited by Pistrie; 04-12-2021 at 04:53 AM.
 
Old 04-12-2021, 05:44 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
https://kbdlayout.info/features/deadkeys

If I understand it well: the X window system itself (keyboard layout manager) will handle it.
https://unix.stackexchange.com/quest...tionality-in-x
But probably you need to explain better what are you looking for.

Last edited by pan64; 04-12-2021 at 05:45 AM.
 
Old 04-12-2021, 11:31 AM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,139

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
What would you actually like it to do? Whatever you want can usually be achieved!
 
Old 04-12-2021, 12:59 PM   #4
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
You possibly have key mapping for that or are using a keyboard layout that enables the enhanced keys.

What keyboard layout do you have defined?
With gnome the settings -> region & language panel allows viewing/setting that.
 
Old 04-12-2021, 01:34 PM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
I don't think what you want is possible at all. When I type a dead key, the cursor doesn't move, and there's no visible feedback until I press another key. Only if the second key can be combined with the dead accent, the composite character is printed. Otherwise either the dead accent itself is printed, or the system waits for another key press if stacking two accents is possible.

This is how dead keys are supposed to work.

Moreover, the Compose key also works this way: the composite character appears only after all required keystrokes, but the keystrokes themselves are not echoed.

Last edited by shruggy; 04-13-2021 at 04:22 PM.
 
Old 04-13-2021, 03:29 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
The behaviour has changed recently in many gui applications like Firefox, Geany etc, to behave like OP describes it.
These two only have gtk3 as a common dependency (on my system).
I cannot see the new behaviour in any gtk2 apps.
So, the change in behaviour could have occured in GTK3 itself or one of the packages it depends on...
 
1 members found this post helpful.
Old 04-13-2021, 04:19 PM   #7
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Ah ondoho, you're right. Strangely enough, I cannot reproduce it in Firefox 78.9.0esr, but in many other GTK3 applications. I also found this post on Reddit. I don't like the patch suggested there though. The observed Firefox behavior and GTK function names like gtk_im_context_set_use_preedit let me suspect that this can be changed programmatically.

This is what GTK documentation says:
Quote:
An input method may consume multiple key events in sequence and finally output the composed result. This is called preediting, and an input method may provide feedback about this process by displaying the intermediate composition states as preedit text. For instance, the default GTK input method implements the input of arbitrary Unicode code points by holding down the Control and Shift keys and then typing “U” followed by the hexadecimal digits of the code point. When releasing the Control and Shift keys, preediting ends and the character is inserted as text. Ctrl+Shift+u20AC for example results in the € sign
Interestingly, Ctrl+Shift+u... works as described in Firefox, too.

Last edited by shruggy; 04-13-2021 at 04:32 PM.
 
  


Reply

Tags
deadkeys



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setxkbmap with us altgr-intl layout and altwin:swap_alt_win LonelyStar Linux - Server 1 04-05-2015 04:46 PM
[SOLVED] How to see a keyboard layout preview on linux? JohnV2 Linux - Software 7 08-30-2013 05:18 AM
[SOLVED] How to pass a single quote inside of a single quote... trist007 Linux - Newbie 2 02-09-2011 07:07 PM
sed : Convert double quote to singe quote pgb_710 Programming 6 01-21-2010 07:59 AM
when to quote or not to quote variable names - mktemp problem glinux Linux - Newbie 3 02-20-2009 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration