Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-21-2010, 07:54 PM   #1
nkormanik
Connoisseur
nkormanik began at the beginning.
 
nkormanik's Avatar
 
Posts: 86
Karma: 10
Join Date: Oct 2010
Location: Philippines
Device: DavidAcisAAJ
Some Conversions Take Unreasonably Long

I decided to convert my entire collection of epubs using Calibre just to be sure they are in "good form."

Certain of the epubs take FOREVER to convert, however. One conversion -- a 500 kb epub -- has been chugging along for HOURS. I'm doing it using command line, and can see that progress seems to be happening. But..., why so long???

Are certain epubs so ill-formatted, or complex, that a conversion takes longer?

Any thoughts appreciated.

Nicholas Kormanik
nkormanik is offline   Reply With Quote
Old 10-21-2010, 10:44 PM   #2
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Quote:
Originally Posted by nkormanik View Post
Are certain epubs so ill-formatted, or complex, that a conversion takes longer?
Yes... In particular any files where Microsoft Word generated the original code.
ldolse is offline   Reply With Quote
Advert
Old 10-21-2010, 11:25 PM   #3
nkormanik
Connoisseur
nkormanik began at the beginning.
 
nkormanik's Avatar
 
Posts: 86
Karma: 10
Join Date: Oct 2010
Location: Philippines
Device: DavidAcisAAJ
Well..., HOLY SMOKES!!! Some are taking FOREVER....

After Calibre converts them, will they be in better shape, ya think??

That's precisely my hope, that Calibre will put them into better form than they were to begin with.
nkormanik is offline   Reply With Quote
Old 10-21-2010, 11:50 PM   #4
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Usually once Calibre normalizes the css things are better. But certain types of styles may cause every conversion to be slow.
ldolse is offline   Reply With Quote
Old 10-22-2010, 01:29 AM   #5
nkormanik
Connoisseur
nkormanik began at the beginning.
 
nkormanik's Avatar
 
Posts: 86
Karma: 10
Join Date: Oct 2010
Location: Philippines
Device: DavidAcisAAJ
I'm seeing a pattern to the conversion bottlenecks:

C S S

Whatever the hell that means or implies.
nkormanik is offline   Reply With Quote
Advert
Old 10-22-2010, 04:59 AM   #6
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
CSS is a style sheet for HTML type files. See the Wikipedia entry for details. It implies that Idolse is right, and that the original CSS in those epubs is seriously messed up.
Manichean is offline   Reply With Quote
Old 10-22-2010, 05:14 AM   #7
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by Manichean View Post
and that the original CSS in those epubs is seriously messed up.
The css isn't messed up but it is needlessly complex. This is what happens when you save a Word doc as a web page.
DoctorOhh is offline   Reply With Quote
Old 10-22-2010, 05:23 AM   #8
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Quote:
Originally Posted by dwanthny View Post
The css isn't messed up but it is needlessly complex. This is what happens when you save a Word doc as a web page.
Doesn't that count as "seriously messed up"?
Manichean is offline   Reply With Quote
Old 10-22-2010, 06:02 AM   #9
Ortep
Fanatic
Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.
 
Posts: 527
Karma: 470
Join Date: Sep 2007
Location: The Netherlands
Device: Kindle Oasis
Quote:
Originally Posted by dwanthny View Post
The css isn't messed up but it is needlessly complex. This is what happens when you save a Word doc as a web page.

No, there is no CSS as you save a Word doc as HTML, I do it all the time.

CSS is a hobby of some people to make things complex, you don't need it when you use Word as a WYSIWYG tool and save as Filtered HTML.
Ortep is offline   Reply With Quote
Old 10-22-2010, 06:24 AM   #10
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by Ortep View Post
No, there is no CSS as you save a Word doc as HTML, I do it all the time.

CSS is a hobby of some people to make things complex, you don't need it when you use Word as a WYSIWYG tool and save as Filtered HTML.
Once that file is converted to a epub all of the WYSIWYG styling (sometimes 1000s of line) is moved to a css file.

