Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-24-2007, 12:57 PM   PM User | #1
dcanup
New Coder

 
Join Date: Dec 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
dcanup is an unknown quantity at this point
Conversion Technology...

I was wondering if anyone knew of any books or some good websites that explain about the conversion process. I would like to start making some simple text converters but do not know anything about the process, so any information would be a great help.

The whole idea of converters and compression has always intrigued me so really information about either one would be great.
dcanup is offline   Reply With Quote
Old 08-26-2007, 08:26 PM   PM User | #2
ralph l mayo
Regular Coder

 
ralph l mayo's Avatar
 
Join Date: Nov 2005
Posts: 951
Thanks: 1
Thanked 31 Times in 29 Posts
ralph l mayo is on a distinguished road
Compression involves some heavy theory, particularly lossy compression where it may be very difficult to come up with a fast heuristic to determine what information is acceptable to lose. This page seems to have a good run-down to begin with: http://www.data-compression.com/theory.html

Converting between two file formats is much more straightforward. Basically you just need to be able to create arbitrary documents of both types. Represent the same information in both documents manually and look at the saved format to see if you can draw parallels. Make very small changes to each document and use a utility like 'diff' to analyze their effect on the output. Eventually you should establish a rough mapping between the two formats, after which it's quite simple to automate it. It'll probably be completely broken for non-trivial cases at first, but unit testing can get you the rest of the way once you've got the basic working.
ralph l mayo is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:49 AM.


Advertisement
Log in to turn off these ads.