From LibreOffice to ePub
Off the Beat: Bruce Byfield's Blog
As someone contemplating ebook publishing, I found the LibreOffice / OpenOffice.org extension Writer2ePub worth investigating. After all, while GNU/Linux has a couple of apps that can read the popular ePub format -- Calibre and Lucidor -- about the only way to actually produce ePub content is to export from DocBook. However, I'll have to wait a version or two before relying on Writer2ePub.
Writer2ePub is available from the OpenOffice.org extensions site, where it is currently the highest rated extension -- which makes me wonder how carefully people have examined it before rating it. You can download it in seconds, then use Tools -> Extension Manager to install it. As with most extensions, you need to restart so that Writer2ePub is loaded.
The extension creates a toolbar of three buttons in the upper left corner of the editing window -- one for exporting to ePub format, one for editing meta-data, and the third for preferences.
However, before you use Writer2ePub, you need to save your document. As you write, you will want to use at least the Heading1 style, because that is the easiest way to divide your output into the chapters. If you want smaller divisions, you can use Heading2 and Heading3 as well. Probably, though, you'll want to use character, paragraph, and page styles throughout the document, because if you need to make any adjustments -- and, very likely, you will -- changing a style is much quicker than making corrections line by line.
Setting Preferences
When you are ready to export to ePub format, click Writer2ePub's Preferences button. There, you can decide how to create chapters -- either by specifying which Heading style marks the start of each chapter, or else by kilobytes (an option I don't recommend, because it is a less reliable indicator of where to divide chapters than using a style as marker.
The Preference window also gives you the option of selecting the font height and font. In most cases, you'll probably only need to make sure that the font is the same for both the source and output files, but the option to make adjustments is there if you need it.
Other preferences include the meta-data you want to include in the file, and operational options: you can keep the working file after you export to ePub, hide any messages Writer2ePub gives during export, and automatically close the source file after you finish exporting. It's also a good idea to choose to show the meta-data window before exporting, so you can have one final check before you create the export file.
Exporting to ePub format
Before you export, you are required to give at least a title as meta-data for the output. Note that the title is not the file name.
You also have the option of adding an ISBN, publisher, publishing date, tags, a cover, and comments. The cover, though, should be the same dimensions as the rest of the pages, or else it won't show up.
So far, so trouble-free. But when you click the OK button and export, you'll quickly find that Writer2ePub output is usually adequate, but far from perfect if you are exporting anything except a basic text-heavy document.
Even if you are careful to use the same font in the source and output, spacing such as line indentation or spaces between paragraphs may change. Bullets and numbers in lists simply disappear. Pictures are forced into left alignment. Tables are reduced to a single row of cells.
Once you know these limitations, you can work around many of them. You can, for example, create graphics with white space on each side to center-align a graphic, or create a table as a graphic.
However, these makeshifts are going to look clumsy unless you labor over them, and the real question is why you should have to. Writer2ePub is supposed to be a simple desktop solution, so users have a right to complain if it falls short of its goal. In layout, kludges and almost are rarely good enough, especially if you need professional-looking output.
Writer2ePub has the basics down, so its developers can now concentrate on improving its conversion. However, until improvements come, giving it a five start rating is an exaggeration that will only mislead others -- to say nothing of a disappointment to those of us who want a tool we don't have to think much about.
Comments
comments powered by DisqusSubscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.
-
ZorinOS 17.1 Released, Includes Improved Windows App Support
If you need or desire to run Windows applications on Linux, there's one distribution intent on making that easier for you and its new release further improves that feature.
-
Linux Market Share Surpasses 4% for the First Time
Look out Windows and macOS, Linux is on the rise and has even topped ChromeOS to become the fourth most widely used OS around the globe.
-
KDE’s Plasma 6 Officially Available
KDE’s Plasma 6.0 "Megarelease" has happened, and it's brimming with new features, polish, and performance.
-
Latest Version of Tails Unleashed
Tails 6.0 is based on Debian 12 and includes GNOME 43.
-
KDE Announces New Slimbook V with Plenty of Power and KDE’s Plasma 6
If you're a fan of KDE Plasma, you'll be thrilled to hear they've announced a new Slimbook with an AMD CPU and the latest version of KDE Plasma desktop.
-
Monthly Sponsorship Includes Early Access to elementary OS 8
If you want to get a glimpse of what's in the pipeline for elementary OS 8, just set up a monthly sponsorship to help fund its continued existence.
ODFToEPub
Werner Donné
Pincette bvba
Writer2ePub