Have you looked at makeinfo, which comes with the texinfo package? 'makeinfo --help' reports 'makeinfo --plaintext foo.texi' which
offhand looks to me what you're looking for.
There is usually a command named "texi2any"
installed with the texinfo package that does exactly this.
Gopher friendly:
1) 64 columns wide.
2) any indents will remain, but if a line goes beyond 64 cols, the remaining characters will go to the line below but indent to the same column as the prior line.
This seems pretty difficult and I'm wondering how others would
approch this task.
Yes I'm working on the algorithm for the process.Gopher friendly:
1) 64 columns wide.
2) any indents will remain, but if a line goes beyond 64 cols, the remaining characters will go to the line below but
indent
to the same column as the prior line.
Indent to the same column as the prior line - that sounds like the man manpages layout?
If yes then you may like to peek into the manpage display processes for more hints.
and finding any '\t' tabs as well.
In my original post I had chosen 64 columns wide is from the link
below, so my gopher pages could have enough width left over to pretty
some of the text with boxes.
Sysop: | Darkmage |
---|---|
Location: | Tucson, Arizona |
Users: | 2 |
Nodes: | 4 (0 / 4) |
Uptime: | 226:37:16 |
Calls: | 3 |
Messages: | 11,609 |