Re: postscript question: Justify text

2002-05-19 Thread Kevin O'Gorman
It will work just fine if the font is monospaced, like Courier. This is often the case with enscript. ++ kevin On Sun, May 19, 2002 at 11:45:54PM -0400, Joel Hammer wrote: > Well, I don't see how reformatting the text document, even with a > perl script, can solve the problem of justification, s

Re: postscript question: Justify text

2002-05-19 Thread Joel Hammer
Well, I don't see how reformatting the text document, even with a perl script, can solve the problem of justification, since that will depend in part on the text font chosen, which perl may not know about. The solution may lie in enscript itself. I will write the author of enscript. That's one ama

Re: postscript question: Justify text

2002-05-19 Thread Joel Hammer
Thanks for the pointers and the information. Unfortunately, I have to get back to my day job (even though is it Sunday). I will try out these ideas in a day or two. I'll let you know how they work. Joel ___ Linux-users mailing list - http://linux-sxs

Re: postscript question: Justify text

2002-05-18 Thread Alan Jackson
Two comments : In vim, you can use gqG on your file to reformat it into nice paragraphs eliminating the sed. There is a rather nice perl module, Text::Autoformat, which will do a lot of stuff, one of which is full justification, done intelligently. It's not that hard to do full justification,

Re: postscript question: Justify text

2002-05-18 Thread Joel Hammer
Here is what I am doing. I create a text file with vi. Its structure is a bunch of lines, ending with nl's. The paragraphs are demarcated by empty lines. This is the same format as this letter you are reading. To get a better looking postscript document, I feed the text file through a sed script

Re: postscript question: Justify text

2002-05-18 Thread Alan Jackson
What are you actually trying to do? I know a bit about text formatting and PostScript, but I'm not clear on what your real goal is. On Sat, 18 May 2002 18:57:57 -0700 "Kevin O'Gorman" wrote: > There's nothing very simple about using Postscript directly; it's not > actually designed for that, it

Re: postscript question: Justify text

2002-05-18 Thread Kevin O'Gorman
There's nothing very simple about using Postscript directly; it's not actually designed for that, it seems. You can indeed stretch the line with ashow, but be aware that this method only looks acceptable for VERY small amounts of added space. As the added amount gets bigger, you lose visual trac

Re: postscript question: Justify text

2002-05-18 Thread Joel Hammer
I want to justify simple text files, such as are output by vi. It is hard to believe it is so hard to do. When you say keep adding spaces until the line if filled, do you mean actually adding spaces to the string itself. Wouldn't that get you words on the same line which were unevenly spaced?

Re: postscript question: Justify text

2002-05-18 Thread Kevin O'Gorman
That is a laborious process in Postscript proper. The primitives are there to support it, but the real work is usually done by the application program that emits the postscript file. This makes sense, because the application knows how it wants it done, and there are a remarkable number of differ

postscript question: Justify text

2002-05-18 Thread Joel Hammer
Does anyone know how to produce justified text in a postscript document? It sounds simple, but there is no reference to this option in enscript, and the two postscript manuals I downloaded from the internet don't have the word "justify" in them. Any insight appreciated, Joel _