Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 10-27-2023, 05:00 AM   #46
Julie34
Enthusiast
Julie34 began at the beginning.
 
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.
Julie34 is offline   Reply With Quote
Old 10-27-2023, 10:51 AM   #47
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Julie34 View Post
How to import Dublin Core metadata with ODTImport ?
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...
Doitsu is offline   Reply With Quote
Old 10-28-2023, 03:08 AM   #48
Julie34
Enthusiast
Julie34 began at the beginning.
 
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 ?
Julie34 is offline   Reply With Quote
Old 10-28-2023, 06:19 AM   #49
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Julie34 View Post
Is there another possibility or plugin to export from odt or word and keep the styles like here and metas ?
I don't understand why you keep referring to styles, because styles and metadata entries are unrelated. If you were referring to the formatting of metadata entries, what formatting problems have you encountered?

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.
Doitsu is offline   Reply With Quote
Old 10-28-2023, 09:07 AM   #50
Julie34
Enthusiast
Julie34 began at the beginning.
 
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.
Julie34 is offline   Reply With Quote
Old 02-12-2024, 05:06 PM   #51
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
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:
  • removes the linear="no" attribute from the Cover page spine entry
  • adds the missing epub3 properties="cover-image" manifest entry attribute
  • adds Cover, TOC and Bodymatter landmarks semantics entries to nav.xhtml
(In accordance with the GPL license, the 2 modified Java files are included in the plugin folder.)

Unless you're really interested in these particular epub3 features, you might want to stick with the official release (ODTImport_0.4.0.zip).
Doitsu is offline   Reply With Quote
Old 02-13-2024, 01:11 PM   #52
retiredbiker
Addict
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 384
Karma: 1638210
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Ubuntu, 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.
retiredbiker is offline   Reply With Quote
Old 02-15-2024, 02:01 PM   #53
retiredbiker
Addict
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 384
Karma: 1638210
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Ubuntu, 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.
retiredbiker is offline   Reply With Quote
Old 02-15-2024, 06:51 PM   #54
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
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.
roger64 is offline   Reply With Quote
Old 02-15-2024, 08:10 PM   #55
retiredbiker
Addict
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 384
Karma: 1638210
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Ubuntu, 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!
retiredbiker is offline   Reply With Quote
Old 02-16-2024, 07:41 PM   #56
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
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).
roger64 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FileType Plugin] YVES Bible Plugin ClashTheBunny Plugins 27 01-16-2023 01:25 AM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 492 10-25-2022 08:13 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


All times are GMT -4. The time now is 07:26 PM.


MobileRead.com is a privately owned, operated and funded community.