Quote:
Originally Posted by exaltedwombat
Could I have done this more easily by direct editing toc.ncx? I can't see from examining it how the hirearchy is set.
|
You could have
done it by directly editing the toc.ncx. "More easily" is extremely relative.
navPoints are nestable ... as per this example:
Code:
<navMap>
<navPoint id="np_1" playOrder="1">
<navLabel>
<text>Blah</text>
</navLabel>
<content src="Text/part0001.xhtml"/>
<navPoint id="np_2" playOrder="2">
<navLabel>
<text>1</text>
</navLabel>
<content src="Text/part0002.xhtml"/>
</navPoint>
</navPoint>
<navMap>
"Flattening" that same toc.ncx would necessitate
un-nesting the navPoints (putting them on the same level):
Code:
<navMap>
<navPoint id="np_1" playOrder="1">
<navLabel>
<text>Blah</text>
</navLabel>
<content src="Text/part0001.xhtml"/>
</navPoint>
<navPoint id="np_2" playOrder="2">
<navLabel>
<text>1</text>
</navLabel>
<content src="Text/part0002.xhtml"/>
</navPoint>
<navMap>
Hope that helps!