Bug#1026986: console-setup: "Dead" keys do not work for Greek keyboard layout in tty

2022-12-30 Thread Παύλος Γκέσος
I confirm that all Greek characters with their accent appear normally.

It's the end of seven+ years of pain!
Thank you very much!



Bug#1026986: console-setup: "Dead" keys do not work for Greek keyboard layout in tty

2022-12-29 Thread Samuel Thibault
Παύλος Γκέσος, le jeu. 29 déc. 2022 23:37:21 +0200, a ecrit:
> > Ah, you mean that currently, shift-w produces Sigma, but that's not
> > actually useful, so we can just make it a dead key for ̈́?
> 
> Exactly!
> This is what Microsoft Windows does.
> Probably the Windows kernel has the same limitation too :-)

That's very probable, yes.

Thanks for your very precise reports :)
Samuel



Bug#1026986: console-setup: "Dead" keys do not work for Greek keyboard layout in tty

2022-12-29 Thread Παύλος Γκέσος
> Ah, you mean that currently, shift-w produces Sigma, but that's not
> actually useful, so we can just make it a dead key for ̈́?

Exactly!
This is what Microsoft Windows does.
Probably the Windows kernel has the same limitation too :-)



Bug#1026986: console-setup: "Dead" keys do not work for Greek keyboard layout in tty

2022-12-29 Thread Samuel Thibault
Παύλος Γκέσος, le jeu. 29 déc. 2022 23:08:23 +0200, a ecrit:
> > There is a workaround then.
> > The Microsoft Windows workaround:
> >
> > Press key combination Shift-w (dead key for ΅)
> > Press key y or i to get characters ΰ or ΐ.
> 
> To certify what I said about Shift-w:
> http://kbdlayout.info/kbdhe

Ah, you mean that currently, shift-w produces Sigma, but that's not
actually useful, so we can just make it a dead key for ̈́?

Samuel



Bug#1026986: console-setup: "Dead" keys do not work for Greek keyboard layout in tty

2022-12-29 Thread Samuel Thibault
Hello,

Παύλος Γκέσος, le jeu. 29 déc. 2022 23:02:55 +0200, a ecrit:
> > Yes, unfortunately that's something that the Linux kernel does not
> > support currently. It only supports one dead key press at a time.
> 
> I never imagined that for dead keys there is code in the kernel.

The whole Linux console is supported by the Linux kernel, there is no
userland code involved except for loading fonts & keyboard layouts into
the kernel.

> There is a workaround then.
> The Microsoft Windows workaround:
> 
> Press key combination Shift-w (dead key for ΅)
> Press key y or i to get characters ΰ or ΐ.
> 
> These characters are very useful in the Greek language.
> Also the implementation with the Shift-w key combination does not
> break anything as:
> key s gives char σ
> key combination Shift-s gives char Σ
> key w gives char ς
> key combination Shift-w gives char Σ again

I don't understand: in what you described, shift-w is used both for dead
key for ΅ and for producing Σ ?

Or did you mean shift-; above?

Samuel



Bug#1026986: console-setup: "Dead" keys do not work for Greek keyboard layout in tty

2022-12-29 Thread Παύλος Γκέσος
> There is a workaround then.
> The Microsoft Windows workaround:
>
> Press key combination Shift-w (dead key for ΅)
> Press key y or i to get characters ΰ or ΐ.

To certify what I said about Shift-w:
http://kbdlayout.info/kbdhe



Bug#1026986: console-setup: "Dead" keys do not work for Greek keyboard layout in tty

2022-12-29 Thread Παύλος Γκέσος
> Yes, unfortunately that's something that the Linux kernel does not
> support currently. It only supports one dead key press at a time.

I never imagined that for dead keys there is code in the kernel.

There is a workaround then.
The Microsoft Windows workaround:

Press key combination Shift-w (dead key for ΅)
Press key y or i to get characters ΰ or ΐ.

These characters are very useful in the Greek language.
Also the implementation with the Shift-w key combination does not
break anything as:
key s gives char σ
key combination Shift-s gives char Σ
key w gives char ς
key combination Shift-w gives char Σ again (this duplication does not
exist on Microsoft Windows as it is a dead key)

Advantages:
- Very useful Greek keyboard characters will be implemented.
Everything is better than nothing.
- Only one dead key, as the kernel permits.
- It will not create significant confusion for users because it is the
same keyboard layout as the equivalent of Microsoft Windows.

Disadvantages:
- X has another key combination: ; Shift-; y instead of Shit-w y. This
will be a bit confusing for users, but consider that now these useful
characters are not EVEN available in tty!

Any thoughts?



Bug#1026986: console-setup: "Dead" keys do not work for Greek keyboard layout in tty

2022-12-29 Thread Samuel Thibault
Hello,

