docs/diploma

diff thesis/scripts/improve-index.awk @ 402:e57129f57faa

finished the indexing in a huge last effort
author meillo@marmaro.de
date Sun, 08 Feb 2009 22:51:42 +0100
parents d51894e48762
children ee7211546c02
line diff
     1.1 --- a/thesis/scripts/improve-index.awk	Sat Feb 07 23:48:48 2009 +0100
     1.2 +++ b/thesis/scripts/improve-index.awk	Sun Feb 08 22:51:42 2009 +0100
     1.3 @@ -2,16 +2,50 @@
     1.4  #
     1.5  # improve the index
     1.6  
     1.7 +
     1.8  BEGIN{
     1.9 -	e["mta"] = "mail transfer agent (\\NAME{MTA})";
    1.10 -	e["mua"] = "mail user agent (\\NAME{MUA})";
    1.11 -	e["mda"] = "mail delivery agent (\\NAME{MUA})";
    1.12 -	e["smtp"] = "simple mail transfer protocol (\\NAME{SMTP})";
    1.13 -	e["ietf"] = "Internet Engineering Task Force (\\NAME{IETF})";
    1.14 +
    1.15 +	# special formating for entries
    1.16 +	e["mta"] = "Mail Transfer Agent (\\NAME{MTA})";
    1.17 +	e["mua"] = "Mail User Agent (\\NAME{MUA})";
    1.18 +	e["mda"] = "Mail Delivery Agent (\\NAME{MDA})";
    1.19 +	e["smtp"] = "Simple Mail Transfer Protocol (\\NAME{SMTP})";
    1.20 +	e["ietf"] = "ietf@\\NAME{IETF}";
    1.21  	e["debian"] = "Debian";
    1.22  	e["ascii"] = "ascii@\\NAME{ASCII}";
    1.23  	e["gpl"] = "General Public License (\\NAME{GPL})";
    1.24 +	e["auth"] = "authentication";
    1.25 +	e["bsd"] = "Berkeley Software Distribution (\\NAME{BSD})";
    1.26 +	e["c"] = "C programming language";
    1.27 +	e["changing ip addresses"] = "changing \\NAME{IP} addresses";
    1.28 +	e["cyrus sasl"] = "cyrus \\NAME{SASL}";
    1.29 +	e["dns blacklist"] = "dns blacklist@\\NAME{DNS} blacklist";
    1.30 +	e["dynamic dns"] = "dynamic \\NAME{DNS}";
    1.31 +	e["enc"] = "encryption";
    1.32 +	e["fax"] = "telefax";
    1.33 +	e["imap"] = "imap@\\NAME{IMAP}";
    1.34 +	e["ipc"] = "Inter-Process Communication (\\NAME{IPC})";
    1.35 +	e["isp"] = "Internet Service Provider (\\NAME{ISP})";
    1.36 +	e["mime"] = "mime@\\NAME{MIME}";
    1.37 +	e["mmdf"] = "mmdf@\\NAME{MMDF}";
    1.38 +	e["pam"] = "pam@\\NAME{PAM}";
    1.39 +	e["pop3"] = "pop3@\\NAME{POP3}";
    1.40 +	e["relay-only mta"] = "relay-only \\NAME{MTA}";
    1.41 +	e["rfc"] = "Request for Comments (\\NAME{RFC})";
    1.42 +	e["sasl"] = "sasl@\\NAME{SASL}";
    1.43 +	e["smtps"] = "smtps@\\NAME{SMTPS}";
    1.44 +	e["starttls"] = "starttls@\\NAME{STARTTLS}";
    1.45 +	e["swot analysis"] = "swot analysis@\\NAME{SWOT} analysis";
    1.46 +	e["tcp socket"] = "tcp socket@\\NAME{TCP} socket";
    1.47 +	e["tcp wrapper"] = "tcp wrapper@\\NAME{TCP} Wrapper";
    1.48 +	e["tls"] = "Transport Layer Security (\\NAME{TLS})";
    1.49 +	e["uc"] = "Unified Communication";
    1.50 +	e["um"] = "Unified Messaging";
    1.51 +	e["uucp"] = "uucp@\\NAME{UUCP}";
    1.52 +	e["setuid"] = "setuid/setgid";
    1.53  
    1.54 +
    1.55 +	# persons
    1.56  	e["Oliver Kurth"] = e["Kurth"] = "Kurth@\\textsc{Kurth, Oliver}";
    1.57  	e["Adam Back"] = e["Back"] = "Back@\\textsc{Back, Adam}";
    1.58  	e["Eric Allman"] = e["Allman"] = "Allman@\\textsc{Allman, Eric}";
    1.59 @@ -49,19 +83,72 @@
    1.60  	e["Diomidis Spinellis"] = e["Spinellis"] = "Spinellis@\\textsc{Spinellis, Diomidis}";
    1.61  	e["Andrew S. Tanenbaum"] = e["Tanenbaum"] = "Tanenbaum@\\textsc{Tanenbaum, Andrew S.}";
    1.62  	e["Kenneth R. van Wyk"] = e["van Wyk"] = "van Wyk@\\textsc{van Wyk, Kenneth R.}";
    1.63 +	e["Christian Langbein"] = e["Langbein"] = "Langbein@\\textsc{Langbein, Christian}";
    1.64 +	e["Dad"] = "Schnalke@\\textsc{Schnalke, R\\\"udiger}";
    1.65 +	e["Hans-J\\\"org Schaaf"] = e["Schaaf"] = "Schaaf@\\textsc{Schaaf, Hans-J\\\"org}";
    1.66 +	e["Henry Atting"] = e["Atting"] = "Atting@\\textsc{Atting, Henry}";
    1.67 +	e["Heraclitus"] = "Heraclitus@\\textsc{Heraclitus}";
    1.68 +	e["James Stenard"] = e["Stenard"] = "Stenard@\\textsc{Stenard, James}";
    1.69 +	e["Joachim Breitner"] = e["Breitner"] = "Breitner@\\textsc{Breitner, Joachim}";
    1.70 +	e["Jochen Roth"] = e["Roth"] = "Roth@\\textsc{Roth, Jochen}";
    1.71 +	e["Julian Forster"] = e["Forster"] = "Forster@\\textsc{Forster, Julian}";
    1.72 +	e["Lydi"] = "Steffan@\\textsc{Steffan, Lydi}";
    1.73 +	e["Marc Geis"] = e["Geis"] = "Geis@\\textsc{Geis, Marc}";
    1.74 +	e["Markus Sch\\\"affter"] = e["Sch\\\"affter"] = "Schaeffter@\\textsc{Sch\\\"affter, Markus}";
    1.75 +	e["Roger Schietzel"] = e["Schietzel"] = "Schietzel@\\textsc{Schietzel, Roger}";
    1.76 +	e["Stephen C. Johnson"] = e["Johnson"] = "Johnson@\\textsc{Johnson, Stephen C.}";
    1.77  	e["Wietse Venema"] = e["Venema"] = "Venema@\\textsc{Venema, Wietse}";
    1.78 +	e["Volkmar Kese"] = e["Kese"] = "Kese@\\textsc{Kese, Volkmar}";
    1.79 +
    1.80 +
    1.81 +	# subentries
    1.82 +	s["sendmailx"] = "sendmail X";
    1.83 +	s["meta1"] = "MeTA1";
    1.84 +	s["smtp-after-pop"] = "\\NAME{SMTP}-after-\\NAME{POP}";
    1.85 +	s["smtp-auth"] = "\\NAME{SMTP-AUTH}";
    1.86 +
    1.87 +
    1.88 +	# aliases
    1.89 +	a["ifdef"] = "ifdef|see{conditional compilation}";
    1.90 +	a["envelope"] = "envelope|see{mail message}";
    1.91 +	a["header"] = "header|see{mail message}";
    1.92 +	a["body"] = "body|see{mail message}";
    1.93 +	a["ssl"] = "ssl@\\NAME{SSL}|see{\\NAME{TLS}}";
    1.94 +	a["forwarder"] = "forwarder|see{relay-only \\NAME{MTA}}";
    1.95 +	a["junk mail"] = "junk mail|see{spam}";
    1.96 +	a["fax"] = "fax|see{telefax}";
    1.97 +
    1.98  }
    1.99  
   1.100  
   1.101  
   1.102  {
   1.103 -	cur = $0
   1.104 -	gsub(/\\nobreakspace  \{\}/, " ", cur);
   1.105 -	gsub(/\\ /, " ", cur);
   1.106 -	sub(/[^{]*{/, "", cur);
   1.107 -	sub(/[}!].*/, "", cur);
   1.108 -	if (e[cur]) {
   1.109 -		sub(/{[^}!]*/, "{" e[cur]);
   1.110 +	gsub(/\\ /, " ");
   1.111 +	gsub(/\\nobreakspace  \{\}/, " ");
   1.112 +	gsub(/\\discretionary \{-\}\{\}\{\}/, "");
   1.113 +
   1.114 +	entry = $0
   1.115 +	sub(/[^{]*{/, "", entry);
   1.116 +	sub(/[}!].*/, "", entry);
   1.117 +	if (e[entry]) {
   1.118 +		sub(/{[^}!]*/, "{" e[entry]);
   1.119  	}
   1.120 +
   1.121 +	subentry = $0
   1.122 +	sub(/[^!]*!/, "", subentry);
   1.123 +	sub(/}.*/, "", subentry);
   1.124 +	if (s[subentry]) {
   1.125 +		sub(/![^}]*/, "!" s[subentry]);
   1.126 +	}
   1.127 +
   1.128  	print;
   1.129  }
   1.130 +
   1.131 +
   1.132 +
   1.133 +END {
   1.134 +	# aliases
   1.135 +	for (i in a) {
   1.136 +		print "\\indexentry{" a[i] "}{0}";
   1.137 +	}
   1.138 +}