Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 10-22-2010, 08:22 PM   #76
manwithamission
Junior Member
manwithamission began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2010
Device: Kindle
Didn't work for me

I tried that but i lost all the paragraphs on some mobi files and and table of contents on them all!
manwithamission is offline   Reply With Quote
Old 10-30-2010, 02:17 PM   #77
sofauxboho
Junior Member
sofauxboho began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2010
Device: Kindle 2
Quote:
Originally Posted by kovidgoyal View Post
It's on the todo list. However, it will only dump the left margin if > 90% of paragraphs have the same left margin.
I'm still struggling with this problem. Any idea what the ETA for a built in fix might be?

Thank you so much for all your work, Kovid.
sofauxboho is offline   Reply With Quote
Advert
Old 10-30-2010, 02:26 PM   #78
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sorry I don't do ETAs. It will get implemented when it gets implemented.
kovidgoyal is online now   Reply With Quote
Old 10-30-2010, 05:37 PM   #79
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 sofauxboho View Post
I'm still struggling with this problem. Any idea what the ETA for a built in fix might be?
Until an alternate solution exists use the tweak epub feature in calibre to edit the margins in the css file. If a css file doesn't seem to exist do a epub to epub conversion first then use the tweak epub feature to reduce or remove margins in the css file.

Or complain to the store you bought them from.
DoctorOhh is offline   Reply With Quote
Old 12-07-2010, 07:46 AM   #80
kt1
Junior Member
kt1 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2010
Device: Kindle
This worked for all the epubs I've tried so far without the need to tweak or jump through any extra hoops:

In the calibre conversion preferences, under "Look & Feel", add the following to the "Extra CSS" box:

body, p, div, .calibre1, .calibre2, .calibre3, .calibre4, .calibre5, .calibre6, .calibre7 {
margin-left: 0;
margin-right: 0;
}

That should eliminate the left margin.

If you guys find that there are more tags or classes that commonly show up in your epubs that have "margin-left" set to something other than 0 , please let me know so we can add it to the list.

Hope this helps! I was relieved.
kt1 is offline   Reply With Quote
Advert
Old 12-13-2010, 03:05 AM   #81
ebookrights
Banned
ebookrights began at the beginning.
 
Posts: 63
Karma: 12
Join Date: Nov 2010
Device: none
Quote:
Originally Posted by kt1 View Post
This worked for all the epubs I've tried so far without the need to tweak or jump through any extra hoops:

In the calibre conversion preferences, under "Look & Feel", add the following to the "Extra CSS" box:

body, p, div, .calibre1, .calibre2, .calibre3, .calibre4, .calibre5, .calibre6, .calibre7 {
margin-left: 0;
margin-right: 0;
}

That should eliminate the left margin.

If you guys find that there are more tags or classes that commonly show up in your epubs that have "margin-left" set to something other than 0 , please let me know so we can add it to the list.

Hope this helps! I was relieved.
This has been working great for me! Almost every conversion I did using Calibre had this problem. I used this CSS and everything seems to be working fine. Is there any reason to not just apply this CSS 100% of the time? I mean do certain books need to not have the margins set like this?
ebookrights is offline   Reply With Quote
Old 12-19-2010, 11:41 PM   #82
JohnLees
Junior Member
JohnLees began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2010
Location: Australia
Device: kobo + mobipocket on Symbian
Smile CSS to remove wide left margin

This is a brilliant fix! - I have literally been struggling with removing the wide left margin for days and your Extra CSS does the job - thank you!
JohnLees is offline   Reply With Quote
Old 12-20-2010, 12:21 AM   #83
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 JohnLees View Post
This is a brilliant fix! - I have literally been struggling with removing the wide left margin for days and your Extra CSS does the job - thank you!
I'm curious, in 0.7.34 Ignore margins was added to the Mobi ouput (see attached). Have you tried this option?
Attached Thumbnails
Click image for larger version

Name:	mobi_output.jpg
Views:	611
Size:	139.3 KB
ID:	63122  
DoctorOhh is offline   Reply With Quote
Old 12-25-2010, 12:25 PM   #84
JPWdAe
Junior Member
JPWdAe began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2010
Device: Kindle 3
Option "Ignore margins" in mobi output

Quote:
Originally Posted by dwanthny View Post
I'm curious, in 0.7.34 Ignore margins was added to the Mobi ouput (see attached). Have you tried this option?
Hi dwanthny,

