Browse Source

rename python module

remotes/origin/cmake
Romain Goffe 13 years ago
parent
commit
71058684f0
  1. 4
      songbook-makeindex.py
  2. 4
      songbook.py
  3. 0
      sortindex.py

4
songbook-makeindex.py

@ -14,7 +14,7 @@ import os.path
import glob
import re
from optparse import OptionParser
import title_sort
import sortindex
import locale
# Pattern set to ignore latex command in title prefix
@ -61,7 +61,7 @@ class index:
def idxBlockToStr(self, letter, entries):
str = '\\begin{idxblock}{'+letter+'}'+'\n'
for key in sorted(entries.keys(), key=title_sort.sortkey):
for key in sorted(entries.keys(), key=sortindex.sortkey):
str += self.entryToStr(key, entries[key])
str += '\\end{idxblock}'+'\n'
return str

4
songbook.py

@ -8,7 +8,7 @@ import glob
import re
import json
import locale
import title_sort
import sortindex
def matchRegexp(reg, iterable):
return [ m.group(1) for m in (reg.match(l) for l in iterable) if m ]
@ -97,7 +97,7 @@ def makeTexFile(sb, output):
if songs == "all":
songs = map(lambda x: x[6:], glob.glob('songs/*/*.sg'))
songs.sort(key=title_sort.sortkey)
songs.sort(key=sortindex.sortkey)
if len(songs) > 0:
out.write(formatDefinition('songslist', songslist(songs)))
out.write('\\makeatother\n')

0
title_sort.py → sortindex.py

Loading…
Cancel
Save