-
Notifications
You must be signed in to change notification settings - Fork 10
/
biblio.sh
90 lines (90 loc) · 2.93 KB
/
biblio.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#! /bin/sh
# Convert geodesic-biblio.txt to an html page
cat <<'EOF'
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>
Online geodesic bibliography
</title>
</head>
<body topmargin=10 leftmargin=10>
<h3>An online geodesic bibliography</h3>
<p>
Here is a list of the older mathematical treatments of the
geodesic problem for an ellipsoid, together with links to online
copies. This includes some more recent works which are available
online (chiefly works funded by the US Government). Where
available, links to translations, especially into English, have
been added. Unfortunately, the fold-out pages of figures in some
books are usually not scanned properly by Google; in some cases I
have been able to scan the missing pages. In addition, readers
may not have access to the full text of some Google Books; in
those cases, I have provided a "pdf" link. See the files in <a
href=".">geodesic-papers</a>. Please let me, Charles Karney
<a href="mailto:[email protected]"><[email protected]></a>,
know of errors, omissions, etc. In particular, I'm interested to
learn of any cases where I have mis-translated the title of a
paper. In addition, the links to Google Books occasionally get
out of date; let me know if this happens.
</p>
<p>This bibliography was started on 2009-06-06 (at
<a href=" http://trac.osgeo.org/proj/wiki/GeodesicCalculations">
http://trac.osgeo.org/proj/wiki/GeodesicCalculations</a>) and
moved to this site on 2011-02-01. The last update was on
EOF
git log --date=short $1 | head -3 | tail -1 | tr -s ' ' ' ' |
cut -f2 | sed 's/$/./'
cat <<EOF
</p>
<ul>
EOF
cat $1 |
sed -e 's/\*/<li>/' -e 's/ *\[\[BR\]\]/ <br>/' -e 's/\[\[BR\]\]/<br>/' \
-e "s%'''\([0-9][0-9]*\)'''%<b>\1</b>%g" \
-e "s% ''% <i>%g" -e "s%\([^ ]\)''%\1</i>%g" \
-e 's%\(https\?\)://\([a-zA-Z][^ ]*\)%<a href="\1://\2">\1://\2</a>%' \
-e 's%(PDF \([^)]*\))%(<a href="http://geographiclib.sf.net/geodesic-papers/\1">pdf</a>)%' \
-e 's/&/\&/g' \
-e 's/\([0-9]\)--\([0-9]\)/\1\–\2/g' \
-e 's/É/\É/g' \
-e 's/é/\é/g' \
-e 's/à/\à/g' \
-e 's/è/\è/g' \
-e 's/ù/\ù/g' \
-e 's/ç/\ç/g' \
-e 's/ä/\ä/g' \
-e 's/Ü/\Ü/g' \
-e 's/ï/\ï/g' \
-e 's/ö/\ö/g' \
-e 's/ü/\ü/g' \
-e 's/ß/\ß/g' | awk '
BEGIN {
quote=0;
}
{
if ($0 ~ /^ /) {
if (!quote) {
printf "<blockquote>";
quote = 1;
}
} else {
if (quote) {
printf "</blockquote>";
quote = 0;
}
}
print $0;
}
END {
if (quote)
printf "</p></blockquote>/n";
}'
cat <<'EOF'
</ul>
<hr>
<a href="..">GeographicLib home</a>
</body>
</html>
EOF