Re: [Groff] parsing a corner specification

2007-08-20 Thread Werner LEMBERG
> > Patches are highly welcome :-) > > I wouldn't mind writing a patch once I'm sure of which behavior is > best. My lack of practical experience with pic leaves me reluctant > to make a judgement call yet. Well, it seems that you've hit a behaviour which is (a) quite obscure since there has nev

Re: [Groff] Groff editor.

2007-08-20 Thread brian m. carlson
On Mon, Aug 20, 2007 at 12:29:08PM -0700, Meg McRoberts wrote: > I am rapidly getting in over my head here, but one thought is that, > since Eric Raymond's groff-to-xml converter is open source, it wouldn't > be too tough to make a version that then converts XML back to groff. > You might be able t

Re: [Groff] parsing a corner specification

2007-08-20 Thread Joel E. Denny
On Mon, 20 Aug 2007, Werner LEMBERG wrote: > > How can I obtain a copy of AT&T pic? > > The plan 9 stuff is the nearest one you can get, I think. > > Well, James Clark has written the parser from scratch, probably based > on his experience with sqtroff. Thanks for that information. Thanks also

RE: [Groff] Groff editor.

2007-08-20 Thread Meg McRoberts
My current job requires writing long, highly-technical documents in Word and it is absolutely HORRID! I totally agree with you! I've seen editors for HTML and XML where you have two windows, one that contains the raw source and one that contains a reasonably-accurate rendition of the formatted te

RE: [Groff] Groff editor.

