Re: [Groff] Choosing a portability target

2007-01-12 Thread walter harms
hi list, as author of several man pages i can say something about the "other" side. When you read the current manuals (i admit that is some time ago) they ask the authors to keep the file simple. Using the .TH, .BR, .I macros means that the authors need to learn a few basic format stuff and that's

Re: [Groff] Status of the portability work, and plans for the future

2007-01-12 Thread Werner LEMBERG
> > You've forgotten to store something in register `a'. > > On reflection, I think that should probably be ".ad b". It's > supposed to be restoring the normal adjustment mode for a man page. I disagree. Perhaps someone likes to make the appearance of man pages formatted with -man similar to th

Re: [Groff] Choosing a portability target

2007-01-12 Thread Werner LEMBERG
> The groff project -- and I'm not sure what that means, other than > "Werner Lemburg" -- Hmm, this is the same as Erik S. Raimont. :-) > Target 2: man2html compatibility This sounds reasonable. However, in case there are really stupid and brainless issues in man2html, let's not uglify the gro

Re: [Groff] Choosing a portability target

2007-01-12 Thread Werner LEMBERG
> In practical terms, this means that we should use two-character > macro names in the new general purpose macros we define (like SY and > OP) but not worry about changing long macro names in existing man > pages. That's exactly my point of view. Werner ___

Re: [Groff] Choosing a portability target

2007-01-12 Thread Werner LEMBERG
> HOWEVER, if groff can be compiled and run on HP-UX, groff-oriented > man pages will also need to be installed in the usual directories on > HP-UX systems, and HP-UX users will expect to be able to run the man > command on those pages. If groff finds another troff package already installed on th

Re: [Groff] Progress report on the portability audit -- and what to do about URLs?

2007-01-12 Thread Werner LEMBERG
> I am about three-quarters of the way through cleaning up the groff > manual pages to be viewer-portable. The new versions will also be > simpler, shorter, and easier to read than the old. I've done these > so far: [...] If you've reached a satisfying level, please mail them to me. > Many gro

Re: [Groff] Status of the portability work, and plans for the future

2007-01-12 Thread Werner LEMBERG
> That sequence of bracket characters starting with \bv is new to me > -- I gather that has been introduced in CVS recently? What sequence do you mean? The glyph \[bv] has been there since ever. And no, I no longer add new glyphs to groff using ad-hoc glyph names. The groff glyph list is frozen

Re: [Groff] tty-char.tmac

2007-01-12 Thread Werner LEMBERG
> I understand what tty-char.tmac is doing now, and I am appalled. > > No inclusion of this file should *ever* occur visibly in a manual > page. Mhmm, yes, you are probably right. > Either this should be invisibly included by andoc-tmac, or expansion > of these glyphs should be done at the devic

Re: [Groff] Progress report on the portability audit -- and what to do about URLs?

2007-01-12 Thread Werner LEMBERG
> > > > I have not removed any instances of .URL or .MTO. > > > > > > .URL and .MTO are not two-character names. > > > > I'm still missing something. Are you saying that I should have > > changed all of the existing instances of URL and MTO into > > two-letter macros? > > Yes. I don't mind to u

Re: [Groff] Why does backslash somtimes render as a yen symbol?

2007-01-12 Thread Werner LEMBERG
> Why does backslash render as a yen symbol when I do M-x man 7 man? Because you are using the wrong locale, or the system is set up incorrectly. There are ASCII variants (or rather, ISO 646 variants like ISO 646-JP) which replace some ASCII characters. That's the very reason why there exists

Re: [Groff] Status of the portability work, and plans for the future

2007-01-12 Thread Eric S. Raymond
Werner LEMBERG <[EMAIL PROTECTED]>: > > > > You've forgotten to store something in register `a'. > > > > On reflection, I think that should probably be ".ad b". It's > > supposed to be restoring the normal adjustment mode for a man page. > > I disagree. Perhaps someone likes to make the appeara

Re: [Groff] Status of the portability work, and plans for the future

