home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / perl / 7099 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.5 KB  |  40 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!utcsri!geac!zooid!r-node!nautical!Laszlo.Herczeg
  3. From: Laszlo.Herczeg@nautical.r-node.gts.org (Laszlo Herczeg)
  4. Date: Sun, 22 Nov 92 16:36:12 EST
  5. Message-ID: <1992Nov22.163612.15510@r-node.gts.org>
  6. Organization: R-node Public Access UNIX Information System (416-249-5366)
  7. Subject: perl and Post Script
  8. Distribution: world
  9. Reply-To: Laszlo.Herczeg@nautical.r-node.gts.org (Laszlo Herczeg)
  10. X-Posting-Software: UniBoard 1.10a S/N 120921
  11. Lines: 27
  12.  
  13. Helthere!
  14.  I am a budding Perl user and I have the following question:
  15. Could someone suggest a script which converts Post Script files into
  16. simple ASCII format, stripping the formatting characters and the
  17. brackets?
  18.  
  19. I have already removed the formattimg characters with:
  20.  
  21. perl -lne "/(\(.+\))/$$ print $1 las.doc > good.doc
  22.  
  23. What I need now is to remove the () round brackets and the end of line
  24. characters which Post Script uses. (Sorry, I have no idea what they
  25. might be).
  26.  Also, there are special shorthands in Post Script, such as 256 for FI,
  27. as in "256les", which translates into "files". How do I render those
  28. back into normal characters?
  29.  
  30.  Many thanks for considering this request!
  31. Laszlo Herczeg
  32. --
  33. Laszlo Herczeg, user of the UniBoard System @ r-node.gts.org
  34. E-Mail: Laszlo.Herczeg@nautical.r-node.gts.org
  35.  
  36.  
  37. R-node Public Access Unix/BBS - Free Access to the World thru Usenet
  38.                  Data: 1-416-249-5366 (3 Lines)
  39.      Shell Accounts Available - Contact marc@r-node.gts.org
  40.