Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-07-2010, 09:10 PM   #1
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: 1,417
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
Howto import a file created in OpenOffice?

I usually work with OpenOffice. I recently tried to convert an ODT file to EPUB thru calibre.

I wonder if it would not be better to import directly a file coming from OpenOffice in Sigil in order to create an EPUB.

But which one?
- If I open the ODT file (renaming with zip), I find some xml files. Can Sigil make something out of them?

- If I save the ODT file as html, I get text (including footnotes) and images but I have no stylesheet.css file.

Any idea on the best way to proceed?

I also tried a nifty extension called writer2html which can export in strict xhtml. It can also divide the document in the ten chapters but with them Sigil produces ten different epub...Is there a way to batch import ten xhtml files, numbered 1 to 10?

Last edited by roger64; 03-08-2010 at 05:05 AM.
roger64 is offline   Reply With Quote
Old 03-08-2010, 06:42 AM   #2
weedfreak
Addict
weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.
 
weedfreak's Avatar
 
Posts: 302
Karma: 185297
Join Date: Sep 2009
Location: Ankh Morpork
Device: calibre
Have you looked at odt to epub extension?
weedfreak is offline   Reply With Quote
Old 03-08-2010, 07:30 AM   #3
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: 1,417
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
I tried it.
http://www.mobileread.com/forums/sho...1&postcount=34

Not yet ready for anything except plain text.
roger64 is offline   Reply With Quote
Old 03-08-2010, 09:43 AM   #4
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
I suggest you export to HTML and then import into Sigil.
Valloric is offline   Reply With Quote
Old 03-08-2010, 08:04 PM   #5
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: 1,417
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
OK I'll do it.

Sorry, I badly expressed my question:

When I prepare a big book (say over one megabyte, even in ODT format), if I export it , it will be a huge html file.

Sigil can deal with that but it's has trouble. When I need to change something in the code, Sigil may hang or be pretty slow.

Calibre knows how to divide this huge file in smal several so-called manageable "index_splits" which are very handy and very easily processed with Sigil.

So, up to now, if I have a big file to process with Sigil, It seems it's better to first use calibre if only to split it in several manageable parts.

I know one OpenOffice extension which, like calibre, can split an html file in several parts (chapters with heading 2 for example) in strict html format.

Question

Can Sigil batch import these different parts?
If not, is it planned to give it this possibility at a later stage?

and I got the google answer...

http://code.google.com/p/sigil/issues/detail?id=142

Last edited by roger64; 03-08-2010 at 11:33 PM. Reason: better expressing my question
roger64 is offline   Reply With Quote
Old 03-09-2010, 07:41 AM   #6
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by roger64 View Post
Can Sigil batch import these different parts?
In the 0.2.0 beta, you can right-click on the "Text" folder, select "Add existing files" and then select several XHTML/HTML/HTML/XML files that you want to add to Sigil from the open file dialog.

Sigil will add each one, and all the images and CSS files that the HTML files are referencing.
Valloric is offline   Reply With Quote
Old 03-23-2010, 12:16 AM   #7
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: 1,417
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
Thumbs up

This is a low-level trial report made by an average Linux user. My point is that we have the tools to get good and easy results for standard EPUB creation and I try to prove it.

I learnt these last days how to use OpenOffice to get later a nice enough EPUB from Sigil. I started from an odt file realized with OpenOffice 3.2,
I exported it to html format using Writer2xhtml extension in OpenOffice and in the end made an EPUB out of it using Sigil 0.2 beta
Please note that I only used standard settings with Writer2xhtml and Sigil Everything has been processed automatically in a push-button way.
You'll find in the attached zip file:
- the original odt file
- my template (in .ott format)
- the html file with its attached image folder created with Writer2xhtml extension
- the EPUB file created with Sigil 0.2
- two screenshots
1- OpenOffice working space
2- Writer2xhtml settings

COMMENTS
There are some precautions to take with OpenOffice.

Styles
This is the most important point. You should be aware that OpenOffice knows two kind of styles:
- the so-called normal styles, written in styles.xml. These are edited with the "stylist" (F11). Among them, "html" styles.
- the so-called automatic styles, written in content.xml. You can edit them directly using the menu "Format/paragraph".
To avoid later unnecessary clutter on your css file, it is advised to use consistently only F11 (stylist) to work with styles. For better even results select "html styles" (see joint screenshot)
Text
I took care to eradicate the so-called "soft-hyphens" which are presently not going well with Sigil.
Line-height
I found that a line-height of 120% gives later better viewing results on the EPUB. You can edit your styles in OpenOffice to give them this property.
Chapterbreaks
My Title 2 style creates a "pagebreak before".
Images
Images can be processed and placed easily within OpenOffice, including with reduced sizes.It's more tricky to get wrapped text around them in your EPUB. As this is yet beyond my beginner's level, I tried only to keep images chained after a text block.
Footnotes, numbering of chapters are easily processed.
Attached Files
File Type: zip OpenOffice to Sigil.zip (442.6 KB, 292 views)

Last edited by roger64; 03-24-2010 at 11:56 AM.
roger64 is offline   Reply With Quote
Old 03-23-2010, 12:21 AM   #8
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: 1,417
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
Thumbs up

mistake. See the message before...(Starts well, he?)

Last edited by roger64; 03-23-2010 at 12:27 AM. Reason: twice sent
roger64 is offline   Reply With Quote
Reply

Tags
open office

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with PDB file I created (Palm eReader, B&N) permutations Other formats 4 07-19-2010 05:46 AM
Calibre doesn't import all of PRC file MSJim Calibre 5 06-01-2010 02:26 PM
Howto convert epub file abbyl75 Introduce Yourself 0 12-08-2008 11:28 AM
OpenOffice PDF Import and Hybrid Export wallcraft Workshop 0 06-06-2008 08:15 PM


All times are GMT -4. The time now is 02:42 PM.


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