From: "Ludovic Courtès" <ludo@gnu.org>
To: Gavin Smith <GavinSmith0123@gmail.com>
Cc: guix-devel@gnu.org, Texinfo <bug-texinfo@gnu.org>
Subject: Re: Any interest in using HTML for locally-installed Texinfo documentation?
Date: Wed, 06 Nov 2019 22:49:26 +0100 [thread overview]
Message-ID: <87ftj0vfo9.fsf@gnu.org> (raw)
In-Reply-To: <20191103153725.GA29886@mintstar> (Gavin Smith's message of "Sun, 3 Nov 2019 15:37:25 +0000")
Hello,
Gavin Smith <gavinsmith0123@gmail.com> skribis:
> On Sun, Nov 03, 2019 at 03:04:27PM +0100, Ludovic Courtès wrote:
[...]
>> Does the reader fall back to an on-line copy of manuals that are
>> unavailable locally? That would be nice, though it should probably
>> first ask for user consent.
>
> It doesn't do that yet. It would have to look at an htmlxref.cnf file or
> equivalent, as the URL for the remote manual should not be in the locally
> installed documentation.
Sounds like a plan.
>> I’d love to see an appropriate CSS applied by default to all the locally
>> installed manual. Perhaps the WebKitGTK code could “force” a CSS to
>> each HTML page?
>
> It is possible using webkit_web_view_new_with_user_content_manager.
Neat.
>> In the future, it’d be great to have syntax highlighting like we have at
>> <https://guix.gnu.org/manual/devel/en/html_node/Using-the-Configuration-System.html>,
>> but… I guess that’s another story. :-)
>
> How is that done? Are the HTML file post-processed somehow?
Yes, it’s a bit ugly: we post-process the HTML in search of
<pre class="lisp">
blocks (which correspond to @lisp) pass them through
guile-syntax-highlight. There’s a bit of CSS for the rainbow
parentheses. See
<https://git.savannah.gnu.org/cgit/guix.git/tree/doc/build.scm#n206>.
>> What would be the next steps for you? Do you plan to have this new
>> reader released as part of the next Texinfo release, or as a separate
>> package?
>
> It would probably be for a separate package. At the moment the program
> is called "infog" standing for "Info GTK".
OK.
> There are various things that need to be done before it is ready for
> release:
> * Allow installing the program, so that it can be run via PATH
> * Handle external links in a web browser (using some kind of user
> desktop default)
> * I'd like to make the index search completions in a separate pane
> rather than a pop-up menu, as in the "devhelp" program.
> * Perhaps support for tabs
> * The program uses a deprecated API in the WebKitGTK library to access
> the DOM of pages. Allegedly it is possible to use JavaScript to do the
> same thing, but the documentation is not that helpful on how to do this.
> * There is no text search facility in pages
> * Standardize a location for installing HTML manuals. What the GNU
> Coding Standards currently says about "htmldir" is insufficient, as a
> manual may have a different name to the package it is part of.
> * It would be nice if the text input for a new window could be done as
> some kind of pop-over widget rather than in a separate dialog box.
Good. I don’t think any of these are a showstopper, except perhaps the
bit about standardizing HTML installation (and getting distros to
actually do that!). Other than that, your program is already useful as
it is, IMO.
> I only have a few hours a week to spend on this, so it could take me
> some time to get through it.
>
> I have been looking at tweaking the output of texi2any so the HTML looks
> better in this browser, including using mini-tables of contents instead
> of menus, and the table of contents linking to the top of a page rather
> than to an anchor a little down the page.
Nice.
Ludo’.
next prev parent reply other threads:[~2019-11-06 21:49 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 [this message]
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
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=87ftj0vfo9.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=GavinSmith0123@gmail.com \
--cc=bug-texinfo@gnu.org \
--cc=guix-devel@gnu.org \
/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).