jed-users mailing list

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

word chars in UTF8?


Hitherto, I used iso-latin.sl for setting of word chars and case
definitions. Now I try xjed with UTF8 and realize that get_word_chars
will return a non-valid utf8 string. So I changed my jed.rc:

!if (_slang_utf8_ok)
  () = evalfile("iso-latin.sl");           % iso-latin1 encoding

Now, get_word_chars returns "\w".

With the definition from iso-latin, I could use constructs like

 define mark_word(word_chars)
 { 
    if (word_chars == NULL)
      word_chars = get_word_chars();
    
    skip_chars("^"+word_chars);
    if(eolp()) return push_visible_mark();
    % Find word boundaries
    bskip_chars(word_chars);
    push_visible_mark();
    skip_chars(word_chars);
 }

Will skip_chars() and bskip_chars() recognize "\w" (and similar
extensions) some day?

Is there a "canonical" way to rewrite the above UTF8-save?

Guenter


-- 
Milde ife.et.tu-dresden.de

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


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