unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Gavin Smith <gavinsmith0123@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org, Per Bothner <per@bothner.com>,
	Texinfo <bug-texinfo@gnu.org>
Subject: Re: Any interest in using HTML for locally-installed Texinfo documentation?
Date: Thu, 4 Apr 2019 11:23:20 +0100	[thread overview]
Message-ID: <20190404102320.GA6369@darkstar.lan> (raw)
In-Reply-To: <87ef6ipzef.fsf@gnu.org>

On Wed, Apr 03, 2019 at 11:11:36PM +0200, Ludovic Courtès wrote:
> I find things like DOMTerm very impressive, and it’s true that
> HTML/JS/CSS nowadays constitute an unequaled UI framework (to the point
> that GNOME Shell is also written in JS + CSS.)
> 
> That would be a good argument in favor of doing things this way.  Yet, I
> have to say that this is not a direction that I like, technically and
> otherwise (we’re talking about code bases orders of magnitudes bigger
> than all of Texinfo including info-stnd, and code bases under the
> control of a couple of companies.)

We need something that can render text and has hyperlinks.  When 
the user clicks a hyperlink, the program should have control over what 
happens.  It doesn't sound like a very complicated problem.  

Maybe there is a lightweight solution that doesn't require embedding a 
full web browser in the program.  For example, in Qt there is the QLabel 
widget which appears to support links in text: 
https://doc.qt.io/qt-5/qlabel.html#signals

It may be possible to change the embedded web browser to a different 
one if a company controlling it takes it in a bad direction.

Ideally, we'd avoid tying a graphical help browser into large frameworks 
like Chromium.  However, I think that an embedded browser (as in 
DomTerm) is a good place to start, reusing the existing JavaScript code.
Maybe simpler solutions could be explored later.

I've been trying to learn about Qt and it certainly is quite complex 
(taking many hours to compile some of its development tools).

> I was mentioning this because it’s an experiment that Andy Wingo did
> about 15 years (?!) ago.  Andy wrote the Texinfo parser that’s now part
> of Guile, and then had a Guile-GTK program that used a tree widget to
> show the contents, had clickable links, text would reflow, etc.  (See
> <https://wingolog.org/archives/2004/07/25/literate-programming-with-guile-lib>.
> Unfortunately the screenshot has disappeared.)
> 
> That said, it surely is quite a bit of work, but I think it’s an option
> we could consider.

This is an interesting idea.  How far developed was the program?  Is it 
still extant?  texi2any has its own Texinfo parser, written in Perl and 
C.

  parent reply	other threads:[~2019-04-04 10:20 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-01 12:55 Any interest in using HTML for locally-installed Texinfo documentation? Gavin Smith
2019-04-01 14:01 ` sirgazil
2019-04-02  9:37 ` Ludovic Courtès
2019-04-02 15:02   ` Gavin Smith
2019-04-02 16:46     ` Per Bothner
2019-04-07 16:28       ` Gavin Smith
2019-04-08 15:12         ` Ludovic Courtès
2019-04-08 15:39           ` Pierre Neidhardt
2019-04-08 23:46           ` Gavin Smith
2019-04-09  6:25             ` Eli Zaretskii
2019-04-13 16:21           ` Gavin Smith
2019-04-14 19:25             ` Pronaip
2019-10-15 19:27             ` Gavin Smith
2019-10-15 20:20               ` P
2019-10-15 20:35                 ` Gavin Smith
2019-10-15 20:40                 ` Per Bothner
2019-10-15 21:00                   ` Gavin Smith
2019-10-15 21:09                     ` Per Bothner
2019-10-15 21:30                       ` Gavin Smith
2019-10-16  1:39               ` Ricardo Wurmus
2019-10-19 20:31               ` Ludovic Courtès
2019-10-22 19:00                 ` Gavin Smith
2019-10-22 20:18                   ` Gavin Smith
2019-11-03 14:04                   ` Ludovic Courtès
2019-11-03 15:37                     ` Gavin Smith
2019-11-06 21:49                       ` Ludovic Courtès
2019-04-03 21:21     ` Ludovic Courtès
2019-04-04 10:33       ` Gavin Smith
2019-04-02 15:31   ` Per Bothner
2019-04-03 21:11     ` Ludovic Courtès
2019-04-03 22:44       ` Per Bothner
2019-04-04 10:23       ` Gavin Smith [this message]
2019-04-04 16:02         ` Ludovic Courtès
2019-04-02 20:12   ` Ricardo Wurmus
2019-04-02 20:27     ` Ricardo Wurmus
2019-04-02 22:58       ` sirgazil
2019-04-02 22:10     ` Per Bothner
2019-04-02 23:09       ` sirgazil
2019-04-03  8:43         ` Gavin Smith
2019-04-03 14:23           ` sirgazil
2019-04-03 14:40             ` Per Bothner
2019-04-03 14:49       ` Ricardo Wurmus
2019-04-02 21:02 ` George Clemmer
2019-04-07 11:08   ` Gavin Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190404102320.GA6369@darkstar.lan \
    --to=gavinsmith0123@gmail.com \
    --cc=bug-texinfo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=per@bothner.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.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).