mirror of https://github.com/patacrep/patacrep.git
Engine for LaTeX songbooks
http://www.patacrep.com
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
911 B
47 lines
911 B
16 years ago
|
#!/bin/sh
|
||
|
# Utility that corrects the songs input to respect some LaTeX rules
|
||
|
|
||
|
|
||
|
for i in songs/*/*.sg;
|
||
|
do
|
||
|
|
||
|
# oe inclusion
|
||
15 years ago
|
sed -i "s/coeur/cœur/g" $i;
|
||
|
sed -i "s/boeuf/bœuf/g" $i;
|
||
|
sed -i "s/oeuvre/œuvre/g" $i;
|
||
|
sed -i "s/oeuf/œuf/g" $i;
|
||
|
sed -i "s/soeur/sœur/g" $i;
|
||
|
sed -i "s/noeud/nœud/g" $i;
|
||
|
sed -i "s/oeil/œil/g" $i;
|
||
|
sed -i "s/\\\oe{}/œ/g" $i;
|
||
15 years ago
|
#punctuation
|
||
|
sed -i "s/’/'/g" $i;
|
||
15 years ago
|
sed -i "s/Ca /Ça /g" $i;
|
||
15 years ago
|
|
||
16 years ago
|
# dots rules
|
||
|
sed -i "s/\\.\\.\\./\\\dots/g" $i;
|
||
|
|
||
|
#chords
|
||
|
sed -i "s/\\[Re\\]/\\[Ré\\]/g" $i;
|
||
|
sed -i "s/b\\]/\\&\\]/g" $i;
|
||
15 years ago
|
#Do
|
||
15 years ago
|
sed -i "s/032010}/X32010}/g" $i;
|
||
|
#La
|
||
|
sed -i "s/002220}/X02220}/g" $i;
|
||
15 years ago
|
sed -i "s/002020}/X02020}/g" $i;
|
||
15 years ago
|
#Lam
|
||
|
sed -i "s/002210}/X02210}/g" $i;
|
||
|
#Ré
|
||
|
sed -i "s/000232}/XX0232}/g" $i;
|
||
|
sed -i "s/X00232}/XX0232}/g" $i;
|
||
|
#Ré7
|
||
|
sed -i "s/000212}/XX0212}/g" $i;
|
||
|
#Rém
|
||
|
sed -i "s/000231}/XX0231}/g" $i;
|
||
|
sed -i "s/X00231}/XX0231}/g" $i;
|
||
|
#Si7
|
||
|
sed -i "s/021202}/X21202}/g" $i;
|
||
16 years ago
|
|
||
|
|
||
|
done;
|