2007-08-20 Thread Meg McRoberts
Actually, I'm thinking that, if you used Eric Raymond's groff-to-xml converter, you wouldn't really have to learn all the advanced groff stuff because basically you'd just be reversing the directives --- "Karee, Srinivas" <[EMAIL PROTECTED]> wrote: > This is an option (but I have to learn advance

RE: [Groff] Groff editor.

2007-08-20 Thread Karee, Srinivas
This is an option (but I have to learn advanced groff, I know only the basics of groff). When I started this thread, I thought there could be plenty of tools which does this job. I appreciate all the responses. Thank you very much. Srini. -Original Message- From: Meg McRoberts [mailto:[E

RE: [Groff] Groff editor.

2007-08-20 Thread Karee, Srinivas
I care about the font/bold/italics as this is a document which will be sent to the customer and we cannot afford to send a plain text document to customers. Today we are sending a formatted document with all bold headings (multiple subsections), italic content and use different fonts. I cannot conv

RE: [Groff] Groff editor.

2007-08-20 Thread Nick Stoughton
On Mon, 2007-08-20 at 14:11 -0400, Karee, Srinivas wrote: > Basically I cannot lose bold/italic/font and other stuff. The issue here for me is about the "meta-information". I have a 4,000 page document that describes programming APIs. The fact that a function name is in italics with () after it is

RE: [Groff] Groff editor.

2007-08-20 Thread Meg McRoberts
Thanks for the explanation... You do have a bit of a conundrum here. How frequently does this file need to be modified? I am rapidly getting in over my head here, but one thought is that, since Eric Raymond's groff-to-xml converter is open source, it wouldn't be too tough to make a version that t

RE: [Groff] Groff editor.

2007-08-20 Thread Karee, Srinivas
This is existing code (groff) which I picked-up for the enhancement, I cannot replace groff, there is quite a code which uses groff. I could ask users to do that tag thing as you suggested but they do ADDING/MODIFYING and DELETING lines/words and you know users they don't want to write these tags.

RE: [Groff] Groff editor.

2007-08-20 Thread Meg McRoberts
Why do you need to maintain this as a groff file? Perhaps if we understood that we could help you find a better solution. I happen to love groff and I can code it very quickly. What I have done in this situation is give the user the formatted ASCII file and tell them to edit it, sticking some st

Re: [Groff] Groff editor.

2007-08-20 Thread Ted Harding
On 20-Aug-07 17:58:24, Gunnar Ritter wrote: > (Ted Harding) <[EMAIL PROTECTED]> wrote: > >> The loop constantly checks whether the timestamp on myfile.tr >> is more recent than that of myfile.watch and, if it is, then >> groff is run on myfile.tr to generate myfile.ps, and then a >> 'kill -1' is s

Re: [Groff] Groff editor.

2007-08-20 Thread Ted Harding
On 20-Aug-07 17:27:41, Clarke Echols wrote: > Ouch! That's painful! :-) Perhaps it was only painful, Clarke, because I slung the whole parcel at you, with long explanations, all at once! Comparing with your procedure desribed below, what the user does with my "ge" script is 1. ge filename 2. Ed

RE: [Groff] Groff editor.

2007-08-20 Thread Karee, Srinivas
This file does not contain any pics, it has some tables, I can covert it to ascii (-Tascii) and show to the users. But my requirement is for user to edit the file and I should able to save it back in groff format and use user edited (groff file) file for printing on the PS printer and sending fax.

RE: [Groff] Groff editor.

2007-08-20 Thread Meg McRoberts
What sort of document is this? Is it mostly text or are there a lot of tables, graphics, and such? I can think of a few ways that one might get the content into some sort of WYSIWYG editor, but the fancier the formatting, the less satisfactory these will be: - Run the text into formatted ASCII t

Re: [Groff] Groff editor.

2007-08-20 Thread Gunnar Ritter
(Ted Harding) <[EMAIL PROTECTED]> wrote: > The loop constantly checks whether the timestamp on myfile.tr > is more recent than that of myfile.watch and, if it is, then > groff is run on myfile.tr to generate myfile.ps, and then a > 'kill -1' is sent to 'gv' so that it re-reads myfile.ps and > disp

Re: [Groff] Groff editor.

2007-08-20 Thread Clarke Echols
Ouch! That's painful! :-) One of my professors from about 33 years ago said, "Engineering is the *art* of *knowing how* to avoid difficult issues." The years since have clearly demonstrated to me that those are very astute words. I use Windows 98 with Cygwin and the Ghostgum viewer which runs

Re: [Groff] Groff editor.

2007-08-20 Thread Ted Harding
On 20-Aug-07 15:54:06, Clarke Echols wrote: > The short answer is "no". The groff source file has all of the > embedded coding to tell the formatter what to do with the file > when it reads and interprets it. Microsoft Word, for example, > gives the user a formatted display of the results from it

RE: [Groff] Groff editor.

2007-08-20 Thread Karee, Srinivas
Thank you. -Original Message- From: Clarke Echols [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 11:54 AM To: Karee, Srinivas Cc: Groff@gnu.org Subject: Re: [Groff] Groff editor. The short answer is "no". The groff source file has all of the embedded coding to tell the formatt

Re: [Groff] Groff editor.

2007-08-20 Thread Clarke Echols
The short answer is "no". The groff source file has all of the embedded coding to tell the formatter what to do with the file when it reads and interprets it. Microsoft Word, for example, gives the user a formatted display of the results from its own internal coding. If the user changes somethi

Re: [Groff] Groff editor.

2007-08-20 Thread karee
karee wrote: > > > Hi, > > I wanted a viewer which can show the groff file in formatted output, I > figured out gxditview can be used to view groff files. > > My requirement is quite different here. > > I have a groff file, which I should present to the user (user has no > knowle

Re: [Groff] parsing a corner specification

2007-08-20 Thread Gunnar Ritter
"Joel E. Denny" <[EMAIL PROTECTED]> wrote: > How can I obtain a copy of AT&T pic? This page makes it seem as if I > won't have much luck: > > http://troff.org/source.html > > It links to Plan 9, which has pic source here: > > http://plan9.bell-labs.com/sources/plan9/sys/src/cmd/pic/ > > Its

Re: [Groff] parsing a corner specification

2007-08-20 Thread Werner LEMBERG
> How can I obtain a copy of AT&T pic? The plan 9 stuff is the nearest one you can get, I think. > Its lexer returns left as a CORNER token only when preceded by "." > or followed by "of", so it can't be the inspiration for the GNU pic > behavior I'm observing. Well, James Clark has written the

Re: [Groff] boxes.tmac

2007-08-20 Thread Werner LEMBERG
> I found boxes-1.5 on my computer and used it. After some testing I > understand how it should be used and got good results for a > table-like design. But now I can not find it anywhere in the groff > distribution ore elsewhere. http://groff.ffii.org/groff/contrib/macros/ Werner

[Groff] boxes.tmac

2007-08-20 Thread Heinz-Jürgen Oertel
Hello Werner, what happened with your box macros? I found boxes-1.5 on my computer and used it. After some testing I understand how it should be used and got good results for a table-like design. But now I can not find it anywhere in the groff distribution ore elsewhere. Regards Heinz