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