unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* A new online publishing tool for Texinfo documents.
@ 2003-11-22 20:50 Nic Ferrier
  2003-11-23 16:34 ` Richard Stallman
  0 siblings, 1 reply; 30+ messages in thread
From: Nic Ferrier @ 2003-11-22 20:50 UTC (permalink / raw)


Bob Chasell and I have been discussing a new way of making Texinfo
available online. I am planning to build what we have discussed over
December.

This message has been sent to all interested parties.

The aims of the new system are to make a web based info reader that
would be as good as the console based Info reader and that can be
used by people with slow Internet connections and free software web
browsers (Mozilla, Galeon, etc... as well as Emacs/W3, Lynx, etc...)


Our plan is to do this:

1 alter makeinfo --xml so that it splits the XML by Texinfo
  nodes. The --no-split switch will cause the existing output (or
  maybe add a new switch for the new XML output?)

2 write an XSLT stylesheet that transforms the chunked XML into
  specialized HTML;

  the specialized HTML will include Javascript to emulate Info
  navigation, index lookups, etc...

3 write a CGI script that will lookup a regular expression in the HTML
  files and return either a list of hits or the HTML file containing
  the Nth hit (N being an optional argument supplied to the CGI
  script)

4 write a shell script for linking all this together, and possibly to
  auto-magically install the produced files into an Apache webserver
  (other webservers to be supported as and when I have time).


The shell script(4) will be dependant on a tool called xsltproc which
comes with the GNOME libxsl library and is quite commonly available
on free software machines. xsltproc runs on all free operating
systems and also some non-free ones such as Windoze (but obviously we
don't care much about those  /8-)



I personally don't think this will deprecate the existing HTML output
from makeinfo because that has good support for ALL browsers.



There is one big problem with the current plan:

Emacs/W3 and Lynx do not support Javascript so we will have to find
another way of binding actions to keys within the HTML pages
downloaded to those browsers.

Does anyone have any bright ideas about that?


I am considering the potential of adding Mozilla's Javascript engine
to Emacs and Lynx which would solve this problem. The licence of
Mozilla's Javascript engine is compatible with the GPL. However, I
think this might be rather a big job, certainly bigger than the new
publishing system for online Texinfo.

 
On the subject of Lynx, has anyone tried this version of Links?

  http://atrey.karlin.mff.cuni.cz/~clock/twibright/links/

It apparently has Javascript support and is GPLed.


Nic

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: A new online publishing tool for Texinfo documents.
@ 2003-11-22 21:18 Karl Berry
  2003-11-22 21:37 ` Nic Ferrier
  0 siblings, 1 reply; 30+ messages in thread
From: Karl Berry @ 2003-11-22 21:18 UTC (permalink / raw)
  Cc: epameinondas

Hi Nic, Bob, all,

    This message has been sent to all interested parties.

Well, not quite.  You missed everyone else interested in Texinfo :).
I've included texinfo-pretest@texinfo.org now.  (I also forwarded your
message there so the others will have the background.)

Overall, I like the plan very much.  

As you may already know (perhaps it was the impetus for this?), there
was a long thread on emacs-devel recently about approaching this from
the other direction: extending Info format to carry more markup
information, so that Emacs could do a better job rendering it (the
original hope was to have a way to colorize certain parts of the Info files).

At that time, I stated (and still believe) that starting with the
makeinfo XML output would be much better and easier than turning Info
format into some kind of ersatz XML/HTML.  So I'm very happy to see this
proposal :).

Here are other comments.

    alter makeinfo --xml so that it splits the XML by Texinfo

I am no xml expert, but I'm not sure that is necessary or desirable,
since the only thing that will read the XML is other scripts.  It is the
specialized HTML that needs to be split.  And even then, split nodes are
just one possible outcome.  There are xref issues here, which Patrice
Dumas and I have hashed over at some length.  Anyway, all that is a
technical detail.

