
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] Using JDIC from inside ...
- Date: Wed, 26 May 2004 21:26:01 +1000 (EST)
- From: Jim Breen <Jim.Breen@example.com>
- Subject: Re: [tlug] Using JDIC from inside ...
"Stephen J. Turnbull" <stephen@example.com> wrote:
>> Jim> I want to see how far I can push it in Tcl/Tk before going
>> Jim> into the really hard stuff.
>>
>> You should be able to push it pretty near all the way. If necessary,
>> talk to the X server over a socket. (Just kidding, but somebody just
>> went and wrote a full set of X protocol bindings in elisp. Dang!)
If, as I suspect, there is a mismatch between Tcl's selection and kterm,
that might be the LAST resort.
>> Jim> Most return text in that 'orrible C2/C3 ICCCM format.
>>
>> C2/C3?
Boo-boo. I thought I was looking at ICCCM codes when I saw these funny
thingos showing up in some snap dumps I did by passing the selection to
a C routine. Then I worked out how to print out binary field contents in
Tcl (no mean feat, as everything is in UTF8-coded strings), and it turned
out they were strings of EUC-JP, but Tcl had helpfully transformed each
byte of the EUC to UTF8 before passing it to the C module.
>> Jim> The BIG problem, is that both kterm and yudit result in the
>> Jim> selection being stripped of the first character,
>>
>> Eh, betcha A$0.05 that they use short-form ISO-2022 designation
>> sequences (eg, ESC $ B for Japanese), while the Compound Text Encoding
>> standard specifies long-form (resp. ESC $ ( B) explicitly. Or
>> something like that.
Well, kterm is handing in EUC, but with the first two bytes missing.
Yudit is now handing in Unicode codepoints in a "\unnnn" format.
>> I dunno if it has been revised recently, but the copy of ISO 2022
>> (rev. 1994) I have seems to indicate that long form is actually
>> incorrect for final bytes 'A', 'B', and 'C'.
The only ISO-2022 style I am seeing has the long shift-in sequence, and
no closure at all.
[Tcl/Tk snippet]
>> Wow, that's annoying. Even better than xroach ...
I felt like a script kiddy, who'd just released his first virus.
Cheers
Jim
--
Jim Breen http://www.csse.monash.edu.au/~jwb/
Computer Science & Software Engineering, Tel: +61 3 9905 9554
Monash University, VIC 3800, Australia Fax: +61 3 9905 5146
(Monash Provider No. 00008C) $B%8%`!&%V%j!<%s(B@$B%b%J%7%eBg3X(B
Home |
Main Index |
Thread Index