diff --git a/utils/latex-preprocessing b/utils/latex-preprocessing new file mode 100755 index 00000000..cdb31cc9 --- /dev/null +++ b/utils/latex-preprocessing @@ -0,0 +1,25 @@ +#!/bin/sh +# Utility that corrects the songs input to respect some LaTeX rules + + +for i in songs/*/*.sg; +do + +# oe inclusion +sed -i "s/coeur/c\\\oe{}ur/g" $i; +sed -i "s/boeuf/b\\\oe{}uf/g" $i; +sed -i "s/oeuvre/\\\oe{}uvre/g" $i; +sed -i "s/oeuf/\\\oe{}uf/g" $i; +sed -i "s/soeur/s\\\oe{}ur/g" $i; +sed -i "s/noeud/n\\\oe{}ud/g" $i; +sed -i "s/oeil/\\\oe{}il/g" $i; + +# dots rules +sed -i "s/\\.\\.\\./\\\dots/g" $i; + +#chords +sed -i "s/\\[Re\\]/\\[RĂ©\\]/g" $i; +sed -i "s/b\\]/\\&\\]/g" $i; + + +done;