![]() |
#46 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Oct 2017
Location: where is my heart
Device: Kobo Glo, and...
|
Works fine for me. But I have a question : How to import Dublin Core metadata with ODTImport ?
With the add of : "<xhtml-style-map name="custom-body-text" family="paragraph" element="p" css="custom-bodytext" />" and some elements in a secondary epub.css file (or not), it add fine the styles or "normal" metadatas of the ODT but ignore the "dc:..." meta. Many thanks. |
![]() |
![]() |
![]() |
#47 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,635
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
The plugin is using writer2latex.jar for the conversion, which has only limited metadata support. In LibreOffice, select File > Properties > Description to add metadata. Title, will be mapped to <dc:title>, both Subject and Keywords will be mapped <dc:subject> and Comments will be mapped to <dc:description>.
You'll need to manually add all other metadata entries in Sigil via Tools > Metadata Editor... |
![]() |
![]() |
Advert | |
|
![]() |
#48 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Oct 2017
Location: where is my heart
Device: Kobo Glo, and...
|
Many thanks for the answer.
I allready did it manually but was interested to know if it was possible. <subject> is not separated when severall items with coma. I had to do it manually too. ![]() Is there another possibility or plugin to export from odt or word and keep the styles like here and metas ? |
![]() |
![]() |
![]() |
#49 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,635
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
As for other conversion options, you could try and save your file as a .docx file and then either convert it with Calibre or the DOCXImport Sigil plugin. However, since it's much easier to add and edit metadata entries in Sigil, you might want to consider adding them there. |
|
![]() |
![]() |
![]() |
#50 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Oct 2017
Location: where is my heart
Device: Kobo Glo, and...
|
You're right, here i asked for the metas.
Thanks a lot ! I Have all the informations I needed. I mentioned styles because, of course i'm interested in keeping them too. That the ODTImport do perfectly from the odt. And, i think too that it's easier to add a meta with the Metas Editor Tool in Sigil even if it's possible to add them directly in the content.opf. So i'll keep to ODTImport for a part even if i'm still using the old "Amanuensis" sometime when in windows. Last edited by Julie34; 10-28-2023 at 09:12 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#51 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,635
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
New version with Writer2xhtml 1.7 released
I've attached a new plugin version in two "flavors" to the first post. The first one, ODTImport_0.4.0.zip, contains the latest version of Writer2xhtml 1.7 with several bug-fixes by the original author. For more information, please see the official release notes.
The second one, ODTImport_0.4.1.zip, contains an unofficial version of Writer2xhtml 1.7 with several cosmetic changes for better epub3 compatibility. My version:
Unless you're really interested in these particular epub3 features, you might want to stick with the official release (ODTImport_0.4.0.zip). |
![]() |
![]() |
![]() |
#52 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 414
Karma: 2289864
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Thank you! I installed this last night and gave it a quick test...seems fine. In a day or two I'll have an odt of an old novel to really try it out.
|
![]() |
![]() |
![]() |
#53 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 414
Karma: 2289864
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
I'm new to Sigil and new to this import plugin. Just used it for a full-length novel newly OCR'd and proofed in Writer. Works very well. (Much better than the Calibre odt conversion, which is unmaintained.)
Main thing I like: it keeps my css selectors intact, exactly as in the odt file. It does not generate any css with them, but I simply dump the example css, pull in my custom css, and it works. It uses <i> for italics, not some invented <span> code like Calibre does. Splits the file on <h1> tags. That is sufficient; in the future I'll add dummy <h1>s to get any extra splits I want--for a dedication page, for example. Very quick, very clean. ![]() |
![]() |
![]() |
![]() |
#54 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Indeed.
Many thanks for this welcome release! Most of the work on the software can be controlled thru the use of a unique text configuration file. A recommended step before first using it regularly would be to have a look at it, and if need be, to select your custom options (for example, how to split files ![]() This file, named config.xml can be found in the ODTImport folder. This folder is among the plugins Sigil folder. If you wish so, you can also insert in this latest folder your own epub.css file or a resources folder containing for example fonts to be embedded or any other file you may wish to include in your ePub. The underlying java engine (writer2xhtml) has now been dissociated from writer2latex. For the time being, the relevant writer2latex manual contains also the documentation for writer2xhtml (English) v. 1.6.1. https://writer2latex.sourceforge.net...r2xhtml10.html Enjoy! Last edited by roger64; 02-15-2024 at 07:31 PM. |
![]() |
![]() |
![]() |
#55 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 414
Karma: 2289864
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
@roger64, thanks for the pointers. I had not gotten to the config file yet, and looking at it with your link to the writer2xhtml manual makes it very easy to see what is going on. I've made a couple of small changes, and will have fun playing with them!
|
![]() |
![]() |
![]() |
#56 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
You're welcome.
To correct a mistake of mine: when you download writer2xhtml v. 1.7, you'll find in the zip (within the doc folder) a user manual in odt format for version 1.7. It's quite an exhaustive document (about 30 pages). |
![]() |
![]() |
![]() |
#57 |
Groupie
![]() Posts: 152
Karma: 10
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6
|
config.xml
I've upgraded the plugin to 0.4.1 in order to make some tests with the config.xml to see if I can improve on the results I obtained previously (in 2022) with the conversion of lists from the odt to the epub.
On reading the latest "user-manual-Writer2xhtml17.odt" with special reference to anything mentioning lists, I saw the option "list_formatting" with three possible values - ignore_all, convert_labels, convert_all. This is at odds with line 20 in the config.xml supplied with the plugin 0.4.1 which quotes "value=css1" The footnote (7) in the writer2xhtml17 documentation says that option "list_formatting" is a new option in v17 and replaces a previous option called "list_hack". The option was already called "list_formatting" back in writer2latex v1.4 (page 51) and at that time, a possible value was indeed css1. That value no longer exists so line 20 of config.xml could be updated in the current plugin version. Incidentally, when updating the plugin in Sigil, I made a rookie error. Using Sigil's gui for Manage Plugins, I removed the old version and installed the new one. And my customised epub.css and config.xml files were lost, replaced by the basic versions in the new zip file. Fortunately, I had ~ backups from which to recover them—a useful reminder to keep copies in a safe place. |
![]() |
![]() |
![]() |
#58 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,635
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
![]() |
![]() |
![]() |
#59 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,030
Karma: 11123121
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
I have been using the plugin very frequently without issue. But this time, I receive this error message:
Code:
Status: failed Python Version: 3.11.3 writer2latex.jar command line: java -jar C:\Users\Juerg\AppData\Local\sigil-ebook\sigil\plugins\ODTImport\writer2xhtml.jar -epub -config=C:\Users\Juerg\AppData\Local\sigil-ebook\sigil\plugins\ODTImport\config.xml -stylesheet=C:\Users\Juerg\AppData\Local\sigil-ebook\sigil\plugins\ODTImport\epub.css E:/EBücher/Entwürfe/Julia Lopes de Almeida, Der Bankrott/Julia Lopes de Almeida, Der Bankrott.odt writer2latex.jar messages: This is Writer2xhtml, Version 1.7 (2022-06-13) Starting conversion... I'm sorry, I can't find E:/EBücher/Entwürfe/Julia Lopes de Almeida, Der Bankrott/Julia Lopes de Almeida, Der Bankrott.odt Plugin version: 0.4.0, Sigil version 2.1.0. Windows 64 bit. Please, what could this be? Edit: Applying the plugin to other files works. Must be something in the chosen file. Edit': At last, I saved it under a real simple name (xxx) on the desktop, and now it worked. Very strange... Last edited by Leonatus; 05-25-2024 at 10:22 AM. |
![]() |
![]() |
![]() |
#60 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,062
Karma: 5449552
Join Date: Nov 2009
Device: many
|
FWIW:
Embedded spaces and any embedded either forward or backward slashes are problems that require special % encoding of characters or escaping depending on its form and platform. The command you used mixes both forward (unix native) and backwards (windows native) path separators and not all backslashes are escaped and it appears nothing is quoted or percent encoded meaning spaces are probably an issue as well. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 494 | 05-18-2024 02:34 AM |
[FileType Plugin] YVES Bible Plugin | ClashTheBunny | Plugins | 27 | 01-16-2023 01:25 AM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 02:24 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 12:11 PM |