Παύλος Γκέσος, le mar. 27 déc. 2022 11:08:02 +0200, a ecrit:
> The following functionality is not fixed:
> 
> WHAT MUST HAPPEN:
> Type KEY   ; (in Greek is the CHAR "'") - This is a
> "dead" key and nothing happens
> Type KEY COMBINATION Shift-; (in Greek is the CHAR """) - This is a
> "dead" key and nothing happens
> Type KEY   y (in Greek is the CHAR "υ"). The CHAR "ΰ"
> must appear in tty (you have it with Alt+0944 key combination)

Yes, unfortunately that's something that the Linux kernel does not
support currently. It only supports one dead key press at a time.

Samuel



Bug#1026986: console-setup: "Dead" keys do not work for Greek keyboard layout in tty

2022-12-26 Thread Samuel Thibault
Hello,

Pavlos Gkesos, le dim. 25 déc. 2022 19:36:15 +0200, a ecrit:
> I remember this annoying issue, in all Debian based distros, at least for the 
> last 7 years.

Apparently it hasn't been reported for that much time, so... ;)

> Type KEY a (in Greek is the CHAR "α"). Two CHARs "'α" appear in tty - WRONG! 
> (This is not 'α but ά)

Oh, indeed, diacritics were completely broken with a newer perl version,
and broken in utf-8 mode. I have fixed it in version 1.213.

Samuel



Bug#1026986: console-setup: "Dead" keys do not work for Greek keyboard layout in tty

2022-12-25 Thread Pavlos Gkesos
Package: console-setup
Version: 1.205
Severity: normal
X-Debbugs-Cc: gessos.p...@gmail.com

Dear Maintainer,

I remember this annoying issue, in all Debian based distros, at least for the 
last 7 years.


Initial Conditions:

There is no X. I have only the tty.
(Or there is a desktop environment installed but I am in the tty via 
Alt-Ctrl-Fx)

I have 2 keyboard layouts "en,gr".
With Alt-Shift key combination I AM IN GREEK KEYBOARD LAYOUT NOW.


What MUST BE HAPPEN:

Type KEY ; (in Greek is the CHAR "'") - This is a "dead" key and nothing happens
Type KEY a (in Greek is the CHAR "α"). The CHAR "ά" must appear in tty (you 
have it with Alt+0940 key combination)

Type KEY COMBINATION Shift-; (in Greek is the CHAR """) - This is a "dead" key 
and nothing happens
Type KEY   i (in Greek is the CHAR "ι"). The CHAR "ϊ" must 
appear in tty (you have it with Alt+0970 key combination)

Type KEY   ; (in Greek is the CHAR "'") - This is a "dead" key 
and nothing happens
Type KEY COMBINATION Shift-; (in Greek is the CHAR """) - This is a "dead" key 
and nothing happens
Type KEY   y (in Greek is the CHAR "υ"). The CHAR "ΰ" must 
appear in tty (you have it with Alt+0944 key combination)

More info here under the header "Greek" (plain):
http://kbdlayout.info/features/deadkeys


What REALLY HAPPENS

Type KEY ; (in Greek is the CHAR "'") - This is a "dead" key and nothing 
happens - CORRECT
Type KEY a (in Greek is the CHAR "α"). Two CHARs "'α" appear in tty - WRONG! 
(This is not 'α but ά)

Type KEY COMBINATION Shift-; (in Greek is the CHAR """) - This is a "dead" key 
and nothing happens - CORRECT
Type KEY   i (in Greek is the CHAR "ι"). Two CHARs ""ι" appear 
in tty - WRONG! (This is not "ι but ϊ)

Type KEY   ; (in Greek is the CHAR "'") - This is a "dead" key 
and nothing happens - CORRECT
Type KEY COMBINATION Shift-; (in Greek is the CHAR """) - The CHAR "'" appears 
in tty - WRONG! (This is a "dead" key and nothing must be happen)
Type KEY   y (in Greek is the CHAR "υ"). Two CHARx ""υ" appear 
in tty - WRONG! (This is not '"υ but ΰ)




-- System Information:
Debian Release: 11.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-20-amd64 (SMP w/4 CPU threads)
Locale: LANG=el_GR.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages console-setup depends on:
ii  console-setup-linux 1.205
ii  debconf 1.5.77
ii  keyboard-configuration  1.205
ii  xkb-data2.29-2

console-setup recommends no packages.

Versions of packages console-setup suggests:
ii  locales   2.31-13+deb11u5
ii  lsb-base  11.1.0

Versions of packages keyboard-configuration depends on:
ii  debconf 1.5.77
ii  liblocale-gettext-perl  1.07-4+b1

Versions of packages console-setup-linux depends on:
ii  init-system-helpers 1.60
ii  kbd 2.3.0-3
ii  keyboard-configuration  1.205

console-setup-linux suggests no packages.

Versions of packages console-setup is related to:
pn  console-common
pn  console-data  
pn  console-tools 
pn  gnome-control-center  
ii  kbd   2.3.0-3
ii  systemd   247.3-7+deb11u1

-- debconf information:
* keyboard-configuration/model: Generic 105-key PC (intl.)
* keyboard-configuration/other:
  keyboard-configuration/unsupported_options: true
* keyboard-configuration/layout:
* keyboard-configuration/layoutcode: us,gr
* keyboard-configuration/optionscode: 
grp:alt_shift_toggle,lv3:ralt_alt,grp_led:scroll
* console-setup/charmap47: UTF-8
* console-setup/fontsize-fb47: 8x16
  console-setup/fontsize: 8x16
  console-setup/store_defaults_in_debconf_db: true
  keyboard-configuration/unsupported_config_layout: true
  console-setup/use_system_font:
  console-setup/fontsize-text47: 8x16
  console-setup/codesetcode: Greek
  keyboard-configuration/ctrl_alt_bksp: false
  keyboard-configuration/unsupported_layout: true
* keyboard-configuration/toggle: Alt+Shift
* keyboard-configuration/variantcode: ,
  keyboard-configuration/unsupported_config_options: true
  console-setup/framebuffer_only:
* console-setup/codeset47: # Greek
* keyboard-configuration/switch: No temporary switch
  debian-installer/console-setup-udeb/title:
* keyboard-configuration/compose: No compose key
* keyboard-configuration/store_defaults_in_debconf_db: true
* keyboard-configuration/xkb-keymap: gr
* keyboard-configuration/altgr: No AltGr key
* console-setup/fontface47: Fixed
  console-setup/guess_font:
* keyboard-configuration/modelcode: pc105
* keyboard-configuration/variant: Ελληνικό