unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs documentation. Was My emacs was upgraded and I am a novice again
@ 2007-09-23  9:53 Dave Pawson
  2007-09-23 11:12 ` Bastien
  0 siblings, 1 reply; 19+ messages in thread
From: Dave Pawson @ 2007-09-23  9:53 UTC (permalink / raw)
  To: help-gnu-emacs

On 23/09/2007, David Kastrup <dak@gnu.org> wrote:
> "Dave Pawson" <dave.pawson@gmail.com> writes:

> One does not get acquainted with Emacs' editing by reading its C and
> Lisp source code either.  The documentation system of Emacs is _info_
> as far as online access is concerned.  The .texi files are not
> intended for reading, but for writing.  It is source code.

One does if one believes they can be improved.


>
> So I really repeat the recommendation to get acquanted with the info
> reader in Emacs.  It puts the information at your fingertip, and the
> .texi files don't do that.

Point taken.

> Again, you are confusing format and reader.  The Texinfo format is
> archaic (but nevertheless quite alive).  The reader is what Emacs
> offers you.  Nobody has ever proposed a user interface that would be
> more efficient or convenient than Emacs' current info reader.

Caveat. When used to it?

 So the
> source of contention is the source file format (and the compiled
> _fast_ info format), but that is nothing that would affect the _usage_
> of the files: changing the format would probably achieve no
> user-visible change inside of Emacs apart from slowing it down.  At
> the current point of time, info access is near instantaneous.

Can't disagree with that.

But yes. the contention is that the source file format and end user access
can be improved.



> XML is not an end user format.

It's the best starting point for an end user format that I've ever found.



> docbook2x is undocumented software.  I used it to provide a user
> manual in info format for git.  It was reasonably easy to do this,
> except that it was near impossible to put the respective directory
> entries at the top.  After working on this a few days, I punted and
> used a Perl script for post-processing the Texinfo file.  It seems
> from the few uses one sees on the Web that nobody else fared better.

I've not used it so I can't comment.




> The combined largely under- or undocumented and inscrutable layerism
> of XML, Docbook, Ascii2doc and Docbook2x makes it impossible to
> achieve a particular effect at the end of the toolchain without weeks
> of previous study.

Yes. I agree. The combination is nearly as bad as sgml+dsssl+emacs :)

I've spent that time and am fairly happy with docbook, xml, xslt, xsl-fo.
(I host the docbook and xslt faq )


>
> While the toolchain may be in better shape (I found it to produce
> pretty much perfect Texinfo from the get-go while Texinfo's Docbook
> output was ill-formed), it is just not usable without months of study
> and fishing for information in distributed places.



>
> Coming back to the manual page problem: in Texinfo, this could be
> solved easily using @include and @raisesections, consulting just a
> single manual about a single format, a well-structured and indexed
> manual that can be browsed efficiently in Emacs even on slow machines.

Which is a solution to the last issue.
From an XML source I could identify and write out small files needed
by the elisp for inclusion where needed (even language specific if
needs be).





>
> In contrast, the information for the XML toolchains is scattered all
> over the place and rarely in a format that can be readily browsed by
> humans without starting to convert and manipulate stuff first.


Yep.

My offer is to convert the emacs documentation into docbook, version 5
and work with those interested to improve it/bring it up to scratch.

I've sent a demo chapter to Eli for comment.

No point if the actual documenters are unwilling to move to XML though.

I've also mailed the makeinfo guy at gnu, see if the .texi to docbook
can be revived. I've a nasty feeling its written in tex macros!

regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation. Was My emacs was upgraded and I am a novice again
       [not found] <mailman.1178.1190541246.18990.help-gnu-emacs@gnu.org>
@ 2007-09-23 10:58 ` David Kastrup
  2007-09-23 13:02   ` Dave Pawson
                     ` (2 more replies)
  2007-09-24  4:41 ` Stefan Monnier
  2007-09-25  9:24 ` Tim X
  2 siblings, 3 replies; 19+ messages in thread
From: David Kastrup @ 2007-09-23 10:58 UTC (permalink / raw)
  To: help-gnu-emacs

"Dave Pawson" <dave.pawson@gmail.com> writes:

> On 23/09/2007, David Kastrup <dak@gnu.org> wrote:
>> "Dave Pawson" <dave.pawson@gmail.com> writes:
>
> Point taken.
>
>> Again, you are confusing format and reader.  The Texinfo format is
>> archaic (but nevertheless quite alive).  The reader is what Emacs
>> offers you.  Nobody has ever proposed a user interface that would be
>> more efficient or convenient than Emacs' current info reader.
>
> Caveat. When used to it?

No caveat.  When you are not used to it, you start by clicking either
the links in the text or headers (which gives you all that HTML has to
offer with regard to navigation) or the Info menu (which gives you
more).

>> So the source of contention is the source file format (and the
>> compiled _fast_ info format), but that is nothing that would affect
>> the _usage_ of the files: changing the format would probably
>> achieve no user-visible change inside of Emacs apart from slowing
>> it down.  At the current point of time, info access is near
>> instantaneous.
>
> Can't disagree with that.
>
> But yes. the contention is that the source file format and end user
> access can be improved.

Both are different things.  So far, I have yet to see a proposal for
improving the end user access that would benefit from a source file
format change.

>> XML is not an end user format.
>
> It's the best starting point for an end user format that I've ever
> found.

Correction.  "best general purpose starting point".  It is not the
best starting point for info, for example...

>> docbook2x is undocumented software.  I used it to provide a user
>> manual in info format for git.  It was reasonably easy to do this,
>> except that it was near impossible to put the respective directory
>> entries at the top.  After working on this a few days, I punted and
>> used a Perl script for post-processing the Texinfo file.  It seems
>> from the few uses one sees on the Web that nobody else fared
>> better.
>
> I've not used it so I can't comment.

You better do so.  See below.

>> The combined largely under- or undocumented and inscrutable
>> layerism of XML, Docbook, Ascii2doc and Docbook2x makes it
>> impossible to achieve a particular effect at the end of the
>> toolchain without weeks of previous study.
>
> Yes. I agree. The combination is nearly as bad as sgml+dsssl+emacs
> :)
>
> I've spent that time and am fairly happy with docbook, xml, xslt,
> xsl-fo.  (I host the docbook and xslt faq )

Here is the problem: Richard Stallman has been quite sympathetic to
replacing Texinfo if a suitable alternative comes up.  It hasn't up to
now.  Here are the requirements for it as far as I am concerned (I
don't think you have a reasonable chance to get this past Richard if
the following points aren't addressed satisfactorily):

a) the essential parts of the toolchain must be well-documented from a
documentation writer's as well as a programmer's point of view and
most likely copyright-assigned to the Free Software Foundation.  That
is the state of affairs with Texinfo.  Documentation is an essential
part of the GNU system.  Relying on the continued goodwill of
independent third parties would be a step backwards from the current
state of affairs.  This would seem to particularly apply to Docbook2X:
it apparently does a good job, but it is not clear what input it will
accept, and how a typical user could influence or extend its
operation, and it is written (and copyrighted) by someone who does not
as a rule answer Email with questions (at least I have tried and
failed to get a response).

b) the expressivity of Texinfo must be preserved.  This concerns most
of the options for detailed and coarse tables of contents and indices.

c) end user access must be fast and convenient from within Emacs.  At
the current point of time, using Docbook2x for going via Texinfo would
mostly do the trick as a transition strategy.  But there would likely
need to be some translation process (similar to producing cattable
manpages from *roff sources) with fewer external dependencies that one
could rely on.

