XML technologies / ePUB / ePub für (In)Designer / Refining bullets and lists / Editing combined list types

(Excerpt from “ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book” by Sascha Heck & Yves Apel)

Under Combined list types we saw that InDesign struggles with combined list types. InDesign alone cannot produce the desired result, so inspect the ePub. Its HTML shows incorrect list export. Here is a simplified tag sequence as exported by InDesign CS5 and CS5.5. At the far right is the correct code for proper list display.

Combined-list HTML in CS5, CS5.5 and corrected form

Figure: Simplified HTML generated by InDesign,
with the correction at the far right.

HTML marks lists with the tags <ol> (ordered list), <li> (list items) and <ul> (unordered list). Both InDesign CS5 and CS5.5 interrupt the <ol> and start a new list, explaining the numbering problem. CS5.5 even encloses the two bullet items within a <li>.

Open the document in Sigil and change HTML to match the right-hand example for the desired result. Here is the example in Sigil after correction:

Correct combined lists in Sigil

Figure: Correct combined lists in Sigil.

  

 

 

 

back to top