In any case, you should know that Alper Ersoy <dirt@gtk.org> (who's on
texinfo-pretest) has been doing great work with makeinfo in the last few
weeks, especially the XML, Docbook, and HTML output.  I'm sure he will
have some comments.

Alper has also worked a lot with the XML output for purposes of the GTK
documentation system.  Maybe some of that can be reused.

    I personally don't think this will deprecate the existing HTML output
    from makeinfo because that has good support for ALL browsers.

And doesn't require any server-side support.

    Emacs/W3 and Lynx do not support Javascript so we will have to find
    another way of binding actions to keys within the HTML pages
    downloaded to those browsers.

Presumably it is possible to do anything in Emacs :).  
In any case, Emacs/W3 may not the best approach for Emacs support.  But
that's up to the emacs developers, of course.

As for lynx, I do not know; I haven't tried the version of links you
mention.

JavaScript is the only standard way to do browser-side programming that
I know of.  It may turn out that only a small subset of JavaScript is
actually needed for the job, that wouldn't be as painful to add to Emacs
and Lynx as the whole huge mess.

Thanks,
karl
_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo/
texinfo-pretest@texinfo.org
http://ff0.org/mailman/listinfo/texinfo-pretest


^ permalink raw reply	[flat|nested] 30+ messages in thread
[parent not found: <200311222102.hAML20T05380@f7.net>]
* Re: A new online publishing tool for Texinfo documents.
@ 2003-11-25 13:58 Karl Berry
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Berry @ 2003-11-25 13:58 UTC (permalink / raw)
  Cc: juri, epameinondas, emacs-devel, nferrier, bob

    <!-- *Info-Node* next=XX prev=XX up=XX index=XX ... -->

Most of this info, at least, is already there, in every format.

    into every page and let emacs info reader -- or stand-alone info

?

Once again, I believe that the emacs/standalone info readers should not
be changed to try to read html or xml or anything-else-ml.  The whole
point of info format is to be preformatted and simple to handle.  If you
want logical markup, use something that was designed for it.  As Bob and
Nic are proposing.

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

end of thread, other threads:[~2003-12-03  0:42 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-22 20:50 A new online publishing tool for Texinfo documents Nic Ferrier
2003-11-23 16:34 ` Richard Stallman
2003-11-23 16:56   ` Nic Ferrier
2003-11-25 18:36     ` Kevin Rodgers
2003-11-25 20:05       ` Nic Ferrier
2003-11-25 22:38         ` Kim F. Storm
2003-11-26  0:21       ` Robert J. Chassell
2003-11-26  6:25         ` Eli Zaretskii
2003-11-26 18:37         ` Kevin Rodgers
2003-11-26 21:36           ` Robert J. Chassell
2003-12-02 18:54             ` Kevin Rodgers
2003-12-02 21:56               ` Robert J. Chassell
2003-12-03  0:42                 ` Kevin Rodgers
  -- strict thread matches above, loose matches on Subject: below --
2003-11-22 21:18 Karl Berry
2003-11-22 21:37 ` Nic Ferrier
2003-11-24  7:57   ` Juri Linkov
2003-11-24  9:11     ` Nic Ferrier
2003-11-25  4:27       ` Richard Stallman
2003-11-25  7:52       ` Juri Linkov
2003-11-25 11:21         ` Kim F. Storm
2003-11-24 14:10     ` Karl Berry
2003-11-25 21:45       ` Juri Linkov
2003-11-24 16:22   ` Richard Stallman
2003-11-24 16:39     ` Nic Ferrier
     [not found] <200311222102.hAML20T05380@f7.net>
2003-11-23  9:16 ` Stepan Kasal
2003-11-23  9:28   ` Miles Bader
2003-11-23 12:33     ` Stepan Kasal
2003-11-23 21:19       ` Miles Bader
2003-11-24  8:57         ` Stepan Kasal
2003-11-25 13:58 Karl Berry

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).