univcode verbessert

This commit is contained in:
Beat Jäckle 2023-05-26 11:34:09 +02:00
parent a104b165ed
commit 4cf8879366

View file

@ -47,15 +47,10 @@ fi
fileType=$(file -bi "${file}")
if [ "$fileType" != "text/x-tex; charset=utf-8" ];
then
#~ sed -i 's|ǎ| |g' "$file"
#U+008A = ä
#~ sed -i 's|Š|ä|g' "$file"
#U+009A=ö
#~ sed -i 's|š|ö|g' "$file"
LANG=de_CH iconv -t utf-8 "${file}.raw" -o "$file"
fi
sed -i 's|\\usepackage[applemac]{inputenc}|\\usepackage[utf8]{inputenc}|g' "$file"
sed -i 's|\\usepackage\[applemac\]{inputenc}|\\usepackage\[utf8\]{inputenc}|g' "$file"
sed -i 's|\\"a|ä|g' "$file"
sed -i 's|\\"o|ö|g' "$file"
sed -i 's|\\"u|ü|g' "$file"
@ -64,15 +59,13 @@ sed -i 's|\\"O|Ö|g' "$file"
sed -i 's|\\"U|Ü|g' "$file"
sed -i "s|Ê| |g" "$file"
sed -i "s|Õ|'|g" "$file"
sed -i "s|<7C>|'|g" "$file"
sed -i $'s|\u007c|\'|g' "$file"
sed -i $'s|\u009f|ü|g' "$file" # 9f->ü
sed -i $'s|\u009a|ö|g' "$file"
sed -i $'s|\u008a|ä|g' "$file"
sed -i $'s|\u0086|Ü|g' "$file"
sed -i $'s|\u0080|Ä|g' "$file"
sed -i $'s|\u0085|Ö|g' "$file"
sed -i 's|š|ö|g' "$file"
sed -i 's|Š|ä|g' "$file"
# Diese Zeilen können angepasst werden,
# um gleich ein paar verbesserungen an den Dokumenten vorzunehmen