>> In contrast, the information for the XML toolchains is scattered
>> all over the place and rarely in a format that can be readily
>> browsed by humans without starting to convert and manipulate stuff
>> first.
>
> Yep.
>
> My offer is to convert the emacs documentation into docbook, version
> 5 and work with those interested to improve it/bring it up to
> scratch.

But that's the wrong way round.  At the current point of time, it is
not the Emacs documentation that needs to be brought up to scratch,
but rather the Docbook documentation, toolchain and general situation.
Before that is the case, any change in the source file format would be
a waste of time.

Experimenting with other toolchains might be easier if the Docbook
output of makeinfo was improved to a point where it would in most
cases deliver actually valid output.  Being close to "roundtripping"
would be a strong argument.

> I've sent a demo chapter to Eli for comment.
>
> No point if the actual documenters are unwilling to move to XML
> though.

As long as there is nothing in it for them, why should they?

> I've also mailed the makeinfo guy at gnu, see if the .texi to
> docbook can be revived. I've a nasty feeling its written in tex
> macros!

As an additional note: the output of the Docbook toolchain appears to
be quite better than that of the Texinfo toolchain _except_ where the
info format is concerned: the HTML pages look nicer, the printed pages
possibly too (though Texinfo does a splendid job at PDF indexing).
And Texinfo does not really cut it with regard to utf-8 character
sets.  I would still like to see evidence, though, that the available
Docbook toolchains do a better job where PDF, PostScript or
preformatted plain text are concerned (pure HTML likely should work).

So that is a definite selling point once the _primary_ purpose of
Texinfo, a fast user-accessible rich structured hypertext format with
a reasonably accessible and documented source code format to people
not specializing in XML, is secured.

That is by no means a small job.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation. Was My emacs was upgraded and I am a novice again
  2007-09-23  9:53 Emacs documentation. Was My emacs was upgraded and I am a novice again Dave Pawson
@ 2007-09-23 11:12 ` Bastien
  2007-09-23 11:35   ` Dave Pawson
       [not found]   ` <mailman.1182.1190547310.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 19+ messages in thread
From: Bastien @ 2007-09-23 11:12 UTC (permalink / raw)
  To: Dave Pawson; +Cc: help-gnu-emacs

"Dave Pawson" <dave.pawson@gmail.com> writes:

> My offer is to convert the emacs documentation into docbook, version 5
> and work with those interested to improve it/bring it up to scratch.

It would be like trying to convert man pages into docbook. Why?

I guess too many developpers actually use Texinfo to document their
code, and both users and developpers seem to be happy with that.

-- 
Bastien

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation. Was My emacs was upgraded and I am a novice again
  2007-09-23 11:12 ` Bastien
@ 2007-09-23 11:35   ` Dave Pawson
  2007-09-23 12:37     ` Bastien
                       ` (2 more replies)
       [not found]   ` <mailman.1182.1190547310.18990.help-gnu-emacs@gnu.org>
  1 sibling, 3 replies; 19+ messages in thread
From: Dave Pawson @ 2007-09-23 11:35 UTC (permalink / raw)
  To: help-gnu-emacs

On 23/09/2007, Bastien <bzg@altern.org> wrote:
> "Dave Pawson" <dave.pawson@gmail.com> writes:
>
> > My offer is to convert the emacs documentation into docbook, version 5
> > and work with those interested to improve it/bring it up to scratch.
>
> It would be like trying to convert man pages into docbook. Why?

Because XML is more flexible and a more modern standard for documentation IMHO.

>
> I guess too many developpers actually use Texinfo to document their
> code, and both users and developpers seem to be happy with that.


You may be right. I think it is worth challenging though, otherwise
we'll never progress?


regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation. Was My emacs was upgraded and I am a novice again
  2007-09-23 11:35   ` Dave Pawson
@ 2007-09-23 12:37     ` Bastien
  2007-09-23 16:26     ` Tom Tromey
  2007-09-29 15:46     ` Emacs documentation Alan Mackenzie
  2 siblings, 0 replies; 19+ messages in thread
From: Bastien @ 2007-09-23 12:37 UTC (permalink / raw)
  To: Dave Pawson; +Cc: help-gnu-emacs

"Dave Pawson" <dave.pawson@gmail.com> writes:

>> I guess too many developpers actually use Texinfo to document their
>> code, and both users and developpers seem to be happy with that.
>
> You may be right. I think it is worth challenging though, otherwise
> we'll never progress?

Progress in itself doesn't say that much, it's rather a matter of where
we want to progress to...

-- 
Bastien

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation. Was My emacs was upgraded and I am a novice again
       [not found]   ` <mailman.1182.1190547310.18990.help-gnu-emacs@gnu.org>
@ 2007-09-23 12:50     ` David Kastrup
  2007-09-23 14:55       ` Dave Pawson
       [not found]       ` <mailman.1188.1190559347.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 19+ messages in thread
From: David Kastrup @ 2007-09-23 12:50 UTC (permalink / raw)
  To: help-gnu-emacs

"Dave Pawson" <dave.pawson@gmail.com> writes:

> On 23/09/2007, Bastien <bzg@altern.org> wrote:
>> "Dave Pawson" <dave.pawson@gmail.com> writes:
>>
>> > My offer is to convert the emacs documentation into docbook, version 5
>> > and work with those interested to improve it/bring it up to scratch.
>>
>> It would be like trying to convert man pages into docbook. Why?
>
> Because XML is more flexible and a more modern standard for
> documentation IMHO.

If I break my arm it is also more flexible.  The question is what
tanglible, user-visible benefit you expect to be coming from the
purported added flexibility.  We don't have the developer power to
chase after every "modern standard".  If we did, we would have had to
convert the whole GNU documentation from Texinfo to HTML to SGML to
Linuxdoc to XML/Docbook by now, without tangible benefit of any such
change.

You are proposing to have a lot of work done in order to be more
buzzword compliant.  Unless you come up with some very good _visible_
benefits, you will be rather alone with that work.  And then you still
face the challenge of convincing people they should change to your
version when you are done.

>> I guess too many developpers actually use Texinfo to document their
>> code, and both users and developpers seem to be happy with that.
>
> You may be right. I think it is worth challenging though, otherwise
> we'll never progress?

Progress without aim is just activism.  You need to balance benefits
and efforts.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation. Was My emacs was upgraded and I am a novice again
  2007-09-23 10:58 ` David Kastrup
@ 2007-09-23 13:02   ` Dave Pawson
       [not found]   ` <mailman.1184.1190552548.18990.help-gnu-emacs@gnu.org>
  2007-09-25  9:31   ` Tim X
  2 siblings, 0 replies; 19+ messages in thread
From: Dave Pawson @ 2007-09-23 13:02 UTC (permalink / raw)
  To: help-gnu-emacs

On 23/09/2007, David Kastrup <dak@gnu.org> wrote:



> >> XML is not an end user format.
> >
> > It's the best starting point for an end user format that I've ever
> > found.
>
> Correction.  "best general purpose starting point".  It is not the
> best starting point for info, for example...

If someone  wanted embossable braille, or a translation system keyed off
 the language property of the instance?
Single media output is becoming rather dated IMHO.

>
> >> docbook2x is undocumented software.  I used it to provide a user
> >> manual in info format for git.  It was reasonably easy to do this,
> >> except that it was near impossible to put the respective directory
> >> entries at the top.  After working on this a few days, I punted and
> >> used a Perl script for post-processing the Texinfo file.  It seems
> >> from the few uses one sees on the Web that nobody else fared
> >> better.
> >
> > I've not used it so I can't comment.
>
> You better do so.  See below.

If It's crap I'm prepared to work to improve it.



