summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Random <jack@random.to>2014-07-30 02:38:48 +0200
committerJack Random <jack@random.to>2014-07-30 02:38:48 +0200
commit828e93d1a4c9e7e303a6871e60b2930d3333e8c3 (patch)
tree4bcbb196358238aa901a7d42228bf8a1074c2a36
parent9e834a890b022a53e6380553a2f1c298cb291c6a (diff)
because ae oe ue sucks, might be helpful
-rw-r--r--scripts/umlauts.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/umlauts.sh b/scripts/umlauts.sh
new file mode 100644
index 0000000..748b327
--- /dev/null
+++ b/scripts/umlauts.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+# edit html with us-intl-altgr and write as usual
+# use this afterwards
+# original by Michael Luthardt 2007
+# http://dr-luthardt.de/
+
+sed -i -e 's/\Ä/\&Auml;/g' \
+ -i -e 's/\ä/\&auml;/g' \
+ -i -e 's/\Ö/\&Ouml;/g' \
+ -i -e 's/\ö/\&ouml;/g' \
+ -i -e 's/\Ü/\&Uuml;/g' \
+ -i -e 's/\ü/\&uuml;/g' \
+ -i -e 's/\ß/\&szlig;/g' \
+ -i -e 's/\^-/\&ndash;/g' \
+ -i -e 's/\^ /\&nbsp;/g' \
+ -i -e 's/\^</\&lt;/g' \
+ -i -e 's/\^>/\&gt;/g' \
+ -i -e 's/\^&/\&amp;/g' \
+ -i -e 's/\^\^/\&#94;/g' \
+ -i -e 's/\^x/\&times;/g' \
+ -i -e 's/\^r/\&rarr;/g' \
+ -i -e 's/\^b/\&bull;/g' \
+ -i -e 's/\^e/\&#8644;/g' \
+$1