2007-01-12 Thread Eric S. Raymond
Werner LEMBERG <[EMAIL PROTECTED]>: > > > That sequence of bracket characters starting with \bv is new to me > > -- I gather that has been introduced in CVS recently? > > What sequence do you mean? The glyph \[bv] has been there since ever. > And no, I no longer add new glyphs to groff using ad-

Re: [Groff] Progress report on the portability audit -- and what to do about URLs?

2007-01-12 Thread Eric S. Raymond
Werner LEMBERG <[EMAIL PROTECTED]>: > Please bear in mind that it is not the goal of man pages which come > with the groff package to be readable by all Unix versions! I'm > definitely *not* going to replace \[xx] with \(xx, for example. Unfortunately, we might need this change anyway. I'm check

Re: [Groff] Status of the portability work, and plans for the future

2007-01-12 Thread Clarke Echols
Werner LEMBERG wrote: I just fixed up ditroff.man. This is going fairly smoothly so far. Your past macro coders have had bad cases of "ooh! nifty feature! must use!", :-) but despite that the code is pretty readable. It's not really clear to me what you mean with `macro coders'. W

Re: [Groff] Progress report on the portability audit -- and what to do about URLs?

2007-01-12 Thread Eric S. Raymond
Werner LEMBERG <[EMAIL PROTECTED]>: > > I am about three-quarters of the way through cleaning up the groff > > manual pages to be viewer-portable. The new versions will also be > > simpler, shorter, and easier to read than the old. I've done these > > so far: [...] > > If you've reached a satisf

Re: [Groff] Choosing a portability target

2007-01-12 Thread Eric S. Raymond
Werner LEMBERG <[EMAIL PROTECTED]>: > > In practical terms, this means that we should use two-character > > macro names in the new general purpose macros we define (like SY and > > OP) but not worry about changing long macro names in existing man > > pages. > > That's exactly my point of view. Th

Re: [Groff] Choosing a portability target

2007-01-12 Thread Eric S. Raymond
walter harms <[EMAIL PROTECTED]>: > Stuff like tbl,eqn,... is discouraged (somebody mentioned it before) to keep > thinks simple. Discouraging TBL is the wrong advice to give nowadays. It used to make sense, back before the .\" t convention evolved and when most-third-party viewers would just ign

Re: [Groff] Choosing a portability target

2007-01-12 Thread Eric S. Raymond
Werner LEMBERG <[EMAIL PROTECTED]>: > > > HOWEVER, if groff can be compiled and run on HP-UX, groff-oriented > > man pages will also need to be installed in the usual directories on > > HP-UX systems, and HP-UX users will expect to be able to run the man > > command on those pages. > > If groff f

Re: [Groff] Choosing a portability target

2007-01-12 Thread Eric S. Raymond
Werner LEMBERG <[EMAIL PROTECTED]>: > > Target 2: man2html compatibility > > This sounds reasonable. However, in case there are really stupid and > brainless issues in man2html, let's not uglify the groff man macros > just to cope with them. Instead, force the man2html maintainers to > fix them!

Re: [Groff] Why does backslash somtimes render as a yen symbol?

2007-01-12 Thread Eric S. Raymond
Werner LEMBERG <[EMAIL PROTECTED]>: > > Why does backslash render as a yen symbol when I do M-x man 7 man? > > Because you are using the wrong locale, or the system is set up > incorrectly. There are ASCII variants (or rather, ISO 646 variants > like ISO 646-JP) which replace some ASCII charact

Re: [Groff] Choosing a portability target

2007-01-12 Thread walter harms
Eric S. Raymond wrote: > walter harms <[EMAIL PROTECTED]>: >> Stuff like tbl,eqn,... is discouraged (somebody mentioned it before) to keep >> thinks simple. > > Discouraging TBL is the wrong advice to give nowadays. It used to make sense, > back before the .\" t convention evolved and when most

Re: [Groff] tty-char.tmac