> Here is the problem: Richard Stallman has been quite sympathetic to
> replacing Texinfo if a suitable alternative comes up.  It hasn't up to
> now.
According to those driving the project, clearly  well within their
comfort zone.


 Here are the requirements for it as far as I am concerned (I
> don't think you have a reasonable chance to get this past Richard if
> the following points aren't addressed satisfactorily):


>
> a) the essential parts of the toolchain must be well-documented from a
> documentation writer's as well as a programmer's point of view and
> most likely copyright-assigned to the Free Software Foundation.

Enough said. The group want ownership. Anothers definition of open not enough?

> That  is the state of affairs with Texinfo.

Clearly, since Stallman et al  developed it.

 Documentation is an essential
> part of the GNU system.  Relying on the continued goodwill of
> independent third parties would be a step backwards from the current
> state of affairs.

Sorry. Unfair. You're currently reliant on the good will of the current
developers? Don't they class as independent? Eli for instance?


 This would seem to particularly apply to Docbook2X:
> it apparently does a good job, but it is not clear what input it will
> accept, and how a typical user could influence or extend its
> operation, and it is written (and copyrighted) by someone who does not
> as a rule answer Email with questions (at least I have tried and
> failed to get a response).

He's a bit cheeky with his copyright :-)
Uses the docbook ones then copyrights them!



>
> b) the expressivity of Texinfo must be preserved.  This concerns most
> of the options for detailed and coarse tables of contents and indices.

Why? What do you want the expressivity for?
Tocs are easy enough in xml processing.
Ditto indexing.



>
> c) end user access must be fast and convenient from within Emacs.
Via current docs content?
Generated from the XML.

 At
> the current point of time, using Docbook2x for going via Texinfo would
> mostly do the trick as a transition strategy.

Why.



> > My offer is to convert the emacs documentation into docbook, version
> > 5 and work with those interested to improve it/bring it up to
> > scratch.
>
> But that's the wrong way round.  At the current point of time, it is
> not the Emacs documentation that needs to be brought up to scratch,
> but rather the Docbook documentation, toolchain and general situation.
> Before that is the case, any change in the source file format would be
> a waste of time.

<chuckles/> Go RTFM. It's there.
I'm offering my time to waste.






>
> Experimenting with other toolchains might be easier if the Docbook
> output of makeinfo was improved to a point where it would in most
> cases deliver actually valid output.  Being close to "roundtripping"
> would be a strong argument.

I've never seen the logic of that argument. docbook roundtripping to word! why!
From my experience to date makeinfo needs a lot of work.
If its tex macros then sorry, not me.



> > No point if the actual documenters are unwilling to move to XML
> > though.
>
> As long as there is nothing in it for them, why should they?

They shouldn't.
Its for users. Not developers.
stay comfortable folks.


>
> > I've also mailed the makeinfo guy at gnu, see if the .texi to
> > docbook can be revived. I've a nasty feeling its written in tex
> > macros!
>
> As an additional note: the output of the Docbook toolchain appears to
> be quite better than that of the Texinfo toolchain _except_ where the
> info format is concerned: the HTML pages look nicer, the printed pages
> possibly too (though Texinfo does a splendid job at PDF indexing).

I noted that. The texi files contain the index!
At least docbook autogenerates from index entries in the document body.

> And Texinfo does not really cut it with regard to utf-8 character
> sets.  I would still like to see evidence, though, that the available
> Docbook toolchains do a better job where PDF, PostScript or
> preformatted plain text are concerned (pure HTML likely should work).

You're wide of the mark David. Nothing to do with the toolchain.
All down to the use of utf-8 (or 16) as the character set of XML.
Retain that throughout and if you have the fonts, you'll get out
what you put in - using emacs in every mode from ASCII upwards.



>
> So that is a definite selling point once the _primary_ purpose of
> Texinfo, a fast user-accessible rich structured hypertext format with
> a reasonably accessible and documented source code format to people
> not specializing in XML, is secured.

Clearly, retain status quo. OK. That's a view.

regards



-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation. Was My emacs was upgraded and I am a novice again
       [not found]   ` <mailman.1184.1190552548.18990.help-gnu-emacs@gnu.org>
@ 2007-09-23 13:36     ` David Kastrup
  0 siblings, 0 replies; 19+ messages in thread
From: David Kastrup @ 2007-09-23 13:36 UTC (permalink / raw)
  To: help-gnu-emacs

"Dave Pawson" <dave.pawson@gmail.com> writes:

> On 23/09/2007, David Kastrup <dak@gnu.org> wrote:
>
>
>
>> >> XML is not an end user format.
>> >
>> > It's the best starting point for an end user format that I've ever
>> > found.
>>
>> Correction.  "best general purpose starting point".  It is not the
>> best starting point for info, for example...
>
> If someone wanted embossable braille, or a translation system keyed
> off the language property of the instance?  Single media output is
> becoming rather dated IMHO.

If you don't cater to Emacs, you are out.  Emacs is the preferred
editor for a number of blind persons, and Emacspeak (which assumedly
cooperates with info mode) is an important tool for them.  The main
target of Texinfo is online accessible documentation: all the rest
basically is frosting on the cake.

If you don't feel you want to face the reality, you'll have a hard
time convincing developers that you offer improvements where they
_count_.

>> >> docbook2x is undocumented software.  I used it to provide a user
>> >> manual in info format for git.  It was reasonably easy to do this,
>> >> except that it was near impossible to put the respective directory
>> >> entries at the top.  After working on this a few days, I punted and
>> >> used a Perl script for post-processing the Texinfo file.  It seems
>> >> from the few uses one sees on the Web that nobody else fared
>> >> better.
>> >
>> > I've not used it so I can't comment.
>>
>> You better do so.  See below.
>
> If It's crap I'm prepared to work to improve it.

I don't say it is crap: in contrast, I stated that it apparently does
quite a good job.  But it appears to be mostly unmaintainable and
untweakable by anybody but the author.  And depending on a single
person is never a good idea.

>> Here is the problem: Richard Stallman has been quite sympathetic to
>> replacing Texinfo if a suitable alternative comes up.  It hasn't up
>> to now.
>
> According to those driving the project, clearly well within their
> comfort zone.

If you bother to comment to something, you better make it less
cryptic, or you are wasting both your own as well as your readers'
time.

>> Here are the requirements for it as far as I am concerned (I don't
>> think you have a reasonable chance to get this past Richard if the
>> following points aren't addressed satisfactorily):
>
>> a) the essential parts of the toolchain must be well-documented from a
>> documentation writer's as well as a programmer's point of view and
>> most likely copyright-assigned to the Free Software Foundation.
>
> Enough said. The group want ownership. Anothers definition of open
> not enough?

We are talking not about the definitions, but the code.

>> That  is the state of affairs with Texinfo.
>
> Clearly, since Stallman et al  developed it.
>
>> Documentation is an essential part of the GNU system.  Relying on
>> the continued goodwill of independent third parties would be a step
>> backwards from the current state of affairs.
>
> Sorry. Unfair. You're currently reliant on the good will of the
> current developers? Don't they class as independent? Eli for
> instance?

Nobody is relying on them.  The code is reasonably well-documented,
and it is copyrighted by the FSF.  So pretty much every developer can
be supplanted without development screeching to a halt.

>> This would seem to particularly apply to Docbook2X: it apparently
>> does a good job, but it is not clear what input it will accept, and
>> how a typical user could influence or extend its operation, and it
>> is written (and copyrighted) by someone who does not as a rule
>> answer Email with questions (at least I have tried and failed to
>> get a response).
>
> He's a bit cheeky with his copyright :-)
> Uses the docbook ones then copyrights them!

