I create a simple PS from a simple LaTeX file (by running latex and dvips -o) (both attached). And ps2ascii fails on the result. Other utilities, gv work well with this file. Probably ps2ascii fails on any input file. --- $ latex xm.tex #.... $ dvips xm -o This is dvips(k) 5.86 Copyright 1999 Radical Eye Software (www.radicaleye.com) \' TeX output 2002.06.25:2015\' -> xm.ps <texc.pro>. [1] $ ps2ascii xm.ps Error: /undefined in ch-xoff Operand stack: --nostringval-- --nostringval-- --nostringval-- --nostringval-- 0 Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 2 3 %oparray_pop 2 3 %oparray_pop 2 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --nostringval-- Dictionary stack: $ gv xm.ps # works well --- $ rpm -qf $(which ps2ascii) ghostscript-7.05-alt1
Не соввем верно, Иван. ps2ascii работает, но не на всех файлах Алексей говорит что не существует единого алгоритма преобразования Postscript в plain text Наверное dvi2ps сгенерил в данном случае postscript о котором не догадывался gs. P.S. кстати 6.53 также не работает на это файле
I want to make a comment: now, with the new teTeX probably, extracting the text works. $ rpm -q tetex-dvips ghostscript tetex-dvips-2.0-alt0.5 ghostscript-7.05-alt12
Extracting from the PS created by the new dvips works. (Not the old PS.)
is not true for PS created by the new dvips