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 12-20-2010, 04:48 AM   #1
Billi
Wizard
Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.
 
Billi's Avatar
 
Posts: 3,275
Karma: 13547747
Join Date: Jun 2009
Location: Berlin
Device: Cybook, iRex, PB, Onyx
Margins

In the ebook conversion/page setup dialog you can define margins in "points".

Kovid, would it be possible to add the possibility to define these margins in "em"s?
Why am I asking this? The Adobe Reader used in the new big Pocketbooks (902, 903) desperately needs margins. It is possible to set them in Calibre to something like 36 points, but than these files can't be read on 6"-devices. By setting the margins to 2em or 3em the books might be readable in both devices. Thank you in advance.
Billi is offline   Reply With Quote
Old 12-20-2010, 01:01 PM   #2
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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can do this yourself, by simply wrapping everything in a div with a margin set in ems.

As for changing the option, I'd rather not do it as it would be a very disruptive change, all of people existing settings would have to be forgotten.
kovidgoyal is offline   Reply With Quote
Old 12-20-2010, 01:22 PM   #3
elemenoP
Wizard
elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.
 
Posts: 1,715
Karma: 3790058
Join Date: Oct 2010
Location: NYC
Device: Kindle Paperwhite, Sony 650
I have a similar question about margins. I want to set them in the Extra CSS, not Calibre's setting. Like this:

body {
margin-top: 1em;
margin-left: 1em;
margin-right: 1em;
}

But this is never taking effect because of the Calibre setting. How can I "turn off" the calibre setting and use my own CSS?
elemenoP is offline   Reply With Quote
Old 12-20-2010, 01:23 PM   #4
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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
set them to zero and use a wrapper div, as I said in my previous post.
kovidgoyal is offline   Reply With Quote
Old 12-20-2010, 01:50 PM   #5
elemenoP
Wizard
elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.elemenoP ought to be getting tired of karma fortunes by now.
 
Posts: 1,715
Karma: 3790058
Join Date: Oct 2010
Location: NYC
Device: Kindle Paperwhite, Sony 650
Use a wrapper div. So there is no way to do this without opening up the epub and editing it?
elemenoP is offline   Reply With Quote
Old 12-20-2010, 01:56 PM   #6
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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
no .
kovidgoyal is offline   Reply With Quote
Old 12-20-2010, 02:26 PM   #7
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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I should add that I would recommend against setting margins in ems. They quickly become unusable if the user happens to increase the font size they are reading at.
kovidgoyal is offline   Reply With Quote
Old 12-20-2010, 03:36 PM   #8
Billi
Wizard
Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.
 
Billi's Avatar
 
Posts: 3,275
Karma: 13547747
Join Date: Jun 2009
Location: Berlin
Device: Cybook, iRex, PB, Onyx
Kovid, thank you and karma for thinking about it. I can see your points.
Billi is offline   Reply With Quote
Old 01-22-2011, 03:31 AM   #9
clemon79
Member
clemon79 began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Jan 2011
Device: Amazon Kindle 3 3G+WiFi
Bumping this because I'm running into problems myself.

I'm using Sigil to edit and format an epub, and there are several passages that I want to increase the margins on, and so I am setting those passages to a style in the CSS within the epub, which seems to be working but not honoring the "margin-left" and "margin-right" arguments.

I have unchecked "Ignore margins" in Calibre, and it's still not honoring those settings.

Should it in fact honor them if "Ignore margins" is unchecked, or am I doing something wrong?
clemon79 is offline   Reply With Quote
Old 01-22-2011, 04:38 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: 8,908
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by clemon79 View Post
I'm using Sigil to edit and format an epub, and there are several passages that I want to increase the margins on, and so I am setting those passages to a style in the CSS within the epub, which seems to be working but not honoring the "margin-left" and "margin-right" arguments.

I have unchecked "Ignore margins" in Calibre, and it's still not honoring those settings.
If you set "margin-left" and "margin-right" properly in the css calibre honors these settings. Try a epub to epub conversion first and see how the converted epub looks.
DoctorOhh is offline   Reply With Quote
Old 01-22-2011, 04:52 AM   #11
clemon79
Member
clemon79 began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Jan 2011
Device: Amazon Kindle 3 3G+WiFi
Quote:
Originally Posted by dwanthny View Post
If you set "margin-left" and "margin-right" properly in the css calibre honors these settings. Try a epub to epub conversion first and see how the converted epub looks.
Hmmm, that's what I'm doing, though. The (non-converted) epub displays correctly, it's just that the resulting mobi isn't honoring them.

Won't an epub-to-epub overwrite the initial file? I'm guessing I'd want to back that up first?
clemon79 is offline   Reply With Quote
Old 01-22-2011, 05:01 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: 8,908
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by clemon79 View Post
Hmmm, that's what I'm doing, though. The (non-converted) epub displays correctly, it's just that the resulting mobi isn't honoring them.
I occurs to me that you have to make sure your new conversions have ignore margins unchecked. Once checked for a given conversion subsequent conversions will retain that setting for that book.

Quote:
Originally Posted by clemon79 View Post
Won't an epub-to-epub overwrite the initial file? I'm guessing I'd want to back that up first?
True it would overwrite and you should back it up.
DoctorOhh is offline   Reply With Quote
Old 01-22-2011, 05:15 AM   #13
clemon79
Member
clemon79 began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Jan 2011
Device: Amazon Kindle 3 3G+WiFi
Okay, so I backed it up, and ensured that "Ignore Margins" is still unchecked. (It was.)

An epub-to-epub was completely clean, it rendered just how I expected it to.

Epub-to-mobi, though: it's now respecting margin-left, but not margin-right or margin-top (the latter of which I've dropped to 0 because I want paragraphs during these passages butting right up against each other.)

So I'm still puzzled.
clemon79 is offline   Reply With Quote
Old 01-22-2011, 10:46 AM   #14
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,473
Karma: 1053245
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
I know the Kindle doesn't support margin-right and margin-top. I'm not sure but I think it's a limitation of the MOBI format.
user_none is offline   Reply With Quote
Old 01-22-2011, 11:14 AM   #15
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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
MOBI doesn't support margins. calibre fakes left margins in MOBI output by nesting <blockquotes>
kovidgoyal 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
Hacks Turning Margins off and on ?? drone207A Amazon Kindle 0 10-01-2010 01:42 AM
Margins and Indents sloecoach Calibre 2 09-26-2010 05:41 PM
Margins in 6.3 Amalthia Calibre 19 07-10-2010 09:40 AM
Help with margins Switch Calibre 3 04-30-2010 03:53 AM
Margins cklammer EPUBReader 0 12-07-2009 03:55 AM


All times are GMT -4. The time now is 05:10 AM.


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