The Docbook definitions or actual code?

>> b) the expressivity of Texinfo must be preserved.  This concerns
>> most of the options for detailed and coarse tables of contents and
>> indices.
>
> Why? What do you want the expressivity for?  Tocs are easy enough in
> xml processing.  Ditto indexing.

If the information needed for the Info reader is no longer there, the
end user functionality is crippled.

>> c) end user access must be fast and convenient from within Emacs.
> Via current docs content?
> Generated from the XML.

Again: if you comment, do it in a manner such that more than just you
understands the comment.

>> At the current point of time, using Docbook2x for going via Texinfo
>> would mostly do the trick as a transition strategy.
>
> Why.

Because it would retain the possibility to generate Info documents as
long as Info will remain the format known to the GNU readers (Emacs
and the standalone info).

>> > My offer is to convert the emacs documentation into docbook,
>> > version 5 and work with those interested to improve it/bring it
>> > up to scratch.
>>
>> But that's the wrong way round.  At the current point of time, it
>> is not the Emacs documentation that needs to be brought up to
>> scratch, but rather the Docbook documentation, toolchain and
>> general situation.  Before that is the case, any change in the
>> source file format would be a waste of time.
>
> <chuckles/> Go RTFM. It's there.
> I'm offering my time to waste.

Again: cryptic comments like that are wasting both your and your
readers' time.

>> Experimenting with other toolchains might be easier if the Docbook
>> output of makeinfo was improved to a point where it would in most
>> cases deliver actually valid output.  Being close to
>> "roundtripping" would be a strong argument.
>
> I've never seen the logic of that argument.

It means that one can experiment with the Docbook toolchain starting
from the current existing documentation.  That makes it much easier to
judge the feasibility of transferring to a new source format.

> docbook roundtripping to word! why!  From my experience to date
> makeinfo needs a lot of work.  If its tex macros then sorry, not me.

Again: you better invest the time to make a readable comment if you
bother commenting at all.

>> > No point if the actual documenters are unwilling to move to XML
>> > though.
>>
>> As long as there is nothing in it for them, why should they?
>
> They shouldn't.
> Its for users. Not developers.
> stay comfortable folks.

So where is the benefit for the users?

>> > I've also mailed the makeinfo guy at gnu, see if the .texi to
>> > docbook can be revived. I've a nasty feeling its written in tex
>> > macros!
>>
>> As an additional note: the output of the Docbook toolchain appears to
>> be quite better than that of the Texinfo toolchain _except_ where the
>> info format is concerned: the HTML pages look nicer, the printed pages
>> possibly too (though Texinfo does a splendid job at PDF indexing).
>
> I noted that. The texi files contain the index!

No, they don't.  The info files contain the index.

> At least docbook autogenerates from index entries in the document
> body.

That's what the Texinfo toolchain does, too.  Again: where is your
point?

>> And Texinfo does not really cut it with regard to utf-8 character
>> sets.  I would still like to see evidence, though, that the
>> available Docbook toolchains do a better job where PDF, PostScript
>> or preformatted plain text are concerned (pure HTML likely should
>> work).
>
> You're wide of the mark David. Nothing to do with the toolchain.
> All down to the use of utf-8 (or 16) as the character set of XML.

But the toolchain is not XML throughout.  That's merely the source
format.

> Retain that throughout and if you have the fonts, you'll get out
> what you put in - using emacs in every mode from ASCII upwards.

As far as I know, all the XML print solutions are still using TeX, and
TeX is a strictly 8-bit engine.  So it is disingenuous to claim that
character set issues are going to magically vanish anywhere by using
XML.  XML is not the end user format.

>> So that is a definite selling point once the _primary_ purpose of
>> Texinfo, a fast user-accessible rich structured hypertext format
>> with a reasonably accessible and documented source code format to
>> people not specializing in XML, is secured.
>
> Clearly, retain status quo. OK. That's a view.

There is no point in replacing the status quo with something worse.
Yes, retaining _at least_ the status quo is a goal.  If you refuse to
aim for that, you'll never get anybody on your boat.  Doing things
differently is pointless as long as the results are not better.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation. Was My emacs was upgraded and I am a novice again
  2007-09-23 12:50     ` Emacs documentation. Was My emacs was upgraded and I am a novice again David Kastrup
@ 2007-09-23 14:55       ` Dave Pawson
       [not found]       ` <mailman.1188.1190559347.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 19+ messages in thread
From: Dave Pawson @ 2007-09-23 14:55 UTC (permalink / raw)
  To: help-gnu-emacs

On 23/09/2007, David Kastrup <dak@gnu.org> wrote:


> If I break my arm it is also more flexible.  The question is what
> tanglible, user-visible benefit you expect to be coming from the
> purported added flexibility.

Forget it David. Wouldn't want to upset you.


>
> You are proposing to have a lot of work done

No, I was offering to do a lot of work.


>
> >> I guess too many developpers actually use Texinfo to document their
> >> code, and both users and developpers seem to be happy with that.
> >
> > You may be right. I think it is worth challenging though, otherwise
> > we'll never progress?
>
> Progress without aim is just activism.  You need to balance benefits
> and efforts.

Against stagnation.






-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation. Was My emacs was upgraded and I am a novice again
       [not found]       ` <mailman.1188.1190559347.18990.help-gnu-emacs@gnu.org>
@ 2007-09-23 15:11         ` David Kastrup
  0 siblings, 0 replies; 19+ messages in thread
From: David Kastrup @ 2007-09-23 15:11 UTC (permalink / raw)
  To: help-gnu-emacs

"Dave Pawson" <dave.pawson@gmail.com> writes:

> On 23/09/2007, David Kastrup <dak@gnu.org> wrote:
>
>
>> If I break my arm it is also more flexible.  The question is what
>> tanglible, user-visible benefit you expect to be coming from the
>> purported added flexibility.
>
> Forget it David. Wouldn't want to upset you.

If you don't upset anybody by explaining user-visible benefits, you
won't get into a position to upset the current way of doing things.

>> You are proposing to have a lot of work done
>
> No, I was offering to do a lot of work.

Sure, and that is appreciated.  But it would be unrealistic to expect
that you will do all of the work to convert all of GNU to a new
document format and maintain all of that documentation in all
eternity.  So without a favorable cost/benefit estimate, you can't
expect people to jump on your boat.

And if you are fully prepared to do _all_ of the work, go ahead.
Nobody is keeping you from it.  You'll still need to convince people
in the end that they are better off using your work than what they had
previously.

>> >> I guess too many developpers actually use Texinfo to document
>> >> their code, and both users and developpers seem to be happy with
>> >> that.
>> >
>> > You may be right. I think it is worth challenging though,
>> > otherwise we'll never progress?
>>
>> Progress without aim is just activism.  You need to balance benefits
>> and efforts.
>
> Against stagnation.

Fine warcry, but we are talking about Emacs here, software close to
its 30th birthday, and GNU, inspired by ancient UNIX systems.  Of
course, you can just go ahead: "code talks" is a mantra not unheard of
in these circles.  Being able to demonstrate a working implementation
always improves your chances of acceptance.  But not to 100%.  Whether
or not you want to explain them, there need to be tangible benefits.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation. Was My emacs was upgraded and I am a novice again
  2007-09-23 11:35   ` Dave Pawson
  2007-09-23 12:37     ` Bastien
@ 2007-09-23 16:26     ` Tom Tromey
  2007-09-29 15:46     ` Emacs documentation Alan Mackenzie
  2 siblings, 0 replies; 19+ messages in thread
From: Tom Tromey @ 2007-09-23 16:26 UTC (permalink / raw)
  To: help-gnu-emacs

>>>>> "Dave" == Dave Pawson <dave.pawson@gmail.com> writes:

Dave> Because XML is more flexible and a more modern standard for
Dave> documentation IMHO.

But consider the current situation: there is a lot of Texinfo source
throughout the GNU suite; it is known by many GNU developers; tools
(well, one tool: makeinfo) for generating output from it exist and
work pretty well; and the output is in wide use in a variety of
formats.

This means there is a lot of inertia.  Any proposed change has to
carry with it a large, tangible benefit -- precisely because the cost
of switching is so high.


Personally, I like Texinfo well enough, though honestly I don't really
relish writing in any documentation format :-).

I still use info every day; I've always suspected that the vocal
anti-info contingent out there has never really given it a try :}.

Tom

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation. Was My emacs was upgraded and I am a novice again
       [not found] <mailman.1178.1190541246.18990.help-gnu-emacs@gnu.org>
  2007-09-23 10:58 ` David Kastrup
