Table of contents for HTML version of Mini-FAQ and minor fixes

This commit is contained in:
Erik Corry 1999-10-28 09:59:59 +00:00
parent be47c07af3
commit 6d8dd2d4bf
4 changed files with 87 additions and 21 deletions

1
Mini-FAQ/.cvsignore Normal file
View File

@ -0,0 +1 @@
isdn-faq.html

View File

@ -1,4 +1,4 @@
all: isdn-faq.html
isdn-faq.html: isdn-faq.txt
isdn-faq.html: isdn-faq.txt htmlify.pl Makefile
./htmlify.pl isdn-faq.txt > isdn-faq.html

View File

@ -1,15 +1,25 @@
#!/usr/bin/perl
$lang = "german";
&doit("all");
exit(0);
print'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">' . "\n";
print'<html><head><title>English-German mini-FAQ for ISDN4Linux</title></head>';
print'<body text="#000000" link="#0000ff" vlink="#000080" bgcolor="#ffffff">';
print"<pre>\n";
sub doit
{
local($part) = @_;
local($lang) = "german";
open(INFILE, $ARGV[0]) || die("Couldn't open $ARGV[0]");
if($part eq "all")
{
print'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">' . "\n";
print'<html><head><title>English-German mini-FAQ for ISDN4Linux</title></head>';
print'<body text="#000000" link="#0000ff" vlink="#000080" bgcolor="#ffffff">';
print"<pre>\n";
}
while($line=<INFILE>)
open(INFILE, $ARGV[0]) || die("Couldn't open $ARGV[0]") if($part eq "all");
open(INFILE2, $ARGV[0]) || die("Couldn't open $ARGV[0]") if($part ne "all");
while($line= (($part eq "all") ? <INFILE> : <INFILE2>))
{
$line =~ s/&/&amp;/g;
$line =~ s/</&lt;/g;
@ -32,12 +42,24 @@ while($line=<INFILE>)
$line =~ s/^/<\/pre><h1>/;
$line =~ s/\n/<\/h1><pre>/;
}
if($line =~ /see below/i)
{
$line =~ s/^/<\/pre><h1><a href="#toc0">/;
$line =~ s/\n/<\/a><\/h1><pre>/;
}
if($line =~ /^0/) {$lang = "english"};
if($lang eq "german")
{
if($line =~ /^[0-9]+\./)
{
$line =~ s/^([0-9]+)\./<br><a href="#frage\1" name="frage\1">\1.<\/a><b>/;
if($part eq "all")
{
$line =~ s/^([0-9]+)\./<br><a name="frage\1">\1.<\/a><b>/;
}
else
{
$line =~ s/^([0-9]+)\./<br><a href="#frage\1">\1.<\/a><b>/;
}
$header = "yes";
}
$line =~ s/(Frage ([0-9]+))/<a href="#frage\2">\1<\/a>/g;
@ -46,7 +68,14 @@ while($line=<INFILE>)
{
if($line =~ /^[0-9]+\./)
{
$line =~ s/^([0-9]+)\./<br><a href="#question\1" name="question\1">\1.<\/a><b>/;
if($part eq "all")
{
$line =~ s/^([0-9]+)\./<br><a name="question\1">\1.<\/a><b>/;
}
else
{
$line =~ s/^([0-9]+)\./<br><a name="toc\1" href="#question\1">\1.<\/a><b>/;
}
$header = "yes";
}
$line =~ s/(question ([0-9]+))/<a href="#question\2">\1<\/a>/g;
@ -64,7 +93,40 @@ while($line=<INFILE>)
$line =~ s/^$//;
}
}
print $line;
if($line =~ /germantoc/ && $part eq "all")
{
&doit("germantoc");
}
elsif($line =~ /englishtoc/ && $part eq "all")
{
&doit("englishtoc");
}
elsif($part eq "all")
{
print $line;
}
elsif($part eq "germantoc" && $lang eq "german" &&
($header eq "yes" || $line =~ /<\/b>/))
{
print $line;
}
elsif($part eq "englishtoc" && $lang eq "english" &&
($header eq "yes" || $line =~ /<\/b>/))
{
print $line;
}
}
print"</pre></body></html>\n"
close(INFILE2);
if($part eq "all")
{
print"</pre>";
print '<p> <a href="http://validator.w3.org/check/referer"><img border=0
src="http://validator.w3.org/images/vh32"
alt="Valid HTML 3.2!" height=31 width=88></a>
</p>';
print"</body></html>\n";
}
}

