Bug 1031

Summary: ps2ascii: doesn\'t work
Product: Sisyphus Reporter: imz <vanyaz>
Component: ghostscriptAssignee: Ivan Zakharyaschev <imz>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P4 CC: george, kirill, vitty
Version: unstable   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
0001031-xm.ps
none
0001031-xm.tex none

Description imz 2002-06-25 20:52:12 MSD
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\' -&gt; xm.ps
&lt;texc.pro&gt;. [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
Comment 1 inger@altlinux.org 2002-06-26 12:44:45 MSD
Не соввем верно, Иван.
ps2ascii работает, но не на всех файлах

Алексей говорит что не существует единого алгоритма преобразования Postscript в plain text

Наверное dvi2ps сгенерил в данном случае postscript о котором не догадывался gs.

P.S. кстати 6.53 также не работает на это файле
Comment 2 inger@altlinux.org 2002-06-26 12:44:45 MSD
Не соввем верно, Иван.
ps2ascii работает, но не на всех файлах

Алексей говорит что не существует единого алгоритма преобразования Postscript в plain text

Наверное dvi2ps сгенерил в данном случае postscript о котором не догадывался gs.

P.S. кстати 6.53 также не работает на это файле
Comment 3 imz 2003-01-09 15:40:41 MSK
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
Comment 4 imz 2003-01-09 15:40:41 MSK
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
Comment 5 imz 2003-01-09 15:41:29 MSK
Extracting from the PS created by the new dvips works. (Not the old PS.)
Comment 6 imz 2003-01-09 15:41:29 MSK
Extracting from the PS created by the new dvips works. (Not the old PS.)
Comment 7 imz 2003-01-09 15:42:40 MSK
is not true for PS created by the new dvips
Comment 8 imz 2003-01-09 15:42:40 MSK
is not true for PS created by the new dvips