aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorEinhard Leichtfuß <alguien@respiranto.de>2018-12-23 05:58:13 +0100
committerEinhard Leichtfuß <alguien@respiranto.de>2018-12-23 05:58:13 +0100
commit564a3e2ec83e3883cafe9efd2c6f88144a0835db (patch)
treef6de746330e59d978ba9767dfc452e9ff5b447d3 /update.sh
parent8427f2f38448129c69cc1b0f579296201003909f (diff)
Simplify basic.sh:replace_line and switch to EREs
EREs: extended regular expressions in contrast to basic regular expressions (BREs).
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh15
1 files changed, 1 insertions, 14 deletions
diff --git a/update.sh b/update.sh
index 503ee22..f1def66 100755
--- a/update.sh
+++ b/update.sh
@@ -33,25 +33,12 @@ prepare[deu-fra]=\
{
cd $_lang
sed -Ei \
- -e '"'"'s/(10)(10)(100\>)(.*(1|Eins) mit einem Googol Nullen)/\1^(\2^\3)\4/'"'"' \
+ -e '"'"'s/(10)(10)(100\>)(\s+\(10)(Googol.*(1|Eins) mit einem Googol Nullen)/\1^(\2^\3)\4^\5/'"'"' \
-e '"'"'s/(10)([1-9][0-9]*)(.*(1|Eins) mit \2 Nullen)/\1\^\2\3/'"'"' \
-e '"'"'s/(die Zahl 10)(60)/\1^\2/'"'"' \
${_lang}.tei
}
'
-prepare[deu-fra-bin]=\
-'prepare()
-{
- cd $_lang
- dictzip -d ${_lang}.dict.dz
- sed -Ei \
- -e '"'"'s/(10)(10)(100\>)(.*(1|Eins) mit einem Googol Nullen)/\1^(\2^\3)\4/'"'"' \
- -e '"'"'s/(10)([1-9][0-9]*)(.*(1|Eins) mit \2 Nullen)/\1\^\2\3/'"'"' \
- -e '"'"'s/(die Zahl 10)(60)/\1^\2/'"'"' \
- ${_lang}.dict
- dictzip ${_lang}.dict
-}
-'
. basic.sh