Filtered is quite a bit smaller but the resultant css is still
DoctorOhh is offline   Reply With Quote
Old 10-22-2010, 06:31 AM   #11
Ortep
Fanatic
Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.
 
Posts: 527
Karma: 470
Join Date: Sep 2007
Location: The Netherlands
Device: Kindle Oasis
Quote:
Originally Posted by dwanthny View Post
Once that file is converted to a epub all of the WYSIWYG styling (sometimes 1000s of line) is moved to a css file.

Filtered is quite a bit smaller but the resultant css is still

But Word does not create a CSS document, It is something Calibre does. And only for ePub. That is one of the reasons I stay away from ePub...it is a big bowl of spaghetti.

When I have an ePub half the time I use Winrar to open it and simply delete the CSS. It often improves the book. Epub works fine without a CSS
Ortep is offline   Reply With Quote
Old 10-22-2010, 06:53 AM   #12
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by Ortep View Post
But Word does not create a CSS document, It is something Calibre does.
You're right, but calibre doesn't make the stuff up it acquires all that junk from the WYSIWYG styling all throughout the Word html. Word is directly responsible for all the crap.

Quote:
Originally Posted by Ortep View Post
And only for ePub. That is one of the reasons I stay away from ePub...it is a big bowl of spaghetti.
Using CSS is industry standard for any html not just epub. The css makes a web document much easier to manage.

Quote:
Originally Posted by Ortep View Post
When I have an ePub half the time I use Winrar to open it and simply delete the CSS. It often improves the book. Epub works fine without a CSS
Since this is a calibre forum you can now just right click on the book and use calibre's tweak epub feature instead of winrar.

CSS is used to define many things in a document, removing the css will often cause you to lose most or all styling and formatting. What you end up with is a lump of text wrapped in a epub. But if you have one of those epubs created from a Word source file then it might be a good idea before you process it with calibre.
DoctorOhh is offline   Reply With Quote
Old 10-22-2010, 06:59 AM   #13
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
The css from Word (and similar) sources is inline, it doesn't create a separate file. If you want to delete it beforehand from a source originating from Word you need to learn enough html to delete an inline css.
ldolse is offline   Reply With Quote
Old 10-22-2010, 07:21 AM   #14
Ortep
Fanatic
Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.
 
Posts: 527
Karma: 470
Join Date: Sep 2007
Location: The Netherlands
Device: Kindle Oasis
Quote:
Originally Posted by dwanthny View Post
Since this is a calibre forum you can now just right click on the book and use calibre's tweak epub feature instead of winrar.
You are right, I keep forgetting that new option. I was using Winrar for a long time now.

I know that CSS is a standard but in my experience it is not 'helping' me but complicating things. It feels like going back to the 80s with my old Unix systems. Everything separate in a file and everything pointing or linking to something else, arcane commands and horrible things like VI.

The fun part of Calibre is that I not have to think about what were and how.
Ortep is offline   Reply With Quote
Old 10-22-2010, 04:50 PM   #15
nkormanik
Connoisseur
nkormanik began at the beginning.
 
nkormanik's Avatar
 
Posts: 86
Karma: 10
Join Date: Oct 2010
Location: Philippines
Device: DavidAcisAAJ
Quote:
Originally Posted by dwanthny View Post

Since this is a calibre forum you can now just right click on the book and use calibre's tweak epub feature instead of winrar.
Are you perhaps suggesting that it would be a good idea to do a Calibre "tweak" on all our epubs?

Is there a command-line for tweaking??

If so, I should have been doing this as part of the command-line conversion process. But I'll gladly send them all through a second time around for a final "CALIBRE TWEAK"!!
nkormanik is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle Conversions trstill Calibre 1 09-20-2010 10:07 AM
Batch Conversions SludgeMan Calibre 4 09-06-2010 10:57 AM
Font Conversions Johndhalsted Calibre 1 06-21-2010 01:32 PM
Managing Conversions emellaich Calibre 15 07-21-2009 12:37 AM
Long, long time... Chaos Introduce Yourself 6 04-26-2007 11:34 PM


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


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