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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-13-2010, 08:51 PM   #1
Zenthor
Junior Member
Zenthor began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
EPub>Mobi>Kindle 3 large left margins

Most of my EPub>Mobi>Kindle 3 files have large left margin. I have seen this problem listed in these forms, but unless I have missed a post, I do not yet see a solution. I have tried EPub>Lit>Mobi but it converted with same large left margin. I can probably convert it Rich Text and fix in MS Word, but is there an easier way?
My Calibre is 0.7.23 with output set for Kindle (not DX)
Thanks!
Zenthor is offline   Reply With Quote
Old 10-13-2010, 09:07 PM   #2
Moe The Cat
Bear Melt
Moe The Cat ought to be getting tired of karma fortunes by now.Moe The Cat ought to be getting tired of karma fortunes by now.Moe The Cat ought to be getting tired of karma fortunes by now.Moe The Cat ought to be getting tired of karma fortunes by now.Moe The Cat ought to be getting tired of karma fortunes by now.Moe The Cat ought to be getting tired of karma fortunes by now.Moe The Cat ought to be getting tired of karma fortunes by now.Moe The Cat ought to be getting tired of karma fortunes by now.Moe The Cat ought to be getting tired of karma fortunes by now.Moe The Cat ought to be getting tired of karma fortunes by now.Moe The Cat ought to be getting tired of karma fortunes by now.
 
Moe The Cat's Avatar
 
Posts: 748
Karma: 2143153
Join Date: Jul 2008
Location: Toronto
Device: Nexus 4 & Nexus 7 (both with Cyanogenmod 11), Blackberry Z30
Have you set the margins in Calibre? When you are in the "Convert" dialogue window, if you click on "Page Setup", there will be a place to set "Top", "Bottom", "Left" and "Right" margins. That sets margins for the current book. You can also set this universally by clicking on "Preferences" at the top of the app and then choosing "Common Options" and then "Page Setup" again.
Moe The Cat is offline   Reply With Quote
Old 10-13-2010, 09:16 PM   #3
Zenthor
Junior Member
Zenthor began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Yes, I tried setting Left to 1, also, both left and right to 1 but it converted the exact same way with large left margin. I saw a post by the program author where he said as long as output is set to Kindle (it is) and I use current version (I am), margin should be the same as the epub, but...its not. Google (and these forums) show its a common problem, but there does not yet seem to be a solution other then dump epup to txt and manual redo.



Quote:
Originally Posted by Moe The Cat View Post
Have you set the margins in Calibre? When you are in the "Convert" dialogue window, if you click on "Page Setup", there will be a place to set "Top", "Bottom", "Left" and "Right" margins. That sets margins for the current book. You can also set this universally by clicking on "Preferences" at the top of the app and then choosing "Common Options" and then "Page Setup" again.
Zenthor is offline   Reply With Quote
Old 10-13-2010, 09:18 PM   #4
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: 8,843
Karma: 12535517
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by Zenthor View Post
Most of my EPub>Mobi>Kindle 3 files have large left margin. I have seen this problem listed in these forms, but unless I have missed a post, I do not yet see a solution.
The solution is to edit the margins in the epub prior to conversion. You can use Sigil for this or the Tweak epub feature built into calibre ans a editor like notepad++ to adjust the margins in the css file.
DoctorOhh is offline   Reply With Quote
Old 10-31-2010, 09:59 PM   #5
JeremyR
Guru
JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.
 
JeremyR's Avatar
 
Posts: 969
Karma: 2458216
Join Date: Aug 2010
Location: St. Louis
Device: Kindle Keyboard, Nook HD+
Hate to bump an two week old post, but is there a tutorial or something that explains how to do this? I've recently run into this problem (with some epubs uploaded here) and have no idea just what to change in the style sheet...

I saw

li {margin-bottom: 0.25em; margin-left: 2em;}

Changed that from 2 to .25, didn't affect the end product at all. (I assumed that meant "line", but I guess I must have been wrong)

Last edited by JeremyR; 10-31-2010 at 10:02 PM.
JeremyR is offline   Reply With Quote
Old 10-31-2010, 10:25 PM   #6
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: 8,843
Karma: 12535517
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by JeremyR View Post
li {margin-bottom: 0.25em; margin-left: 2em;}

Changed that from 2 to .25, didn't affect the end product at all. (I assumed that meant "line", but I guess I must have been wrong)
If you want to know how to edit the margins in a epub it might be best to ask the question in the epub forum.
DoctorOhh is offline   Reply With Quote
Old 10-31-2010, 10:41 PM   #7
JeremyR
Guru
JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.JeremyR ought to be getting tired of karma fortunes by now.
 
JeremyR's Avatar
 
Posts: 969
Karma: 2458216
Join Date: Aug 2010
Location: St. Louis
Device: Kindle Keyboard, Nook HD+
Yeah, but it's really a Calibre specific epub issue, though. The margins seem to look fine when the epub is viewed as an epub.

It's just when it's turned into a mobi that something goes haywire, so knowing just what to tweak in the epub to avoid this problem in Calibre seems more like a Calibre issue than epub.


