- Subject: some UTF8 problems, one fixed
 
- From: "G. Milde" <milde@xxxxxxxxxxxxxxxxxxxxx>
 
- Date: Thu, 29 May 2008 17:17:35 +0200
 
Dear Jed users,
some UTF8 problems
a) dabrev() does not work with words containing umlauts (or other 2-byte
   chars) (Jörg reported this already).
b) quoted_insert() inserts just one byte
   so M-x quoted-insert ² is inserted as Â� (where the last character is
   illegal in utf8).
  
c) self_insert_cmd sometimes inserts an invalid (latin-1) char
   (setkey(" <ch>", "<ch>"); works) 
  
d) as soon as one 2-Byte character is defined (with setkey(),
   definekey(), ...), most (all?) other characters that start with the
   same byte in utf8 encoding loose their self-insert default behaviour.
Fix for d)
Define all printable "high-bit chars" of latin-1 as self-inserting
(adjust the range for other keyboard layouts (russian, greek,
 eastern-europe)::
  foreach $1 ([160:255])
     setkey(strcat(" ", char($1)), char($1));
     % show(char($1));
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>.
  [2008 date index]
  [2008 thread index]
  
  [Thread Prev] [Thread Next]
      
  [Date Prev] [Date Next]