#!/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; #punctuation sed -i "s/’/'/g" $i; # dots rules sed -i "s/\\.\\.\\./\\\dots/g" $i; #chords sed -i "s/\\[Re\\]/\\[Ré\\]/g" $i; sed -i "s/b\\]/\\&\\]/g" $i; #Do sed -i "s/032010}/X32010}/g" $i; #La sed -i "s/002220}/X02220}/g" $i; #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; done;