mirror of https://github.com/patacrep/patacrep.git
crep
14 years ago
committed by
Alexandre Dupas
1 changed files with 24 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||
#!/bin/sh |
|||
|
|||
#Author: Romain Goffe |
|||
#Date: 27/10/2010 |
|||
#Description: apply typo rules depending on language for songs (.sg files) |
|||
#Commentary: to be merge with latex-preprocessing script |
|||
|
|||
for song in songs/*/*.sg; do |
|||
if grep -q "selectlanguage{english}" $song |
|||
then |
|||
sed -i "s/ ?/?/g" $song; |
|||
sed -i "s/ !/!/g" $song; |
|||
sed -i "s/ :/:/g" $song; |
|||
fi; |
|||
if grep -q "selectlanguage{french}" $song |
|||
then |
|||
sed -i "s/?/ ?/g" $song; |
|||
sed -i "s/ ?/ ?/g" $song; |
|||
sed -i "s/!/ !/g" $song; |
|||
sed -i "s/ !/ !/g" $song; |
|||
sed -i "s/:/ :/g" $song; |
|||
sed -i "s/ :/ :/g" $song; |
|||
fi; |
|||
done; |
Loading…
Reference in new issue