2007-01-12 Thread Eric S. Raymond
Werner LEMBERG <[EMAIL PROTECTED]>: > Maybe I should just activate it there. Objections? None from me. -- http://www.catb.org/~esr/";>Eric S. Raymond ___ Groff mailing list Groff@gnu.org http://lists.gnu.org/mailman/listinfo/groff

Re: [Groff] Choosing a portability target

2007-01-12 Thread Eric S. Raymond
walter harms <[EMAIL PROTECTED]>: > i am a big fan of tables (for a different reason) but we can not change that > if the (man page) maintainers do not enforce it. someone should contact them > and perhaps they have some nice additional ideas that should be incorporated. There's no one set of main

Re: [Groff] Choosing a portability target

2007-01-12 Thread Gunnar Ritter
Werner LEMBERG <[EMAIL PROTECTED]> wrote: > > HOWEVER, if groff can be compiled and run on HP-UX, groff-oriented > > man pages will also need to be installed in the usual directories on > > HP-UX systems, and HP-UX users will expect to be able to run the man > > command on those pages. > > If grof

Re: [Groff] Choosing a portability target

2007-01-12 Thread Eric S. Raymond
Eric S. Raymond <[EMAIL PROTECTED]>: > There's no one set of maintainers that can "enforce" such a convention. > Most man pages belong to individual progress. Individual *projects*. I'm clearly not awake yet... -- http://www.catb.org/~esr/";>Eric S. Raymond __

Re: [Groff] Choosing a portability target

2007-01-12 Thread Clarke Echols
Eric S. Raymond wrote: walter harms <[EMAIL PROTECTED]>: >> It would be a nice step forward to add stuff like pic into man pages aka 'a picture says more that 1000 words' (think of flow charts) In fact, on systems running groff there's no problem with this. The constraint has always been t

Re: [Groff] Choosing a portability target

2007-01-12 Thread Eric S. Raymond
Clarke Echols <[EMAIL PROTECTED]>: > In the case of the 1800 or so man pages I was responsible for at HP, > I *never* encountered a need for anything like pic. I hear you. I happen to like pic, but for man pages it is a frill rather than a necessity. > It would be nice to be able to have an ind

Re: [Groff] Status of the portability work, and plans for the future

2007-01-12 Thread Werner LEMBERG
> I know \[bv] is old. I mean this sequence that it begins, which wasn't > present when I first wrote doclifter: > >⎪ \[bv] braceex u23AA vertical exten‐ > sion [...] These glyphs have been t

Re: [Groff] Choosing a portability target

2007-01-12 Thread Werner LEMBERG
[About .IX] > It might not be a bad idea to bless this practice in the > groff_man(7) documentation. Unlike some other extensions, it can't > cause a compatibility problem, because .IX can be safely ignored. Good idea. Werner ___ Groff mailing

Re: [Groff] Status of the portability work, and plans for the future

2007-01-12 Thread Werner LEMBERG
> > > On reflection, I think that should probably be ".ad b". It's > > > supposed to be restoring the normal adjustment mode for a man > > > page. > > > > I disagree. Perhaps someone likes to make the appearance of man > > pages formatted with -man similar to the ones formatted with > > -mdoc, th

Re: [Groff] Progress report on the portability audit -- and what to do about URLs?

2007-01-12 Thread Werner LEMBERG
> > Please bear in mind that it is not the goal of man pages which > > come with the groff package to be readable by all Unix versions! > > I'm definitely *not* going to replace \[xx] with \(xx, for > > example. > > Unfortunately, we might need this change anyway. I'm checking > now...the KDE bro

Re: [Groff] Progress report on the portability audit -- and what to do about URLs?

