Replies: 5 comments 18 replies
|
I know that AbiWord crashes (or at least used to crash) when opening a novelWriter generated ODT file, but not if you open and save it again in LibreOffice. I never managed to find out why, as AbiWord crashes with no error. The novelWriter ODT file passes validation in the OpenDocument validator tool, so I'm not sure what the cause could be. I suspect AbiWord assumes there is content there that LibreOffice and OpenOffice adds, but that novelWriter does not. Maybe it's the same here. When novelWriter generates an ODT file, it only writes the info it must, to be compliant with the standard. LibreOffice writes a lot more info into the file, like a ton of settings that are specific to LibreOffice. My assumption was that the other applications would just add their defaults on their own. I think I also enabled compression on the ODT file in novelWriter. Not all office applications do that (they're just Zip files). In any case, none of this has anything to do with your text inside the document I expect, but more to do with all the other information that is added under the hood. Like how font is specified. When I wrote the ODT export format, I looked at how font is formatted. What you could try is to export fodt instead of odt, and do the same in LibreOffice. The fodt file is a plain XML file, and it is possible to compare those in a plain text editor. You'll notice that the LibreOffice version has a lot more info aside from your text than the novelWriter file has. If you can figure out exactly what's causing the issue, I'm happy to try to fix it at my end. I can probably have a look myself as I have Calibre installed. |
|
@mogplus88 I also suspect that Calibre analyzes some data that is specifically written by LibreOffice or OpenOffice, but which may be optional by the standard. That doesn't matter, though, because an Office text document contains far too much formatting information for an EPUB anyway—information you'd probably have to painstakingly pick out yourself with Calibre. Newer versions of LibreOffice include built-in EPUB export, and there’s also a very good extension called writer2epub that, in my opinion, creates even better EPUB files. Have you tried it yet? You could use these EPUB documents as a starting point for fine-tuning with Calibre, which saves a lot of cleanup work. Apart from that, I would simply open the ODT file exported from novelWriter in LibreOffice and save it again, as suggested above. You could also apply a document template at this point to customize the layout to your liking. |
|
@peter88213 thanks for the tips. I have tried exporting an epub from Writer, but I suspect (based on no evidence other than pure paranoia) that it would not do as good a job as Caliber, as exporting an epub is a small and probably little used feature of Writer, so maybe not fully tested and verified. Whereas it is Caliber's raison d'etre. Another slight concern I have is that when I have imported the epub from Writer into Sigil it detects (and automatically corrects) a number of errors. I haven't tried writer2epub but I will certainly give it a shot. EDIT. Seems writer2epub only works on Windows. I use Linux... :-( ;-) Ian |
|
Tried another approach today, which seems to work as well. Exporting from NW in .html format. Caliber can open it and the formatting from NW seems to be maintained. I've converted my book to AZW3 (Kindle format) and so far it looks good. The TOC looks a bit strange, as Calibre seems to have randomly selected three level two headings to include in it (from three non-consecutive chapters), and nothing else... ;-) |
|
Well, that was interesting. Turns out AZW3 is not a valid format to upload to Kindle by email. So I have no idea how to get it onto my Kindle. A bit of searching told me that Amazon will convert an uploaded epub book to azw3, so my confusion now lies in why tools like Calibre (and others) would bother converting anything to azw3. You can't upload it to Amazon, but, according to the experts, anything you upload is converted to azw3 anyway. Duzzen madder. SEP. Let me rephrase that. I haven't discovered a way to upload a azw3 to Amazon. Somebody smartere and/or more knowledeable than me may know how to do it. So I've got my book on my Kindle now. I've found that reading the book on my Kindle is a very different experience to reading it on the computer. Formatting becomes a much more critical issue it seems. Not to mention all the typos and plot oddities I'm finding... :-\ |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi All,
I have been experimenting recently with using Caliber to create an epub version of my book to upload to Kindle. To do this I created a .odt file from NW, then added it to Caliber and attempted a conversion to epub, which failed. The error seemed to be related to a problem with font family. Tried a lot of mucking around with fonts but to no avail.
So, in an attempt to find out where it was failing I decided to copy the first half of the document generated by NW into a new file and try to convert that. Success! So I tried copying more of the file, thinking that I would eventually reach a point where it failed and I could identify the point that was causing the problem. It didn't happen. I eventually copied the whole file into a new file, and the file converted successfully.
So I created a much smaller file (using the NW example project) and tried the same thing. The generated file didn't work in Caliber, but a copied file did.
Strange I thought, as I noticed a couple of other weirdnesses too. 1. The file I exported from NW used the font Liberation Sans 10pt to create the output file, and that is the font that was in the output file. But when I copied it, the new version used Liberation Serif 12pt instead. 2. The copied file was much bigger. The file NW created was ~16.1k but the copied version was ~25.3k. However both files appeared to be identical when opened with Libreoffice Writer. I didn't check it word for word but a quick scan comparing the two showed no text discrepancies. Changing the font back to Liberation Sans 10pt in the copied file made no difference to the size. 3. The heading in the NW generated document does not appear in the copied document.
I initially started searching in a Caliber forum but found absolutely nothing even vaguely related to this problem, so I'm posting this here in case the original problem, that Caliber rejected the original file created by NW for conversion, could be related to how it is generated by NW.
But why a different version copied and pasted seems to produce a radically different file is a mystery to me. I'm not even sure where I could ask the question. Maybe a Linux forum? I'll try that.
:-\ Ian
EDIT. I thought it must be related to Libreoffice Writer. I've posted a question in their forum.
All reactions