all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ilya Zakharevich <ilya@math.berkeley.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 23251@debbugs.gnu.org, Josko <jjezina@hotmail.com>
Subject: bug#23251: 25.0.92; M-< and M-> don't work with Croatian keyboard
Date: Wed, 13 Apr 2016 22:37:13 -0700	[thread overview]
Message-ID: <20160414053713.GA29979@math.berkeley.edu> (raw)
In-Reply-To: <20160410194605.GA11948@math.berkeley.edu>

On Sun, Apr 10, 2016 at 12:46:05PM -0700, Ilya Zakharevich wrote:
> keyboards define the ISO key identically:
>    Base	  → <
>    Shift  → >
>    Ctrl	  → FS=^\
> 
> There is no special binding for any other key (including any Alt).
> Both keyboards look as having the bit KLLF_ALTGR (sp?) defined (but
> probably MSKLC would lie about this!). 

      Explanation for enquiring minds:
      ================================

OK, the reason for a peculiar behaviour of these keys is that they are
SECONDARY keypresses which produce the same character.  So:
  • The “more bullet-proofish” branch in my patch cannot handle such
    keyspresses, and
  • the fallback (“to assume that every modifier keys DID contribute¹⁾
    to the generation of the character”) turned out to be too
    simple-minded (for this unexpectedly frequent situation).

      ¹⁾ On Windows, for typical layouts, Alt (NOT AltGr!) and Win
         modifiers would not affect the generated character.

This behaviour of layouts is a little bit more widespread than what I
expected.  So far I found following pairs:

	    Primary 	  	    Secondary	      Generate
  Czech:    AltGr-Q, AltGr-W	    ISO, Shift-ISO     \, |
  Croat:    AltGr-Q, AltGr-W	    US-\, US-|         \, |
  Croat:    AltGr-., AltGr-, 	    ISO, Shift-ISO     <, >
  Slovak:   AltGr-z  		    AltGr-,	       >
  Slovak:   AltGr-.  		    AltGr-ISO	       <
  C-Y:	    US-/, US-|		    ISO, Shift-ISO     \, |

(The last row is for Czech-QUERTY, but also for most US-compatible
keyboards.)  Here US-foo means “the keypress producing ‘foo’ on US
keyboard”.

Also, on Czech-QUERTY, the following characters allow AltGr access
(“A-” below) at the “US layout locations”; together with
Czech-layout-specific keypresses, this creates duplication as (AFAIK):

  Primary:	US-!    US-`    A-US-_  A-US-:  US-<     US--     A-US--
  Secondary:    A-US-+  A-US-;  US-?    US->    A-US-?   A-US-=   US-/
  Produce:      +       ;       _       :       ?        =        -

This creates a significant mess if one wants to allow using the
secondary locations with Alt modifier (for example, to generate Meta-;
by Alt-AltGr-;).  It does not look like a small workaround is possible
(which does not break OTHER usage scenarios).

Ilya

P.S.  I know a medium-sized workaround which would improve OTHER cases
      as well.  But it cannot be ready in a day or two!]





  parent reply	other threads:[~2016-04-14  5:37 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-09 15:17 bug#23251: 25.0.92; M-< and M-> don't work with Croatian keyboard Josko
2016-04-09 16:33 ` Eli Zaretskii
     [not found]   ` <SN1PR10MB0655320C4FC1DAF4D6656B10B6920@SN1PR10MB0655.namprd10.prod.outlook.com>
2016-04-10  2:38     ` Eli Zaretskii
2016-04-10 19:27       ` Ilya Zakharevich
2016-04-10 19:46         ` Ilya Zakharevich
     [not found]           ` <SN1PR10MB0655807651B404FEE9568C41B6940@SN1PR10MB0655.namprd10.prod.outlook.com>
2016-04-12 17:59             ` Ilya Zakharevich
2016-04-12 18:43             ` Ilya Zakharevich
2016-04-14  5:37           ` Ilya Zakharevich [this message]
2016-04-14 15:21             ` Eli Zaretskii
2016-04-17  3:47               ` Ilya Zakharevich
2016-04-17  3:56                 ` Ilya Zakharevich
2016-04-17 14:48                 ` Eli Zaretskii
     [not found]                   ` <SN1PR10MB065553E636A5FED800084045B66C0@SN1PR10MB0655.namprd10.prod.outlook.com>
2016-04-21 16:12                     ` Eli Zaretskii
2016-04-23 15:56                       ` Josko
2016-04-23 17:56                         ` Eli Zaretskii
2016-04-23 21:34                         ` John Wiegley
2016-04-21 16:10                 ` Eli Zaretskii
2016-04-17  3:40             ` Ilya Zakharevich
2016-04-09 16:37 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160414053713.GA29979@math.berkeley.edu \
    --to=ilya@math.berkeley.edu \
    --cc=23251@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=jjezina@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.