just tried this one and it works just great! Thanks a lot!
JPWdAe is offline   Reply With Quote
Old 12-25-2010, 10:23 PM   #85
pconwell
Junior Member
pconwell began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2010
Device: kindle 3
Confirmed fixed in 0.7.35

I just tried the 'ignore margins' option and I can confirm that this fixed the issue for me.

Look under output settings > mobi format > ignore margins.
pconwell is offline   Reply With Quote
Old 01-09-2011, 11:42 PM   #86
JohnLees
Junior Member
JohnLees began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2010
Location: Australia
Device: kobo + mobipocket on Symbian
Smile Option "Ignore margins" in mobi output

Hi dwanthny, sorry for my delayed reply (holidays). I was unaware of this option, but now I have tried it I can confirm ticking "Ignore margins" under MOBI Output tab works a treat and is simpler to use than adding the custom CSS code.

Thanks for pointing this out.
JohnLees is offline   Reply With Quote
Old 10-02-2011, 01:52 PM   #87
allowingtoo
Bibliophile
allowingtoo began at the beginning.
 
Posts: 154
Karma: 10
Join Date: Sep 2010
Device: Amazon
Quote:
Originally Posted by dogbreath999 View Post
Fixing this problem for Dummies:

If anyone wanted to know the quick step by step I am doing to solve the problem I'll describe it below.

-First go to Calibre and convert Epub to Epub (yes the same format), making sure to go to "Page Setup" and change the left margin to 0.

-Then go into Sigil and open the new Epub file (it should automatically update or save in a new location). If it doesn't open or has an error it might be the old file you are opening, not the new one.

-Go under the folder "Styles" under the Book Browser, and open the Stylesheet.css

-In the style sheet, all I do is look for every single thing that says marginleft OR marginright and make sure the value is 0 for everything. If it says 1em I change it to 0em. If it says 5pt, I change it to 0pt. If its 0 I leave it at 0. If it says auto I leave it saying auto.

-Control S (Command S for mac) to save. Then exit Sigil

-Back in Calibre all I do is click convert to Mobi this time to make a Kindle compatible file format. Again make sure under "Page setup" it has 0 for the left margin value (it should if you did this before).

-Now when you put the file on the device it should be in a nice normal format. Everytime i've followed this procedure it has worked very nicely. I DO wish that Calibre could do this by itself, as it takes like a minute per book conversion, but its not the worst thing in the world.

Since I'm somewhat computer illiterate this HOWTO would have at least saved ME a ton of time figuring out how to fix this problem when I first had it.
OMG thank you! Now if only I hadn't started a new thread on this. But you saved my sanity. It worked.
allowingtoo is offline   Reply With Quote
Old 10-02-2011, 06:31 PM   #88
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 dwanthny View Post
Quote:
Originally Posted by allowingtoo View Post
OMG thank you! Now if only I hadn't started a new thread on this. But you saved my sanity. It worked.
Ignore margins was added to the Mobi ouput. Have you tried checking this option when converting from ePub to Mobi?
See image attached to this post.
DoctorOhh is offline   Reply With Quote
Old 10-07-2011, 05:35 PM   #89
allowingtoo
Bibliophile
allowingtoo began at the beginning.
 
Posts: 154
Karma: 10
Join Date: Sep 2010
Device: Amazon
Did not work. The author in question added some custom CSS code and some double block quotes to top it off. There was nothing in her books in a block quote so I have no idea why the block quote code other than it was for the Mobi format. She has so much custom CSS code in there it is unbelievable. I guess she thinks it makes for a better looking book. I think it was just beyond Calibre.
allowingtoo is offline   Reply With Quote
Old 10-08-2011, 03:42 AM   #90
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
Moderator Notice
Moved to correct subforum.
Manichean is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't remove wide margin left side :( allowingtoo Sigil 2 10-02-2011 01:57 PM
.mobi conversion adding unwanted left margin Skydog Conversion 3 05-01-2011 07:43 PM
EPub>Mobi>Kindle 3 large left margins Zenthor Calibre 14 11-02-2010 08:37 AM
New conversion questions: Getting rid of huge left margin Epub to Mobi geekgeek Calibre 2 08-31-2010 11:00 PM
Wide left margins in epub to kindle conversion jchrist Calibre 0 02-02-2010 09:13 PM


All times are GMT -4. The time now is 12:09 PM.


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