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!
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
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.