Re: Question about unicode support...
Brought to you by:
set
From: salvador <sal...@in...> - 2001-09-26 19:52:00
|
Grzegorz Adam Hankiewicz wrote: > On Tue, Sep 25, 2001 at 03:55:29PM -0300, salvador wrote: > > What kind of recodes? you mean like PC850->ISO-8859-1? > > Perhaps an sLisp command (RecodeBuffer from to)? > > I would use it if there was utf8. Ok, will see. Do you know about simple UTF8<->16 bits conversion routines? Perhaps Allegro code ... > BTW, what's that lemur thing? A nice project Enlisniss did for the editor, it can be used to look-up fu= nction prototypes or choose the member of a structure "on the fly", it uses gcc = to preprocess the code. Isn't ultra fast but is usable. > > You can do it with sLisp, you have GetSelection and you have RunProgr= am. > > Hmmm... I somehow doubt it. First, if I use the "Test RunProgram" slisp= > example and type "cat /home/gregorio/macros.slp", I see a few lines in = the > message window about running commands but nothing happens. Where's the > output of cat? I must check, perhaps something is broken. > Second, you cannot pipe GetSelection to the RunProgram, which is necess= ary, > because I don't see a way to create temporary files in slisp (though I = am > new at this). My proposed example tries to run Allegro's textconv tool,= > which converts stdin to stdout: > > (defmacro '_Prueba' > (eval > (InsertText (RunProgramRedir (+ "textconv -ia -ou " (GetSelection))))= > ) > ) > > Now, the editor freezes and if I run ps ux I see that GetSelection is g= iven > as an additional parameter to textconv, which is not desired. AFAICS yo= u > cannot create a temporary file, put GetSelection in it, run the command= , > get the text from the output file, delete both temporary files and repl= ace > the selection in the editor with the new output. Meaning that I am stuc= k with > the external utf8 wrapper. Will see. > > > Remember SET when I suggested about a combo-key which would word wr= ap > > > some lines of text, usually in email posts like this one? > > > > Maybe, but please first check the available options. I can add more, = but only > > if necesary. > > I only see this wordwrap option which works when I type. Is there any o= ther > available option to reformat a selection in the editor? Nope. > > Now another detail: > > I have in my todo the following: Add import/export in UNICODE/UTF-8 f= ormat. So > > you could import an UTF-8 file and then export it to UTF-8, not as co= mfortable > > as a transparent Load/Save but quite useful I think. > > Maybe you could automate the import/export when the filename contains '= =2Eutf8', > something quite standard to use. Anyway, what would you do with the non= -viewable > characters? That's why I wanted to pipe selection to an external progra= m, this > program would transform such characters to "\unumber" string, so that a= > reconversion would recover them. You shouldn't edit files that aren't really supported by your code page. But I can do the same you say ;-), what's the exact format? \u224 =3D=3D = =E1? > PD: Resist the temptation to send me copies of your mailing list answer= s :) Ok. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |