Bug 1031 - ps2ascii: doesn\'t work
Summary: ps2ascii: doesn\'t work
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: ghostscript (show other bugs)
Version: unstable
Hardware: all Linux
: P4 major
Assignee: Ivan Zakharyaschev
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-25 20:52 MSD by imz
Modified: 2003-08-25 15:18 MSD (History)
3 users (show)

See Also:


Attachments
0001031-xm.ps (deleted)
2002-06-25 20:52 MSD, imz
no flags Details
0001031-xm.tex (deleted)
2002-06-25 20:55 MSD, imz
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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\' -> 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
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