Dear Mr Shafie
I am coming back to you with this old question trying to find a workaround for
me. Is there way to force the ids and file numbers to be 2 digits (e.g. with a
leading zero if smaller that 10)?
Thank you for any hint on a parameter that might tweak this for me
Kind regards
Thomas
Before tweak:
<manifest>
<item id="__PART0" href="Text/Pressbooks-0.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART1" href="Text/Pressbooks-1.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART15" href="Text/Pressbooks-15.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART2" href="Text/Pressbooks-2.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART29" href="Text/Pressbooks-29.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART32" href="Text/Pressbooks-32.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART40" href="Text/Pressbooks-40.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART42" href="Text/Pressbooks-42.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART7" href="Text/Pressbooks-7.xhtml"
media-type="application/xhtml+xml"/>
<item id="__ITEM10" href="Styles/Pressbooks.css" media-type="text/css"/>
<item id="__ITEM11" href="Images/image1.png" media-type="image/png"/>
<item id="__ITEM12" href="Images/image2.png" media-type="image/png"/>
<item id="__ITEM13" href="Images/image3.png" media-type="image/png"/>
<item id="__ITEM14" href="Images/image4.png" media-type="image/png"/>
<item id="__ITEM15" href="Images/image5.png" media-type="image/png"/>
<item id="__ITEM16" href="Images/image6.png" media-type="image/png"/>
<item id="__ITEM17" href="Images/image7.png" media-type="image/png"/>
<item id="__TOC" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
</manifest>
<spine toc="__TOC">
<itemref idref="__PART0"/>
<itemref idref="__PART1"/>
<itemref idref="__PART2"/>
<itemref idref="__PART7"/>
<itemref idref="__PART15"/>
<itemref idref="__PART29"/>
<itemref idref="__PART32"/>
<itemref idref="__PART40"/>
<itemref idref="__PART42"/>
</spine>
After tweak
<manifest>
<item id="__PART00" href="Text/Pressbooks-00.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART01" href="Text/Pressbooks-01.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART15" href="Text/Pressbooks-15.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART02" href="Text/Pressbooks-02.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART29" href="Text/Pressbooks-29.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART32" href="Text/Pressbooks-32.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART40" href="Text/Pressbooks-40.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART42" href="Text/Pressbooks-42.xhtml"
media-type="application/xhtml+xml"/>
<item id="__PART07" href="Text/Pressbooks-07.xhtml"
media-type="application/xhtml+xml"/>
<item id="__ITEM10" href="Styles/Pressbooks.css" media-type="text/css"/>
<item id="__ITEM11" href="Images/image01.png" media-type="image/png"/>
<item id="__ITEM12" href="Images/image02.png" media-type="image/png"/>
<item id="__ITEM13" href="Images/image03.png" media-type="image/png"/>
<item id="__ITEM14" href="Images/image04.png" media-type="image/png"/>
<item id="__ITEM15" href="Images/image05.png" media-type="image/png"/>
<item id="__ITEM16" href="Images/image06.png" media-type="image/png"/>
<item id="__ITEM17" href="Images/image07.png" media-type="image/png"/>
<item id="__TOC" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
</manifest>
<spine toc="__TOC">
<itemref idref="__PART0"/>
<itemref idref="__PART1"/>
<itemref idref="__PART2"/>
<itemref idref="__PART7"/>
<itemref idref="__PART15"/>
<itemref idref="__PART29"/>
<itemref idref="__PART32"/>
<itemref idref="__PART40"/>
<itemref idref="__PART42"/>
</spine>
---
Am 02.12.16, 14:08 schrieb "Thomas Dumm" <[email protected]>:
Dear Mr Shafie
It would be nice, if in the file content.opf the xhtml-files in the
manifest section could be listed in the same order as in the spine section
Background: My CMS determines the order of the imported files during EPUB
import based on the manifest and not based on the spine (…). Now I have to
rearrange the files after EPUB import which is error prone.
Thank you!
Regards
Thomas Dumm
--
XMLmind Word To XML Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/w2x-support