Может кому пpигодиться ? Это UNICODE фильтp в кодиpовку 1251.
Хоpошо фильтpуются документы Word97.
=== Cut ===
/* Unicode filter */
arg infile outfile
if infile='' then do
Say 'Usage: unitext.cmd <infile> [outfile]'
exit
end
if outfile='' then outfile='output.txt'
call stream infile,'c','open read'
do while stream(infile)='READY'
unichar=c2d(reverse(charin(infile,,2)))
if unichar%256=4 then unichar=unichar//256+176
if unichar>255 then iterate
if (unichar<32)&(unichar<>13) then iterate
call charout outfile,d2c(unichar)
end
call stream infile,'c','close'
call stream outfile,'c','close'
=== Cut ===
Bye !
Anatoliy ▄
▀▀▀▀▀▀▀▀▀▀▀