Hello,
I have some background in PERL and HTML and think this should be a pretty easy job. It can probably be done in any language though, I don’t require perl.
I have data fields in flat txt file format that need to be converted into looking like a classified section of a newspaper using html tables. The table will be comprised of category headers and box ads. All the headers will be the same size and all the box ads will be the same size. The tables will have to be printed on standard american 8.5 by 11 paper with no bleed over of html cells onto the next page. So you will need to keep track of how many you can fit in a column before having to move onto the next column/page. You may want to wieght them. Say you can fit 20 box ads in a column. Headers are smaller so maybe consider them .5, so any combination of box ads(1) and headers(.5) can be used until = 20 then newcolumn/newpage.
I will provide the files and data fields are seperated by |pipes|. There are several classified categories that the files will be associated with. So the process will be:
1.) Read up file and find its category field. Move that file to the correct category DIR.
2.) Once all files are categorized, goto first category DIR and begin reading up files.
3.) Read up certain fields into memory and write them down html tables.
4.) increment row and column varibles to keep track of how many category headers and box ads you can fit on a page. Then create a new page.
The very first html page that is to be printed will have a graphic inserted into the html page to serve as a header. So the very first page will have a different amount of ads you can fit onto it.
I have attached an example of the html code I believe will be needed to the classified look.
Thanks!
