You are not logged in.

#1 2024-02-20 04:28:53

whittlers
Member
Registered: 2024-02-19
Posts: 58

[SOLVED] how to transform a info page into HTML?

where do i get the .tex source for those and transform them into an HTML like this one (example: https://www.gnu.org/software/sed/manual/sed.html)

Last edited by whittlers (2024-02-20 21:54:36)


sorry for bad english

Offline

#2 2024-02-20 05:21:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [SOLVED] how to transform a info page into HTML?

From that page:

<!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->

But as far as I know texinfo tools (e.g., texi2any which can generate html) require a texi source file as input (not .tex which generally would be a (la)tex file).  The .texi source files are not typically distributed, though the info files produced from them are, e.g., /usr/share/info/sed.info.gz.

I'm not sure if an info file can be readily converted back into a texi source file (to then generate html) or if you'd need to retrieve the upstream source for the original .texi content.

That said, why are you trying to do this?  The end result of the html already exists on the site you linked to.  Why do you need to regenerate it?

Last edited by Trilby (2024-02-20 05:22:41)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2024-02-20 05:46:29

whittlers
Member
Registered: 2024-02-19
Posts: 58

Re: [SOLVED] how to transform a info page into HTML?

i mainly just want the HTML since it's easier for navigation (clicking table of contents and scrolling). is there any better reader for info files?


sorry for bad english

Offline

#4 2024-02-20 08:11:37

seth
Member
Registered: 2012-09-03
Posts: 58,698

Offline

#5 2024-02-20 13:32:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [SOLVED] how to transform a info page into HTML?

My question isn't why you wanted the html, but rather given this desire, why you were trying to regenerate it yourself when it all exists already on the gnu.org website.

But as seth's link should indicate, there is no need to convert to html to be able to have clickable links and scrolling of info pages.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2024-02-20 16:36:38

ploub
Member
Registered: 2007-05-16
Posts: 134

Re: [SOLVED] how to transform a info page into HTML?

man --html [command]

should do the what you want.

Last edited by ploub (2024-02-20 16:38:02)

Offline

#7 2024-02-20 16:42:31

seth
Member
Registered: 2012-09-03
Posts: 58,698

Offline

#8 2024-02-20 19:44:03

whittlers
Member
Registered: 2024-02-19
Posts: 58

Re: [SOLVED] how to transform a info page into HTML?

indeed info is different from man, although when you use "info", it sometimes redirects to a man page

output of `info -a gpg`:

Node: File names matching 'gpg'

Info File Index
***************

File names that match 'gpg':

* Menu:

*    1: (/usr/share/info/gpgme.info.gz).
*    2: (*manpages*)gpg.

seems like the tool i need has been "in construction" since 2015 lol https://savannah.gnu.org/projects/gnu-html-info

if you have any information on how to get those .texi files, say it. i would start making a info to html tool, but it's not the way it's supposed to be


sorry for bad english

Offline

#9 2024-02-20 20:00:24

progandy
Member
Registered: 2012-05-17
Posts: 5,259

Re: [SOLVED] how to transform a info page into HTML?

If you really want to view the info pages as html, you can do it with perl and php. It runs a local webserver that transparently converts all info pages:
https://github.com/AdamDanischewski/info2html

seems like the tool i need

As seth and Trilby mentioned, you should not need this if you simply want to view info pages with clickable links, but at least yelp is currently broken for viewing info pages. tkinfo should still work with xorg/xwayland and is available in the AUR.

Last edited by progandy (2024-02-20 20:05:40)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#10 2024-02-20 20:48:15

whittlers
Member
Registered: 2024-02-19
Posts: 58

Re: [SOLVED] how to transform a info page into HTML?

Trilby wrote:

My question isn't why you wanted the html, but rather given this desire, why you were trying to regenerate it yourself when it all exists already on the gnu.org website.

mainly having the possession of it. one of the main reasons to use info/man is to learn about something without having to search for it in the internet. i could download all the HTML versions from the GNU website, but they are randomly distributed (for example GCC and GPG have own sites) so it's impossible to do non manually. the request for the .texi sources is open.


sorry for bad english

Offline

#11 2024-02-20 20:56:09

seth
Member
Registered: 2012-09-03
Posts: 58,698

Re: [SOLVED] how to transform a info page into HTML?

https://www.gnu.org/software/sed/manual/ also has the texinfo sources.
https://www.gnu.org/manual/ has a list of all manuals.

Offline

#12 2024-02-20 21:44:47

whittlers
Member
Registered: 2024-02-19
Posts: 58

Re: [SOLVED] how to transform a info page into HTML?

i tried info.vim mod, but it redirects to the man pages... edit: wait, nevermind, it was 'gpgme', not 'gpg', for some reason it sent me to the mans

Last edited by whittlers (2024-02-20 21:51:00)


sorry for bad english

Offline

#13 2024-02-20 21:48:21

seth
Member
Registered: 2012-09-03
Posts: 58,698

Re: [SOLVED] how to transform a info page into HTML?

Bad news is that you're gonna need glasses.
https://www.gnu.org/software/coreutils/manual/
https://www.gnu.org/software/coreutils/ … utils.html
Edit: seems you found them?

i tried info.vim mod, but it redirects to the man pages

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
Also https://en.wikipedia.org/wiki/Ellipsis

Last edited by seth (2024-02-20 21:48:48)

Offline

#14 2024-02-20 21:54:20

whittlers
Member
Registered: 2024-02-19
Posts: 58

Re: [SOLVED] how to transform a info page into HTML?

sorry, i got confused by two things at once

i'm going to say this is "solved" for now, since at least i can access all the documentation when i have internet


sorry for bad english

Offline

Board footer

Powered by FluxBB