This commit is contained in:
Kovid Goyal 2014-03-29 13:16:40 +05:30
parent 56482563e4
commit 5a42480c41

View File

@ -27,8 +27,8 @@ GuideRef = namedtuple('GuideRef', 'type title pos_fid')
INDEX_HEADER_FIELDS = INDEX_HEADER_FIELDS + ('last_index',) INDEX_HEADER_FIELDS = INDEX_HEADER_FIELDS + ('last_index',)
FIELD_NAMES = {'len':'Header length', 'type':'Unknown', 'gen':'Index Type (0 - normal, 2 - inflection)', FIELD_NAMES = {'len':'Header length', 'type':'Unknown', 'gen':'Index Type (0 - normal, 2 - inflection)',
'start':'IDXT Offset', 'count':'Number of Index records', 'code': 'character encoding', 'lng':'Unknown', 'start':'IDXT Offset', 'count':'Number of Index entries or records', 'code': 'character encoding', 'lng':'Unknown',
'total':'Number of Index Entries', 'ordt': 'ORDT Offset', 'ligt':'LIGT Offset', 'nligt':'Number of LIGT', 'total':'Total number of Index Entries in all records', 'ordt': 'ORDT Offset', 'ligt':'LIGT Offset', 'nligt':'Number of LIGT',
'ncncx':'Number of CNCX records', 'last_index':'Text of Boundary Index'} 'ncncx':'Number of CNCX records', 'last_index':'Text of Boundary Index'}
def read_last_index(data, header): def read_last_index(data, header):