Ticket #4214 (closed enhancement: fixed)

Opened 9 months ago

Last modified 9 months ago

Sorting MANIFEST files in ePUB conversion

Reported by: LARdT Owned by: kovidgoyal
Priority: major Milestone:
Component: EPUB Output Version: trunk
Keywords: OPF, MANIFEST Cc:

Description

When I make an ePUB file (from FB2, at least) the program works great but

the manifest section inside CONTENT OPF present the content files in this fashion:

<item href="index_split_12.xhtml" id="id294" media-type="application/xhtml+xml"/>
    <item href="index_split_21.xhtml" id="id285" media-type="application/xhtml+xml"/>
    <item href="index_split_77.xhtml" id="id229" media-type="application/xhtml+xml"/>
    <item href="index_split_95.xhtml" id="id211" media-type="application/xhtml+xml"/>
    <item href="index_split_14.xhtml" id="id292" media-type="application/xhtml+xml"/>

instead of presenting them SORTED:

<item href="index_split_0.xhtml" id="id2106" media-type="application/xhtml+xml"/>
 <item href="index_split_1.xhtml" id="id2105" media-type="application/xhtml+xml"/>
 <item href="index_split_2.xhtml" id="id2104" media-type="application/xhtml+xml"/>
 <item href="index_split_3.xhtml" id="id2103" media-type="application/xhtml+xml"/>
 <item href="index_split_4.xhtml" id="id2102" media-type="application/xhtml+xml"/>

Which comes very handy when you are debbuging the file

Do you thing you can make the program do a little sort before writing in the CONTENT.OPF file?

Thanks,

Change History

comment:1 Changed 9 months ago by LARdT

If possible it would be better if "..._1.xHTML" files are named with 2 digits as in "..._01.xHTML" In this way all the files would be properly sorted, but perhpas OPF standard does not allow it.

comment:2 Changed 9 months ago by kovidgoyal

  • Status changed from new to closed
  • Resolution set to fixed

Implemented in branch trunk. The fix will be in the next release.

Note: See TracTickets for help on using tickets.