[Discussion] Problem with re-formatting a document

Julian Thomas jt at jt-mj.net
Fri Oct 12 13:27:26 PDT 2007


In <E1IgQnm-0000Dw-00 at pop-altamira.atl.sa.earthlink.net>, on 10/12/07 
   at 01:07 PM, bokeny at earthlink.net typed:
>I have a 300+ page document formatted for printing with Courier fonts.  I
>also have the same document in HTML format from an on-line course. 
>Problem is that I really want to printed with Times Roman fonts but the
>lines look raggedy on the right end.

Is this a text document?

If each line ends in a CRLF and there are two CRLF's between paragraphs,
it's quite easy (I've written a Rexx program to do it) to get rid of all
the crlf's in each paragraph.

OR - the HTML may have each paragraph as a single line; look at the
source. If this is the case, you are almost there; just need to convert
<p> codes to CRLFCRLF.

There may be additional headers in there that would require different
treatment.

At any rate, once you have each paragraph one-lined, import it into
whatever - Open Office would be a good choice, select all, and format
justified.

Even if you don't end up justifying it, it will still look better because
a line of TR will generally hold more characters than a line of courier.

I'll dig through my programs and see what I come up with.

 
-- 
 Julian Thomas:   jt at jt-mj.net    http://jt-mj.net
 In the beautiful Finger Lakes Wine Country of New York State!
 -- --
 "...  one of the main causes of the fall of the Roman Empire was that,
 lacking zero, they had no way to indicate successful termination of
 their C programs."  -- Robert Firth  (stolen from somewhere else)







More information about the Discussion mailing list