jed-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Non-ascii chars in UTF-8 mode not bindable


On 30.05.07, Jörg Sommer wrote:
> "G. Milde" <milde@xxxxxxxxxxxxxxxxxxxxx> wrote:
> >> > On 29.05.07, Jörg Sommer wrote:
> >> >
> >> >> when you run jed or xjed in utf8???mode you can't bind functions
> >> >> to non???ascii keys like °, ´ or ¬, because they are multibyte
> >> >> sequences and they start all with the same charater. If you bind
> >> >> one, you loose all other.
> >> >
> >> > I can not verify this here. 

It is really more complicated than I initially thought and a bit
strange as well.

1. I finally could verify the problem:
   
     setkey("bol", "´");
   
   blocks e.g. the "centigrade sign key" ° from working.
   
   I can re-enable it with
   
     setkey(" °", "°");

   Could this have to do with the fallback of "self_insert_cmd" for "normal"
   keys?

3. The "obvious" choice
   
     setkey("self_insert_cmd", "°");
     
   will insert a 2 byte sequence instead of the desired character.
  

3. Normally, if a multibyte sequence is bound, only the single-bit sequence
   hat starts with the same byte is "lost", e.g. setkey("bol", "^Cf");
   will not block setkey("eol", "^Cg") but setkey("bob", "^C") will fail
   than.
   
   Why is this different for multi-byte utf-8 characters?


> >> > The following code works for me in both, latin-1 and utf-8

[function set_programming_keys()]

> >> Can you still insert à, á, â and ã?

* using AltGr (right-Alt) I can insert "special chars" like "¬¹²³¼½¬æßð".
* I do not have a Compose-Key configured.
* digraph_cmd() works
* special_chars() from http::jedmodes.sf.net/mode/ch_table/ works as well
  (after disabling DFA syntax highlight).


If you find a method to loop over all relevant keystrings and do
    
    setkey(" "+str, str);

this might be a somewhat simpler workaround than the utf8_setkey() and
relations.

Guenter




Günter  

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]