@ 2007-09-24  4:41 ` Stefan Monnier
  2007-09-25  9:24 ` Tim X
  2 siblings, 0 replies; 19+ messages in thread
From: Stefan Monnier @ 2007-09-24  4:41 UTC (permalink / raw)
  To: help-gnu-emacs

>> Again, you are confusing format and reader.  The Texinfo format is
>> archaic (but nevertheless quite alive).  The reader is what Emacs
>> offers you.  Nobody has ever proposed a user interface that would be
>> more efficient or convenient than Emacs' current info reader.

> Caveat.  When used to it?

It would be more constructive to tell us which part of the Info reader you
found confusing or lacking.  It used to be a bit tricky to use back when it
didn't support mouse-clicks to follow links, but nowadays I find it to work
largely like web-browsers do, just with better search capabilities and while
using a tiny fraction of the memory (and time) taken by Firefox to display
html documentation.

> My offer is to convert the Emacs documentation into docbook, version 5
> and work with those interested to improve it/bring it up to scratch.

Requirements:
1 - the documentation should be readable on-line from within Emacs.
2 - from a Linux/xterm/PuTTY console as well.
3 - make sure it's as easy to write docbook with Emacs than it is to write
    Texinfo.
4 - have convincing arguments about why docbook is superior.
5 - of course the documentation should also be usable without a screen
    (e.g. emacspeak).
6 - All of the above with tools covered at least by a Free Software license,
    or maybe even with the copyright transferred to the FSF.

There may be a few more, but I think it's a good starting point.
Number 1 means either a robust Docbook->Info translator, or a new elisp
package which renders Docbook (or some other intermediate format generated
from Docbook) directly in Emacs on the fly.  This could potentially use
a bit of C-level coding, linking to xml-processing libraries as long as they
are sufficiently widely supported.
And of course, the features should be a superset, so we need at least a good
indexing system and a full-body search.

> No point if the actual documenters are unwilling to move to XML though.

I don't think it's impossible to make them move, but there's going to be
a lot of resistance: just like in nature you see species which may seem just
"inferior" but they have their niche and they have developed specific
features we just don't understand which makes them better suited in
those niches.


        Stefan

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation. Was My emacs was upgraded and I am a novice again
       [not found] <mailman.1178.1190541246.18990.help-gnu-emacs@gnu.org>
  2007-09-23 10:58 ` David Kastrup
  2007-09-24  4:41 ` Stefan Monnier
@ 2007-09-25  9:24 ` Tim X
  2 siblings, 0 replies; 19+ messages in thread
From: Tim X @ 2007-09-25  9:24 UTC (permalink / raw)
  To: help-gnu-emacs

"Dave Pawson" <dave.pawson@gmail.com> writes:

> On 23/09/2007, David Kastrup <dak@gnu.org> wrote:
>> "Dave Pawson" <dave.pawson@gmail.com> writes:
>
>> One does not get acquainted with Emacs' editing by reading its C and
>> Lisp source code either.  The documentation system of Emacs is _info_
>> as far as online access is concerned.  The .texi files are not
>> intended for reading, but for writing.  It is source code.
>
> One does if one believes they can be improved.
>
>
>>
>> So I really repeat the recommendation to get acquanted with the info
>> reader in Emacs.  It puts the information at your fingertip, and the
>> .texi files don't do that.
>
> Point taken.
>
>> Again, you are confusing format and reader.  The Texinfo format is
>> archaic (but nevertheless quite alive).  The reader is what Emacs
>> offers you.  Nobody has ever proposed a user interface that would be
>> more efficient or convenient than Emacs' current info reader.
>
> Caveat. When used to it?
>
>  So the
>> source of contention is the source file format (and the compiled
>> _fast_ info format), but that is nothing that would affect the _usage_
>> of the files: changing the format would probably achieve no
>> user-visible change inside of Emacs apart from slowing it down.  At
>> the current point of time, info access is near instantaneous.
>
> Can't disagree with that.
>
> But yes. the contention is that the source file format and end user access
> can be improved.
>
>
>
>> XML is not an end user format.
>
> It's the best starting point for an end user format that I've ever found.
>
>
>
>> docbook2x is undocumented software.  I used it to provide a user
>> manual in info format for git.  It was reasonably easy to do this,
>> except that it was near impossible to put the respective directory
>> entries at the top.  After working on this a few days, I punted and
>> used a Perl script for post-processing the Texinfo file.  It seems
>> from the few uses one sees on the Web that nobody else fared better.
>
> I've not used it so I can't comment.
>
>
>
>
>> The combined largely under- or undocumented and inscrutable layerism
>> of XML, Docbook, Ascii2doc and Docbook2x makes it impossible to
>> achieve a particular effect at the end of the toolchain without weeks
>> of previous study.
>
> Yes. I agree. The combination is nearly as bad as sgml+dsssl+emacs :)
>
> I've spent that time and am fairly happy with docbook, xml, xslt, xsl-fo.
> (I host the docbook and xslt faq )
>
>
>>
>> While the toolchain may be in better shape (I found it to produce
>> pretty much perfect Texinfo from the get-go while Texinfo's Docbook
>> output was ill-formed), it is just not usable without months of study
>> and fishing for information in distributed places.
>
>
>
>>
>> Coming back to the manual page problem: in Texinfo, this could be
>> solved easily using @include and @raisesections, consulting just a
>> single manual about a single format, a well-structured and indexed
>> manual that can be browsed efficiently in Emacs even on slow machines.
>
> Which is a solution to the last issue.
> From an XML source I could identify and write out small files needed
> by the elisp for inclusion where needed (even language specific if
> needs be).
>
>
>
>
>
>>
>> In contrast, the information for the XML toolchains is scattered all
>> over the place and rarely in a format that can be readily browsed by
>> humans without starting to convert and manipulate stuff first.
>
>
> Yep.
>
> My offer is to convert the emacs documentation into docbook, version 5
> and work with those interested to improve it/bring it up to scratch.
>
> I've sent a demo chapter to Eli for comment.
>
> No point if the actual documenters are unwilling to move to XML though.
>
> I've also mailed the makeinfo guy at gnu, see if the .texi to docbook
> can be revived. I've a nasty feeling its written in tex macros!
>

Its great you are willing to put in all the effort to try and move things
over. However, I'm skeptical about the results we will get. 

While XML has great power, DK is correct that getting to grips with a
markup definition like docbook is much much harder than writing
texinfo. The basic markup isn't too hard to get use to, but the knowledge
required to process it into different presentation formats is really quite
a task. I really like the flexibility XML markup offers (though I'm getting
very tired of everyone thinking its a magic bullet to every problem - but
thats another gripe I'll leave ... for now). On some levels, docbook is
more 'pure' because of its cleaner seperation of content from
presentation. Texinfo is a bit mixed - it has markup that is content
defining, but it also mixes in markup which is presentation oriented. 

both approaches have pros and cons. Docbook has the promise of providing a
markup that can truely be processed to give us different presentation
formats in a consistent manner. However, it has a steeper learning curve
and while modes like nxml make it fairly easy to use, its still harder for
people to adjust to (have we all been ruined by wysiwyg editors?). 

Texinfo does info pages really well and some other well defined formats,
but isn't going to give you a standard 'quality' over different
presentation formats and has a more restrictive set of formats that it
supports. However, its easier to rite in, easier to format into one of its
presentation forms and has some other nice features that make it pretty
good for working with emacs. 

One of the advantages of info is its fast and close integration with
emacs. Any change in documentation format will need to preserve this. If
the sources can be moved to being XML based and we still get as good a
quality format in the info pages, then it may get enough support to be
maintained. However, I think this is going to be where things will fall
apart. The format that is used has to be one that those who maintain the
documentation are willing to switch to. One problem that I can see, (apart
from convincing people to learn docbook or whatever) is that markup
definitions like docbook are usually a *lot* richer in supported markup
tags than texinfo. People will find this confusing and as the documentation
is likely maintained by multiple people, there will need to be some sort of
style guide that reduces the choices to ensure a consistent look and feel
once it is processed to a particular format, such as info. 

One of the most common problems I've encountered when trying to get people
to use docbook is that they find the choices in tags overwhelming. There
are a number of 'stripped down' docbook based definitions that attempt to
resolve this problem by only defining a subset of all the defined docbook
tags. It may be something that is worth looking into for this task.

Tim




-- 
tcross (at) rapttech dot com dot au

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation. Was My emacs was upgraded and I am a novice again
  2007-09-23 10:58 ` David Kastrup
  2007-09-23 13:02   ` Dave Pawson
       [not found]   ` <mailman.1184.1190552548.18990.help-gnu-emacs@gnu.org>
