mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
3bb5d82da6
commit
4158655b62
@ -1917,18 +1917,18 @@ class MobiWriter(object):
|
|||||||
self._ctoc_map.append(ctoc_name_map)
|
self._ctoc_map.append(ctoc_name_map)
|
||||||
|
|
||||||
def _generate_ctoc(self):
|
def _generate_ctoc(self):
|
||||||
# Generate the compiled TOC strings
|
# Generate the compiled TOC strings
|
||||||
# Each node has 1-4 CTOC entries:
|
# Each node has 1-4 CTOC entries:
|
||||||
# Periodical (0xDF)
|
# Periodical (0xDF)
|
||||||
# title, class
|
# title, class
|
||||||
# Section (0xFF)
|
# Section (0xFF)
|
||||||
# title, class
|
# title, class
|
||||||
# Article (0x3F)
|
# Article (0x3F)
|
||||||
# title, class, description, author
|
# title, class, description, author
|
||||||
# Chapter (0x0F)
|
# Chapter (0x0F)
|
||||||
# title, class
|
# title, class
|
||||||
# nb: Chapters don't actually have @class, so we synthesize it
|
# nb: Chapters don't actually have @class, so we synthesize it
|
||||||
# in reader._toc_from_navpoint
|
# in reader._toc_from_navpoint
|
||||||
|
|
||||||
toc = self._oeb.toc
|
toc = self._oeb.toc
|
||||||
reduced_toc = []
|
reduced_toc = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user