- Subject: Re: How to access combined characters
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Sun, 11 Jun 2006 00:22:03 -0400
Jörg Sommer <joerg@xxxxxxxxxxxx> wrote:
>how can I delete the underlining in
>
>t̲h̲i̲s̲ ̲t̲e̲s̲t̲ ̲i̲s̲ ̲u̲n̲d̲e̲r̲l̲i̲n̲e̲d̲
This is one of the things that need to be worked out in the 0.99-19
development series. Until a nice intuitive interface is available,
here are a few functions that may help:
% This function should be made a slang-intrinsic.
define str2chars (str)
{
variable wch, wchars = Long_Type[0];
foreach wch (str) using ("chars")
wchars = [wchars, wch];
return wchars;
}
define what_wchars ()
{
push_spot ();
push_mark ();
go_right(1);
variable wchars = str2chars (bufsubstr ());
pop_spot ();
return wchars;
}
define delete_combining ()
{
variable wchars = what_wchars ();
if (length (wchars) < 2)
return;
del ();
insert_char (wchars[0]);
go_left (1);
}
--John
--------------------------
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]