Conditional text is empty when exporting a document to EPUB

As a possible workaround, Calibre can convert .odt to .epub - might be worth a try.

Thanks, Iā€™ll do that.

As a possible workaround, Calibre can convert .odt to .epub - might be worth a try.

Itā€™s taken me a while, but Iā€™ve just tried Calibre (version 6.16.0), and I am impressed. It does a competent job of converting a large .odt document into .epub.

So far, there are some small problems, the most important of which is that it doesnā€™t restart numbering where required for numbered lists. I donā€™t know how to fix that.

Thank you for the suggestion.

Numbered lists are quite tricky if you want to do it right (semantically right, I mean). If your lists are numbered with Format>Bullets & Numbering or equivalently with toolbar buttons, they all fall in the same ā€œsemantic domainā€. This way of numbering items is a complimentary service offered to Word switchers, supposed to ease conversion to Writer. Since it is inspired by M$ Word, it has many quirks to make it usable by newbies. Consequently it is prone to many hazards.

The rigorous method of numbering goes through list styles but the theoretical notion of list is difficult to grasp in the beginning. And list styles are not easy to tame!

1 Like

The rigorous method of numbering goes through list stylesā€¦

Thanks for the reply, @ajlittoz. I am indeed using a list style for all of my numbered lists, because I want them all to have the same format, and of course to make it easy if I need to change the format later.

Iā€™ve been using ā€œRestart numberingā€ for the first item in each list. It works perfectly in LibreOffice but not in the generated EPUB :slightly_frowning_face:

Iā€™ve been looking at the file contents.xml, and I see that the subsequent lists always have the attribute continue-list. Quite bizarrely, there is one list (again, with the same list style as all the others) that doesnā€™t have this attribute, and so it does restart from 1 in the generated EPUB. But I canā€™t figure out how I managed to do that! I canā€™t reproduce this.

Iā€™ve reported the bug with Calibre. In the meantime, Iā€™m thinking of using a pseudo-list style, where I outdent the first line of each paragraph so that I can manually number each list. Itā€™ll be a pain, and I hope that I donā€™t make a numbering mistake (there are quite a few lists in the document) ā€” it also prevents using an automated reference to a list item in the document ā€” but I donā€™t know how else to do go about this.