2007-01-12 Thread Werner LEMBERG
> > Perhaps something like this: > > > > .if \n(.g \{\ > > . do mso www.tmac > > . do als UR URL > > . do als MT MTO > > .\} > > .el \{\ > > . de UR > > . ... > > . de MT > > . ... > > .\} > > > > together with an update of www.tmac which says that man pages > > shou

Re: [Groff] Choosing a portability target

2007-01-12 Thread Werner LEMBERG
> > > HOWEVER, if groff can be compiled and run on HP-UX, > > > groff-oriented man pages will also need to be installed in the > > > usual directories on HP-UX systems, and HP-UX users will expect > > > to be able to run the man command on those pages. > > > > If groff finds another troff package

Re: [Groff] Choosing a portability target

2007-01-12 Thread Werner LEMBERG
> especially since b) could have the effect that many HP-UX manual > pages will not render correctly anymore because the groff -man > macros lack the HP-UX specific .CI, .IC, etc. macros which Clarke > has mentioned. See my other mail how groff handles this gracefully. > I did not try this myse

Re: [Groff] Choosing a portability target

2007-01-12 Thread Eric S. Raymond
Werner LEMBERG <[EMAIL PROTECTED]>: > [About .IX] > > > It might not be a bad idea to bless this practice in the > > groff_man(7) documentation. Unlike some other extensions, it can't > > cause a compatibility problem, because .IX can be safely ignored. > > Good idea. I'll put it on my to-do li

Re: [Groff] Choosing a portability target

2007-01-12 Thread Eric S. Raymond
Werner LEMBERG <[EMAIL PROTECTED]>: > A man page by default has to be defined in `traditional mode' (.cp 1). > If groff extensions are used it should call > > .do nr _C \n[.C] > .cp 0 > > ... man page ... > > .cp \n[.C] > > [Another thing to mention in the forthcoming man writer's guide

Re: [Groff] Status of the portability work, and plans for the future

2007-01-12 Thread Eric S. Raymond
Werner LEMBERG <[EMAIL PROTECTED]>: > > Then I don't know what the right thing is here. I agree with your > > design intention, but I can't see how to implement it robustly. > > Well, doclifter ignores it anyway, doesn't it? Yes, but doclifter isn't the problem here, either. > > Even querying

Re: [Groff] Progress report on the portability audit -- and what to do about URLs?

2007-01-12 Thread Eric S. Raymond
Werner LEMBERG <[EMAIL PROTECTED]>: > > Unfortunately, we might need this change anyway. I'm checking > > now...the KDE browser supports \[], but manServer doesn't. If it's > > OK with you to break compatibility with manServer, then this is > > fine. Since it can't handle .if, we probably would

Re: [Groff] Progress report on the portability audit -- and what to do about URLs?

2007-01-12 Thread Eric S. Raymond
Werner LEMBERG <[EMAIL PROTECTED]>: > This is even better because we can avoid conflicts with the .URL > macro. So let's add .UR and .UE, ignoring the .MTO macro -- the > latter can be realized as > > .UR mailto:[EMAIL PROTECTED] > Foo Bar > .UE As a design direction, I'm good with this. B

Re: [Groff] Status of the portability work, and plans for the future

2007-01-12 Thread Werner LEMBERG
> > .SY > > .SY > > .YS > > > > it's just necessary to test a flag, say, \n(sy, which is set by > > the first .SY call. If it's still set in the next call to .SY, > > don't call the .ad request. > > OK. Can I rely on you to add that? Yes. In case I forget please remind me :-) Werne

Re: [Groff] Choosing a portability target

2007-01-12 Thread Werner LEMBERG
> > A man page by default has to be defined in `traditional mode' > > (.cp 1). If groff extensions are used it should call > > > > .do nr _C \n[.C] > > .cp 0 > > > > ... man page ... > > > > .cp \n[.C] > > > > [Another thing to mention in the forthcoming man writer's guide.] > > I've been

Re: [Groff] Choosing a portability target

2007-01-12 Thread Eric S. Raymond
Werner LEMBERG <[EMAIL PROTECTED]>: > ??? Things like \[rs] will definitely fail in classical troff > implementations. So what do you mean with `traditional mode'? I should have said I'm testing to be sure that they work in the default mode, rather than needing compatibility mode to be forced of