Browse Source

write songs with us chords convention to enable transposition macros

remotes/origin/split-songs
Romain Goffe 14 years ago
parent
commit
c8f9746f3c
  1. 79
      utils/latex-preprocessing.py

79
utils/latex-preprocessing.py

@ -34,36 +34,75 @@ word_dic = {
"New-York": "New York", "New-York": "New York",
" i ": " I ", " i ": " I ",
"avant hier": "avant-hier", "avant hier": "avant-hier",
##: Conversion from anglo-saxon conventions ##: Conversion to anglo-saxon chords
"\\[A": "\\[La", "Lam ": "Am ",
"\\[B": "\\[Si", "La7": "A7",
"\\[C": "\\[Do", "Lasus2": "Asus2",
"\\[D]": "\\[Ré]", "Sim ": "Bm ",
"\\[Dm]": "\\[Rém]", "Sim}": "Bm}",
"\\[D7]": "\\[Ré7]", "Sim]": "Bm]",
"\\[E": "\\[Mi", "Si7": "B7",
"\\[F]": "\\[Fa]", "Dom ": "Cm ",
"\\[F7]": "\\[Fa7]", "Do7": "C7",
"\\[Fm]": "\\[Fam]", "Do9": "C9",
"\\[F#]": "\\[Fa#]", "": "D ",
"\\[F#m]": "\\[Fa#m]", "Rém ": "Dm ",
"\\[G": "\\[Sol", "Rém]": "Dm]",
##: Guitar tabs "Ré7": "D7",
"\\[Re]": "\\[Ré]", "Ré#": "D#",
"Mim ": "Em ",
"Mim]": "Em]",
"Mim7": "Em7",
"Mim}": "Em}",
"Mi7": "E7",
"Mi7sus4": "E7sus4",
"Fa ": "F ",
"Fa}": "F}",
"Fa\\": "F\\",
"Fam ": "Fm ",
"Fa7": "F7",
"Sol ": "G ",
"Sol]": "G]",
"Solm ": "Gm ",
"Solm]": "Gm]",
"Sol7": "G7",
"/La": "/A",
"/Si": "/B",
"/Do": "/C",
"/Ré": "/D",
"/Mi": "/E",
"/Fa": "/F",
"/Sol": "/G",
"gtab{La": "gtab{A",
"gtab{Si": "gtab{B",
"gtab{Do": "gtab{C",
"gtab{": "gtab{D",
"gtab{Mi": "gtab{E",
"gtab{Fa": "gtab{F",
"gtab{Sol": "gtab{G",
"\\[La": "\\[A",
"\\[Si": "\\[B",
"\\[Do": "\\[C",
"\\[Ré": "\\[D",
"\\[Mi": "\\[E",
"\\[Fa": "\\[F",
"\\[Sol": "\\[G",
"\\[Re": "\\[D",
"b]": "&]", "b]": "&]",
#Do "b7]": "&7]",
#C
"032010": "X32010", "032010": "X32010",
#La #A
"002220": "X02220", "002220": "X02220",
"002020": "X02020", "002020": "X02020",
"002210": "X02210", "002210": "X02210",
#Ré #D
"000232": "XX0232", "000232": "XX0232",
"X00232": "XX0232", "X00232": "XX0232",
"000212": "XX0212", "000212": "XX0212",
"000231": "XX0231", "000231": "XX0231",
"X00231": "XX0231", "X00231": "XX0231",
#Si #B
"021202": "X21202", "021202": "X21202",
### end of rules ### end of rules
} }

Loading…
Cancel
Save