@ 2007-09-25  9:31   ` Tim X
  2 siblings, 0 replies; 19+ messages in thread
From: Tim X @ 2007-09-25  9:31 UTC (permalink / raw)
  To: help-gnu-emacs

David Kastrup <dak@gnu.org> writes:

> "Dave Pawson" <dave.pawson@gmail.com> writes:
>
>> On 23/09/2007, David Kastrup <dak@gnu.org> wrote:
>>> "Dave Pawson" <dave.pawson@gmail.com> writes:
>>
>> Point taken.
>>
>>> Again, you are confusing format and reader.  The Texinfo format is
>>> archaic (but nevertheless quite alive).  The reader is what Emacs
>>> offers you.  Nobody has ever proposed a user interface that would be
>>> more efficient or convenient than Emacs' current info reader.
>>
>> Caveat. When used to it?
>
> No caveat.  When you are not used to it, you start by clicking either
> the links in the text or headers (which gives you all that HTML has to
> offer with regard to navigation) or the Info menu (which gives you
> more).
>
>>> So the source of contention is the source file format (and the
>>> compiled _fast_ info format), but that is nothing that would affect
>>> the _usage_ of the files: changing the format would probably
>>> achieve no user-visible change inside of Emacs apart from slowing
>>> it down.  At the current point of time, info access is near
>>> instantaneous.
>>
>> Can't disagree with that.
>>
>> But yes. the contention is that the source file format and end user
>> access can be improved.
>
> Both are different things.  So far, I have yet to see a proposal for
> improving the end user access that would benefit from a source file
> format change.
>
>>> XML is not an end user format.
>>
>> It's the best starting point for an end user format that I've ever
>> found.
>
> Correction.  "best general purpose starting point".  It is not the
> best starting point for info, for example...
>
>>> docbook2x is undocumented software.  I used it to provide a user
>>> manual in info format for git.  It was reasonably easy to do this,
>>> except that it was near impossible to put the respective directory
>>> entries at the top.  After working on this a few days, I punted and
>>> used a Perl script for post-processing the Texinfo file.  It seems
>>> from the few uses one sees on the Web that nobody else fared
>>> better.
>>
>> I've not used it so I can't comment.
>
> You better do so.  See below.
>
>>> The combined largely under- or undocumented and inscrutable
>>> layerism of XML, Docbook, Ascii2doc and Docbook2x makes it
>>> impossible to achieve a particular effect at the end of the
>>> toolchain without weeks of previous study.
>>
>> Yes. I agree. The combination is nearly as bad as sgml+dsssl+emacs
>> :)
>>
>> I've spent that time and am fairly happy with docbook, xml, xslt,
>> xsl-fo.  (I host the docbook and xslt faq )
>
> Here is the problem: Richard Stallman has been quite sympathetic to
> replacing Texinfo if a suitable alternative comes up.  It hasn't up to
> now.  Here are the requirements for it as far as I am concerned (I
> don't think you have a reasonable chance to get this past Richard if
> the following points aren't addressed satisfactorily):
>
> a) the essential parts of the toolchain must be well-documented from a
> documentation writer's as well as a programmer's point of view and
> most likely copyright-assigned to the Free Software Foundation.  That
> is the state of affairs with Texinfo.  Documentation is an essential
> part of the GNU system.  Relying on the continued goodwill of
> independent third parties would be a step backwards from the current
> state of affairs.  This would seem to particularly apply to Docbook2X:
> it apparently does a good job, but it is not clear what input it will
> accept, and how a typical user could influence or extend its
> operation, and it is written (and copyrighted) by someone who does not
> as a rule answer Email with questions (at least I have tried and
> failed to get a response).
>
> b) the expressivity of Texinfo must be preserved.  This concerns most
> of the options for detailed and coarse tables of contents and indices.
>
> c) end user access must be fast and convenient from within Emacs.  At
> the current point of time, using Docbook2x for going via Texinfo would
> mostly do the trick as a transition strategy.  But there would likely
> need to be some translation process (similar to producing cattable
> manpages from *roff sources) with fewer external dependencies that one
> could rely on.
>
>>> In contrast, the information for the XML toolchains is scattered
>>> all over the place and rarely in a format that can be readily
>>> browsed by humans without starting to convert and manipulate stuff
>>> first.
>>
>> Yep.
>>
>> My offer is to convert the emacs documentation into docbook, version
>> 5 and work with those interested to improve it/bring it up to
>> scratch.
>
> But that's the wrong way round.  At the current point of time, it is
> not the Emacs documentation that needs to be brought up to scratch,
> but rather the Docbook documentation, toolchain and general situation.
> Before that is the case, any change in the source file format would be
> a waste of time.
>
> Experimenting with other toolchains might be easier if the Docbook
> output of makeinfo was improved to a point where it would in most
> cases deliver actually valid output.  Being close to "roundtripping"
> would be a strong argument.
>
>> I've sent a demo chapter to Eli for comment.
>>
>> No point if the actual documenters are unwilling to move to XML
>> though.
>
> As long as there is nothing in it for them, why should they?
>
>> I've also mailed the makeinfo guy at gnu, see if the .texi to
>> docbook can be revived. I've a nasty feeling its written in tex
>> macros!
>
> As an additional note: the output of the Docbook toolchain appears to
> be quite better than that of the Texinfo toolchain _except_ where the
> info format is concerned: the HTML pages look nicer, the printed pages
> possibly too (though Texinfo does a splendid job at PDF indexing).
> And Texinfo does not really cut it with regard to utf-8 character
> sets.  I would still like to see evidence, though, that the available
> Docbook toolchains do a better job where PDF, PostScript or
> preformatted plain text are concerned (pure HTML likely should work).
>
> So that is a definite selling point once the _primary_ purpose of
> Texinfo, a fast user-accessible rich structured hypertext format with
> a reasonably accessible and documented source code format to people
> not specializing in XML, is secured.
>
> That is by no means a small job.
>

Well presented and argued David. I think the licensing point is very
important - there is no way Richard will accept the documentation format
moving to one that is not under an acceptable license i.e. one that
protects freedoms and not just one that makes it 'legal' to use. 

Tim

-- 
tcross (at) rapttech dot com dot au

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation.
  2007-09-23 11:35   ` Dave Pawson
  2007-09-23 12:37     ` Bastien
  2007-09-23 16:26     ` Tom Tromey
