Click the links below to explore the different sections of our site. If you have any questions about our products or services, don't hesitate to contact us.
Following are a number of links to pages that might interest you as a visitor of this web site.
copyright © 2005-07 by Mark Schonewille & Economy-x-Talk

Economy-x-Talk - Sample Scripts

Convert Garbage2Text

Sometimes, when I copy text from a PDF file, the text looks like Chinese to me --I don't understand Chinese. Once in a while, this script is able to convert this text back to readable text. If it works, the result is a file with just a few mistakes. If it doesn't work, the result is a set of hieroglyphs --which I don't understand either.





on convert
  answer file "Choose a text file..." of type "TEXT"
  put it into theFile
  open file theFile
  read from file theFile until EOF
  put it into data
  close file theFile
  repeat with x=1 to number of chars of data
    put numToChar(charToNum(char x of data) - 3) into char x of data
    if charToNum(char x of data) is 29 then put space into char x of data
  end repeat
  put ".conv" after theFile
  open file theFile
  write data to file theFile
  close file theFile
end convert





Keep this extensive resource of tutorials and samples on-line! Support RunRev.info!
Yes, this script is useful. I make a donation and choose freely how much I want to donate on-line (PayPal). Click here if you want to make a donation in dollars.This script has not (completely) solved my problem and I want Economy-x-Talk to take care of it. Let me contact you.
Copyright©2002-2008 by Mark Schonewille, Nijmegen, the Netherlands. This web site is in no way affiliated with Runtime Revolution Ltd., but we do recommend the Revolution development platform.