At any rate, I simply deleted the style sheet and it seems to have taken care of it.
JeremyR is offline   Reply With Quote
Old 10-31-2010, 10:59 PM   #8
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: 8,843
Karma: 12535517
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by JeremyR View Post
Yeah, but it's really a Calibre specific epub issue, though. The margins seem to look fine when the epub is viewed as an epub.
An epub is an epub, if you want to remove margins you need epub advice. Personally epubs with a main left and right margin of 1em doesn't look great on any ereader unless you use the smallest font the larger you scale the font the bigger the margins become. Viewed on a computer or large screen it is ok but publishers seem to think we like them.
DoctorOhh is offline   Reply With Quote
Old 10-31-2010, 11:01 PM   #9
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,707
Karma: 5643657
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by dwanthny View Post
If you want to know how to edit the margins in a epub it might be best to ask the question in the epub forum.
li with no dot applies to ALL, li (list item, numbered) tag items only.
you might look at a working EPUB with Sigil in Code view and locate the indicated selectors in the style sheets to get some idea how the nested box model affects what you see.
theducks is online now   Reply With Quote
Old 10-31-2010, 11:05 PM   #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: 8,843
Karma: 12535517
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by theducks View Post
li with no dot applies to ALL, li (list item, numbered) tag items only.
you might look at a working EPUB with Sigil in Code view and locate the indicated selectors in the style sheets to get some idea how the nested box model affects what you see.
I'm not sure why you quoted me with this advice. I understand the html involved and thus have no questions on this subject.
DoctorOhh is offline   Reply With Quote
Old 10-31-2010, 11:22 PM   #11
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
Have you made sure that your output profile is also set to Kindle? Calibre calculates the margin handling for Mobi output a bit differently when it knows the final destination is a Kindle.
ldolse is offline   Reply With Quote
Old 11-01-2010, 04:12 AM   #12
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,596
Karma: 25170848
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
I have had no margin problems with the kindle and have converted 8000+ books for my mother's kindle 3. Of course I have not viewd all of them but a random sampling of 200+ reveals no problems.

The books I converted were 90 % in epub format for my Sony. epub is my default output. Probably doesn't make any difference but so far has worked flawlessly.
I no longer have the kindle as I sent it to my mother, but kindle for pc shows the books as fine.

Perhaps it is a kindle setting on the kindle itself?
speakingtohe is offline   Reply With Quote
Old 11-01-2010, 08:22 AM   #13
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,707
Karma: 5643657
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by dwanthny View Post
I'm not sure why you quoted me with this advice. I understand the html involved and thus have no questions on this subject.
Me thinks a system burped? The text did not match.

I would guess that you know MORE HTML than I
theducks is online now   Reply With Quote
Old 11-01-2010, 01:01 PM   #14
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: 25,994
Karma: 5036765
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
A quick explanation: Left margins in the MOBI format for the kindle can only be set in 2em blocks. That is a hard limitation of the Amazon MOBI renderer. So if you have a smaller left margin in your EPUB file, say 0.5em when translated to MOBI it becomes 2em.
kovidgoyal is offline   Reply With Quote
Old 11-02-2010, 08:37 AM   #15
martijnf
Junior Member
martijnf began at the beginning.
 
martijnf's Avatar
 
Posts: 1
Karma: 10
Join Date: Nov 2010
Device: Kindle3
Quote:
Originally Posted by kovidgoyal View Post
A quick explanation: Left margins in the MOBI format for the kindle can only be set in 2em blocks. That is a hard limitation of the Amazon MOBI renderer. So if you have a smaller left margin in your EPUB file, say 0.5em when translated to MOBI it becomes 2em.
I have the same problem as the op and have been struggling the whole day to find a solution that doesn't involve editting hundreds of files manually in Sigil.

I understand what you're saying here, but is there no way to override the epub settings? The dialog in Calibre would seem to suggest that you can set the margins when exporting. Now I can understand that anything less than 2em becomes 2em, but is there no way for 0 to become 0?

Adding css to the Extra CSS of Look&Feel also doesn't seem to accomplish anything as this is just ignored in my attempts (for instance by adding p { margin-left: 0; } which doesn't even show up anywhere in the document or css after a conversion to epub, nor does it work in a conversion to mobi).

While both the Sigil and Tweak Epub solutions are great when you only have to do a few files, it becomes very tedious with large numbers.

Thanks guys!

[edit] saw in this thread that there is an upcoming feature to just dump the margin completely. That would be great so I'll just wait for that and only worry about the things I want to read now.

[/edit]

Last edited by martijnf; 11-02-2010 at 09:03 AM.
martijnf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to completely remove the right and left margins? tiramisù Amazon Kindle 95 01-03-2012 11:23 PM
[Old Thread] Convert epub to mobi with wide left margin on Kindle victoria0217 Conversion 91 11-15-2011 05:25 PM
New conversion questions: Getting rid of huge left margin Epub to Mobi geekgeek Calibre 2 08-31-2010 11:00 PM
Epub to mobi margins.. Corran006 Calibre 0 08-27-2010 08:39 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:30 PM.


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