@ 2007-09-29 15:46     ` Alan Mackenzie
  2007-09-29 15:47       ` Dave Pawson
  2007-09-29 16:33       ` Eli Zaretskii
  2 siblings, 2 replies; 19+ messages in thread
From: Alan Mackenzie @ 2007-09-29 15:46 UTC (permalink / raw)
  To: Dave Pawson; +Cc: help-gnu-emacs

Hi, Dave!

On Sun, Sep 23, 2007 at 12:35:05PM +0100, Dave Pawson wrote:
> On 23/09/2007, Bastien <bzg@altern.org> wrote:
> > "Dave Pawson" <dave.pawson@gmail.com> writes:

> > > My offer is to convert the emacs documentation into docbook, version 5
> > > and work with those interested to improve it/bring it up to scratch.

> > It would be like trying to convert man pages into docbook. Why?

> Because XML is more flexible and a more modern standard for
> documentation IMHO.

Assembler is more flexible than C, but nobody nowadays uses assembler
very much.  Being "more modern" has never been a compelling argument for
anything in Emacs.  The question to ask is "is it any good?".

XML isn't any good as a source format; it's designed to be parseable by
programs with minimum effort, and places no value on being readable or
writeable.  Using XML/Docbook as a source language would be taking a
step back to 1960s technology:

(i) There is nothing like Texinfo's "@" or Lisp's/C's "\" for escape
purposes; you've got to write "<" as "&lt;", much like you had to write
".lt." in Fortran.  "ü" (German "u umlaut") appears as "&uuml;".  And so
on.  Yuck!  That stuff isn't unreadable, but it's uncomfortably close,
and it's clumsy enough to condemn XML.

(ii) Instead of using single character block delimiters like "{}" in C
or "()" in Lisp, XML uses long, long keywords, e.g.
"<VeryLongUnreadableDelimiter>" to open a block and
"</VeryLongUnreadableDelimiter>" to close it.  This harks back to
Algol's and Pascal's "BEGIN" and "END".  It also reduces the readability
and signal to noise ratio horribly.  Hackers detest prolixity.  ;-)

(iii) You can't just comment out a block of XML.  Doing so make the
source syntactically incorrect.  In fact, XML comments have a rigid
syntactic structure which stops you describing XML constructs in them.
I think this snag, in itself, rules out XML/Docbook as a sensible source
format.

(iv) This one might just be me, but I find "<" and ">" as delimiters far
too jaggy and violent (except for occasional use, as in C's "#include
<stdio.h>" or a C++/Java template).

> > I guess too many developpers actually use Texinfo to document their
> > code, and both users and developpers seem to be happy with that.

> You may be right. I think it is worth challenging though, otherwise
> we'll never progress?

XML as a source language isn't progress; it's like regressing into the
dark ages.  I suspect most Docbook writers actually use special purpose
editors to create their source code, rather than Emacs or vi.  This is
anathema to Emacs developers.  If we changed our default format from
.texi to .xml, I'd probably just give up hacking documentation - it'd be
too painful.

I'm not saying that Texinfo is ideal, and maybe we could use a better
format.  But XML isn't it.

> -- 
> Dave Pawson

-- 
Alan Mackenzie (Ittersbach, Germany).

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation.
  2007-09-29 15:46     ` Emacs documentation Alan Mackenzie
@ 2007-09-29 15:47       ` Dave Pawson
  2007-09-29 16:03         ` Peter Dyballa
  2007-09-29 19:42         ` Alan Mackenzie
  2007-09-29 16:33       ` Eli Zaretskii
  1 sibling, 2 replies; 19+ messages in thread
From: Dave Pawson @ 2007-09-29 15:47 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 2718 bytes --]

On 29/09/2007, Alan Mackenzie <acm@muc.de> wrote:
>
> > Because XML is more flexible and a more modern standard for
> > documentation IMHO.
>
> Assembler is more flexible than C, but nobody nowadays uses assembler
> very much.  Being "more modern" has never been a compelling argument for
> anything in Emacs.  The question to ask is "is it any good?".

Yes. Look around.


>
> XML isn't any good as a source format; it's designed to be parseable by
> programs with minimum effort, and places no value on being readable or
> writeable.  Using XML/Docbook as a source language would be taking a
> step back to 1960s technology:

Rubbish.


>
> (i) There is nothing like Texinfo's "@" or Lisp's/C's "\" for escape
> purposes; you've got to write "<" as "&lt;", much like you had to write
> ".lt." in Fortran.  "ü" (German "u umlaut") appears as "&uuml;".  And so
> on.  Yuck!  That stuff isn't unreadable, but it's uncomfortably close,
> and it's clumsy enough to condemn XML.

Go play catchup Alan. You're years behind. About ten.


>
> (ii) Instead of using single character block delimiters like "{}" in C
> or "()" in Lisp, XML uses long, long keywords, e.g.
> "<VeryLongUnreadableDelimiter>" to open a block and
> "</VeryLongUnreadableDelimiter>" to close it.  This harks back to
> Algol's and Pascal's "BEGIN" and "END".  It also reduces the readability
> and signal to noise ratio horribly.  Hackers detest prolixity.  ;-)

It's called semantic markup.

>
> (iii) You can't just comment out a block of XML.
Wrong.
> Doing so make the
> source syntactically incorrect.  In fact, XML comments have a rigid
> syntactic structure which stops you describing XML constructs in them.
> I think this snag, in itself, rules out XML/Docbook as a sensible source
> format.

Where have you been?

