blob: 117b41516e22c085db929caec59d715acdd369bb [file] [log] [blame]
Fred Drake6942e571998-11-24 17:38:49 +00001#! /bin/sh
2#
3# Script to fix general entities that got translated from the LaTeX as empty
4# elements. Mostly pretty bogus, but works like a charm!
5
6if [ "$1" ]; then
7 exec <"$1"
8 shift 1
9fi
10
11if [ "$1" ]; then
12 exec >"$1"
13 shift 1
14fi
15
16sed '
17s|<ABC/>|\&ABC;|g
18s|<ASCII/>|\&ASCII;|g
19s|<C/>|\&C;|g
20s|<Cpp/>|\&Cpp;|g
21s|<EOF/>|\&EOF;|g
22s|<NULL/>|\&NULL;|g
23s|<POSIX/>|\&POSIX;|g
24s|<UNIX/>|\&UNIX;|g
Fred Drake4c5e5331998-11-25 19:28:02 +000025s|<e/>|\&bsol;|g
Fred Drake87dfd3c1998-11-30 14:36:26 +000026s|<geq/>|\&ge;|g
Fred Drake4c5e5331998-11-25 19:28:02 +000027s|<ldots/>|\&hellip|g
Fred Drake87dfd3c1998-11-30 14:36:26 +000028s|<leq/>|\&le;|g
Fred Drake4c5e5331998-11-25 19:28:02 +000029s|---|\&mdash;|g
Fred Drake6942e571998-11-24 17:38:49 +000030' || exit $?