View File

@ -5,6 +5,8 @@
See below for English!
germantoc
1. Wo gibt es die FAQ?
http://www.mhessler.de/i4lfaq.html Leider noch nicht in Deutsch übersetzt.
@ -80,7 +82,7 @@ See below for English!
Deja News mit den Stichwörtern "isdn4linux" und
"wiedeinekartegenauheisst".
10. Wo gibt es die neusten ISDN4Linux Software.
10. Wo gibt es die neusten ISDN4Linux Software?
Die Utils von ftp://ftp.isdn4linux.de/pub/isdn4linux/utils/testing
Den Kernel-Treiber aus dem neusten offiziellen Kernel von www.kernel.org
@ -89,7 +91,7 @@ See below for English!
ftp://ftp.de.kernel.org/pub/linux/kernel/people/alan/
Siehe auch den Web-Server deines Distributions, und deine lokale
RPM-Repository, z.B. http://SunSITE.auc.dk/linux/rpmrepository.html
RPM-Repository, z.B. http://SunSITE.auc.dk/linux/RPM/
11. Seitdem ich Kernel-2.0.36 verwende geht ISDN4Linux nicht mehr.
@ -133,7 +135,7 @@ See below for English!
sent ConfAck ... Dein Rechner stimmte etwas zu
rcvd ... Was die Gegenseite dazu gesagt hat
15. Was bedeuten diese komischen 'Cause'-Nummern.
15. Was bedeuten diese komischen 'Cause'-Nummern?
Siehe 'man isdn_cause'
@ -207,8 +209,9 @@ Kommentare wilkommen, bitte direkt an mich, Erik Corry <erik@arbat.com>.
English mini-FAQ for ISDN4Linux
englishtoc
0. Why is everyone speaking German here.
0. Why is everyone speaking German here?
That's because they are mostly German. If you start an English thread it
will be continued in English. If you have trouble getting this group
@ -221,7 +224,7 @@ Kommentare wilkommen, bitte direkt an mich, Erik Corry <erik@arbat.com>.
http://www.mhessler.de/i4lfaq.html
2. Where can I find a simple guide to using ISDN4Linux
2. Where can I find a simple guide to using ISDN4Linux?
See http://www.wurtel.demon.nl/ (also available in Dutch). There is
a different HOWTO in German on http://www.franken.de/users/klaus/ There
@ -257,7 +260,7 @@ Kommentare wilkommen, bitte direkt an mich, Erik Corry <erik@arbat.com>.
http://www.suse.de/Support/sdb_e/dynippatch.html
7. ISDN4Linux keeps redialling, especially if I do a hard hangup (without
waiting for timeout)
waiting for timeout).
This can be alleviated with RST-provoking. Activate this as in question
6 and see also http://www.suse.de/sdb/en/html/katlist.ISDN.html If you
@ -296,9 +299,9 @@ Kommentare wilkommen, bitte direkt an mich, Erik Corry <erik@arbat.com>.
ftp://ftp.us.kernel.org/pub/linux/kernel/people/alan/
See also the web/ftp server of your distribution and your local RPM
repository, eg. http://SunSITE.auc.dk/linux/rpmrepository.html
repository, eg. http://SunSITE.auc.dk/linux/RPM/
11. ISDN4Linux doesn't work any more since I updated to kernel 2.0.36
11. ISDN4Linux doesn't work any more since I updated to kernel 2.0.36.
You need the newest isdn4k-utils, 3.0beta1 or newer. See above. In
particular you need the new 'dialmode' command isdnctrl. Note: the
@ -310,7 +313,7 @@ Kommentare wilkommen, bitte direkt an mich, Erik Corry <erik@arbat.com>.
real 2.0.36 kernel from www.kernel.org or an update for the kernel
driver, see question 10.
12. ISDN4Linux doesn't work any more since I updated to kernel 2.2.x
12. ISDN4Linux doesn't work any more since I updated to kernel 2.2.x.
Unfortunately, the version of ISDN4Linux in early releases of kernel 2.2
was quite buggy. Since 2.2.11 and 2.3.16, the ISDN-Driver in the official