>
> (iv) This one might just be me, but I find "<" and ">" as delimiters far
> too jaggy and violent (except for occasional use, as in C's "#include
> <stdio.h>" or a C++/Java template).

It's just you.

>
> > > I guess too many developpers actually use Texinfo to document their
> > > code, and both users and developpers seem to be happy with that.

Let's agree to differ on that.


>
> > You may be right. I think it is worth challenging though, otherwise
> > we'll never progress?
>
> XML as a source language isn't progress; it's like regressing into the
> dark ages.

Go ask around the OSS world what's being used for documentation.

>  I suspect most Docbook writers actually use special purpose
> editors to create their source code, rather than Emacs or vi.

Emacs has done for me for the last ten years.

> I'm not saying that Texinfo is ideal,


Oh good.



-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation.
  2007-09-29 15:47       ` Dave Pawson
@ 2007-09-29 16:03         ` Peter Dyballa
  2007-09-29 19:42         ` Alan Mackenzie
  1 sibling, 0 replies; 19+ messages in thread
From: Peter Dyballa @ 2007-09-29 16:03 UTC (permalink / raw)
  To: Dave Pawson; +Cc: help-gnu-emacs


Am 29.09.2007 um 17:47 schrieb Dave Pawson:

>>
>> XML isn't any good as a source format; it's designed to be  
>> parseable by
>> programs with minimum effort, and places no value on being  
>> readable or
>> writeable.  Using XML/Docbook as a source language would be taking a
>> step back to 1960s technology:
>
> Rubbish.

Can't you sleep just one night over it? This is what I learned from  
military service.

>>
>> (ii) Instead of using single character block delimiters like "{}"  
>> in C
>> or "()" in Lisp, XML uses long, long keywords, e.g.
>> "<VeryLongUnreadableDelimiter>" to open a block and
>> "</VeryLongUnreadableDelimiter>" to close it.  This harks back to
>> Algol's and Pascal's "BEGIN" and "END".  It also reduces the  
>> readability
>> and signal to noise ratio horribly.  Hackers detest prolixity.  ;-)
>
> It's called semantic markup.

How about usable markup?


--
Mit friedvollen Grüßen

   Pete

"Give a man a fish, and you've fed him for a day. Teach him to fish,  
and you've depleted the lake."

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation.
  2007-09-29 15:46     ` Emacs documentation Alan Mackenzie
  2007-09-29 15:47       ` Dave Pawson
@ 2007-09-29 16:33       ` Eli Zaretskii
  1 sibling, 0 replies; 19+ messages in thread
From: Eli Zaretskii @ 2007-09-29 16:33 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Sat, 29 Sep 2007 15:46:01 +0000
> From: Alan Mackenzie <acm@muc.de>
> Cc: help-gnu-emacs@gnu.org
> 
> I suspect most Docbook writers actually use special purpose editors
> to create their source code, rather than Emacs or vi.

I think the real reason is that, in professional book publishing
business, many editorial and other auxiliary tools speak Docbook.  I'm
quite sure I've heard this in the past from someone who published
several books (and needed makeinfo's Docbook output feature for that
very reason).

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Emacs documentation.
  2007-09-29 15:47       ` Dave Pawson
  2007-09-29 16:03         ` Peter Dyballa
@ 2007-09-29 19:42         ` Alan Mackenzie
  1 sibling, 0 replies; 19+ messages in thread
From: Alan Mackenzie @ 2007-09-29 19:42 UTC (permalink / raw)
  To: Dave Pawson; +Cc: help-gnu-emacs

Hi again, Dave!

>On 29/09/2007, Alan Mackenzie <address@hidden> wrote:

>>> Because XML is more flexible and a more modern standard for
>>> documentation IMHO.

>> Assembler is more flexible than C, but nobody nowadays uses assembler
>> very much.  Being "more modern" has never been a compelling argument for
>> anything in Emacs.  The question to ask is "is it any good?".

>Yes. Look around.

I have.  I once had to hack an XML config file and I've amended some
Docbook source code, though it was some while ago.  They were both
horrible.

What's so good about XML/Docbook as a source format?

>> XML isn't any good as a source format; it's designed to be parseable by
>> programs with minimum effort, and places no value on being readable or
>> writeable.  Using XML/Docbook as a source language would be taking a
>> step back to 1960s technology:

>Rubbish.

:-)

>> (i) There is nothing like Texinfo's "@" or Lisp's/C's "\" for escape
>> purposes; you've got to write "<" as "&lt;", much like you had to
>> write ".lt." in Fortran.  "ü" (German "u umlaut") appears as
>> "&uuml;".  And so on.  Yuck!  That stuff isn't unreadable, but it's
>> uncomfortably close, and it's clumsy enough to condemn XML.

>Go play catchup Alan. You're years behind. About ten.

Oh good!  So please correct my misapprehension and tell me what the
Docbook escape character is.  Next, please tell me how to write a "<"
and a "ü" in a modern Docbook source.  At any stage, you're more than
welcome to attempt to persuade me that writing Docbook source is easy,
pleasant and productive.  Thanks in advance!

>> (ii) Instead of using single character block delimiters like "{}" in
>> C or "()" in Lisp, XML uses long, long keywords, e.g.
>> "<VeryLongUnreadableDelimiter>" to open a block and
>> "</VeryLongUnreadableDelimiter>" to close it.  This harks back to
>> Algol's and Pascal's "BEGIN" and "END".  It also reduces the
>> readability and signal to noise ratio horribly.  Hackers detest
>> prolixity.  ;-)

>It's called semantic markup.

It doesn't matter what it's called.  The important point is that it's
difficult to read and likely difficult to write - much more so than the
Texinfo equivalents.

>> (iii) You can't just comment out a block of XML.

>Wrong.

Oh good!  Please tell me how "just" to comment out a block of XML, with
emphasis on the word "just".  I seem to remember Emacs in SGML mode
going through the region being commented, replacing all the "--"s with
"-/-", and not being able to reverse that transformation.  That's unjust
indeed.

>> Doing so makes the source syntactically incorrect.  In fact, XML
>> comments have a rigid syntactic structure which stops you describing
>> XML constructs in them.  I think this snag, in itself, rules out
>> XML/Docbook as a sensible source format.

>Where have you been?

In XM hell.

[ .... ]

>> > You may be right. I think it is worth challenging though, otherwise
>> > we'll never progress?

>> XML as a source language isn't progress; it's like regressing into the
>> dark ages.

>Go ask around the OSS world what's being used for documentation.

Why?  The fact that vast numbers of people use or have used Microsoft
Windows or XML or Cobol or Emacs or VHS videotape or Trabant cars or
variable length character encodings or Docbook or Fortran has no bearing
on whether these things are any good, or what they are good for.

I'm not sure you've thought this issue through.  Popularity doesn't imply
quality.  XML-based thingies and Microsoft Word (*.doc) are both widely
used formats, yet at least half of them are bad formats.  As a Docbook
enthusiast, you should be able to counter my posts by arguing the
intrinsic merits of Docbook/XML, and why it would be superior to Texinfo
in the Emacs project.  I haven't seen you doing this.

>>  I suspect most Docbook writers actually use special purpose
>> editors to create their source code, rather than Emacs or vi.

>Emacs has done for me for the last ten years.

Do most Docbook writers use special purpose editors or don't they?

>-- 
>Dave Pawson

-- 
Alan Mackenzie (Ittersbach, Germany).

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2007-09-29 19:42 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-23  9:53 Emacs documentation. Was My emacs was upgraded and I am a novice again Dave Pawson
2007-09-23 11:12 ` Bastien
2007-09-23 11:35   ` Dave Pawson
2007-09-23 12:37     ` Bastien
2007-09-23 16:26     ` Tom Tromey
2007-09-29 15:46     ` Emacs documentation Alan Mackenzie
2007-09-29 15:47       ` Dave Pawson
2007-09-29 16:03         ` Peter Dyballa
2007-09-29 19:42         ` Alan Mackenzie
2007-09-29 16:33       ` Eli Zaretskii
     [not found]   ` <mailman.1182.1190547310.18990.help-gnu-emacs@gnu.org>
2007-09-23 12:50     ` Emacs documentation. Was My emacs was upgraded and I am a novice again David Kastrup
2007-09-23 14:55       ` Dave Pawson
     [not found]       ` <mailman.1188.1190559347.18990.help-gnu-emacs@gnu.org>
2007-09-23 15:11         ` David Kastrup
     [not found] <mailman.1178.1190541246.18990.help-gnu-emacs@gnu.org>
2007-09-23 10:58 ` David Kastrup
2007-09-23 13:02   ` Dave Pawson
     [not found]   ` <mailman.1184.1190552548.18990.help-gnu-emacs@gnu.org>
2007-09-23 13:36     ` David Kastrup
2007-09-25  9:31   ` Tim X
2007-09-24  4:41 ` Stefan Monnier
2007-09-25  9:24 ` Tim X

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).