Using the same keyboard in GTK and CLI apps

Please post any bugs you have found
Message
Author
User avatar
tallboy
Posts: 1760
Joined: Tue 21 Sep 2010, 21:56
Location: Drøbak, Norway

#21 Post by tallboy »

Setting the correct keyboard is important, there are differences between the layouts that can give incorrect results from a keypress.
Attachments
xkb-config.jpg
(35.49 KiB) Downloaded 327 times
keyboards.jpg
(56.49 KiB) Downloaded 340 times
True freedom is a live Puppy on a multisession CD/DVD.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#22 Post by musher0 »

Indeed, tallboy.

Seeing those captures yoou provided reminds me of one thing Puppyists ( including
me ) often forget: defining the Compose key.

Using the Compose key allows the user to type accents or symbols that are not used
often ( Yen, Euro, " ë" or other "extreme Unicode" characters ), and are not
represented visually on one's national keyboard.

Various resources about the Compose key in Linux:
https://help.gnome.org/users/gnome-help ... rs.html.en
http://wiki.wlug.org.nz/ComposeKey

and more generally:
http://www.info.com/searchw?qkw=unicode ... &qhqn=&KW=

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#23 Post by musher0 »

"musher0 ? You should have been a detective!!!" :lol:
°°°°°°°°°°°°°°°°°°°°°°°°°°°
Hello all!

I finally found the bug: it was urxvt!!!

I compiled an old but still ongoing standard, because I read on the Web that it
could deal with all sorts of character sets: MLTERM, and it worked.

Proof attached!

Many, many thanks to all who helped. You helped me to better formulate the
questions that I asked the search engines.

As you all know, "Find the right question to ask and you'll find the right answer."
I can't remember which wise nation came up with this proverb, but it is so true.

I still can't believe that such an old and trusted friend as urxvt would let me down...

I'm still very very new to mlterm, but here is the wrapper I used to get the terminal
in the screen capture:

Code: Select all

#!/bin/bash
# lance-mlterm.sh
####
mlterm -b Sienna4 -f cornsilk -r 50 -o 1 -O right -0 NavajoWhite4 -w 13 -T mlterm-3.8.8 -l 2000
* and then I typed < joe > to run my editor.

I'll have to adapt all my wrappers in upupbb32-light from urxvt to mlterm, but I don't
care! The solution has been found!!! I can now write in my language in both GTK
and CLI apps with the same familiar keyboard!

« Youppi ! » :D

TWYL

~~~~~~~~~~~~~~~
* An explanation of those settings can be found here. As you will see, MLterm offers a lot of
settings; it is a very powerful terminal app.

PS --
As a concluding note, I would like to mention that the ca keyboard is considered in
some quarters as one of the most accomplished keyboards based on the Latin alphabet.
Some specialists in France envy its completeness and have expressed a desire for
something like it for their AZERTY keyboard.

Indeed, not only can it accommodate Canadian French, but it also has variants for
Inuktitut ( the language of the Inuit ), some Aboriginal languages ( e.g. Secwepemctsin,
Kutenai ), a number of Western-European languages (when choosing one of its "multi"
variants ), as well as for Canadian English. It's called the "ca" keyboard for a reason! :)

OS-wise, it has variants for the OLPC and Sun systems, not only for Linux.
Attachments
RALT_and_Cy.jpg
It was impossible to access the fancy characters under urxvt-9.22 in UpupBB32-light, because in urxvt,
the dead keys aren't dead and the Alt keys do nothing. From MLTERM, it can be done.
(148.5 KiB) Downloaded 338 times
Enfin-des-accents-en-console.jpg
Accented characters in the joe CLI editor shown below were obtained typing the same key combos as in geany, thanks to MLTERM.
(24.77 KiB) Downloaded 343 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
tallboy
Posts: 1760
Joined: Tue 21 Sep 2010, 21:56
Location: Drøbak, Norway

#24 Post by tallboy »

The compose key is very useful in a forum, where you cannot make indentations or multiple empty spaces between words. Well, you can always make them when you edit a post, but the forum automatically close those empty spaces down to the width of one letter.
Exept when you use the       compose      key.      Sometimes        useful, but it takes some time, because to make one empty letter space, you have to press and hold the left win key, then press the space twice, then release the left win. And you have to do that sequence      over     and      over       again, for every little            (or not so little)    space.

I normally set the compose key to Right Win, but in Dpup Stretch-7.5 it is already set to view the main Menu, so I use the Left Win instead. The local menu is set to the menu key.
True freedom is a live Puppy on a multisession CD/DVD.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#25 Post by musher0 »

Hi tallboy.

It's nice to hear a report about the Compose key from someone with experience of it. As for
me, I have never used it. First, I learned it existed doing the research for this thread, and
second, the idea of typing complicated keystrokes never appealed to me.

Before I discovered the Compose key, some time ago, a friend tried to teach me how to
type Unicode sequences directly and I panicked!

Can you explain a little more what different characters you can type with this technique?
I think not many people know of it. It is really useful, yes?

TIA.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply