Re:Richard Stallman Announces GNU C Language Reference Manual
by 1vuio0pswjnm7 on Tuesday September 06, 2022 @05:18PM
(#32743319)
Perl is used to convert texi files to html, plaintext, pdf, etc.^1
How to get the perl script for coverting texi
On Linux install texinfo
On BSD install text2html
Below is a tiny script to make this manual as a 639K text file called "c.txt" to read with less(1) and edited with vi(1), according to personal preferences.^2 Your preferences may differ. We may be different people using different computers and different software.
2. Example personal preferences: Avoid git where it's not needed. Use links browser to dump html to text. Indent text at least 4 spaces, leave large right margins (here, column width = 70). Use curl only for HN examples. IRL, use tnftp.
#!/bin/sh
set -v;
x0=c-intro-and-ref.git;
x1=https://git.savannah.nongnu.org/cgit/;
test -d $x0||mkdir $x0;cd $x0||exit;
for x2 in Makefile c.texi cpp.texi fdl.texi fp.texi texinfo.tex;do
echo url=$x1$x0/plain/$x2;
echo output=$x2;
echo user-agent=\"\";
done|curl -K/dev/stdin -s;
case $(uname) in :)
;;*BSD) texi2html --no-headers --no-split --html c.texi
;;Linux) makeinfo --no-headers --no-split --html c.texi
esac;
links -width 70 -dump .html \
|sed '/^ *Link:/d;/^ *\*/s/\*//;s/^/ /;/Jump to: /{N;N;d;}' > c.txt;
# personal preference: uninstall perl to conserve space;
exec less c.txt;
How to get the perl script for coverting texi
On Linux install texinfo
On BSD install text2html
Below is a tiny script to make this manual as a 639K text file called "c.txt" to read with less(1) and edited with vi(1), according to personal preferences.^2 Your preferences may differ. We may be different people using different computers and different software.
1. https://www.nongnu.org/texi2html/ https://texfaq.org/FAQ-texinfo
2. Example personal preferences: Avoid git where it's not needed. Use links browser to dump html to text. Indent text at least 4 spaces, leave large right margins (here, column width = 70). Use curl only for HN examples. IRL, use tnftp.