|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,518
Karma: 9654537
Join Date: Jun 2009
Location: Berlin
Device: Cybook, iRex, PB, Onyx
|
Margins
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.
__________________
Keep on reading in the free world! |
|
|
|
|
|
#2 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,514
Karma: 2944574
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.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,447
Karma: 2827758
Join Date: Oct 2010
Location: NYC
Device: 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? |
|
|
|
|
|
#4 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,514
Karma: 2944574
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.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,447
Karma: 2827758
Join Date: Oct 2010
Location: NYC
Device: Sony 650
|
Use a wrapper div. So there is no way to do this without opening up the epub and editing it?
|
|
|
|
|
|
#6 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,514
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
no .
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#7 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,514
Karma: 2944574
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.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#8 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,518
Karma: 9654537
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.
__________________
Keep on reading in the free world! |
|
|
|
|
|
#9 |
|
Member
![]() 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? |
|
|
|
|
|
#10 | |
|
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,319
Karma: 11288999
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7, Sony PRS-950, Sony PRS-505, PRS-300
|
Quote:
__________________
-- Good Reading, Walt -- 20GB of free CLOUD STORAGE: Use this link to sign up for a free 15GB Copy.com cloud storage account and we both get an extra 5GB of free space. |
|
|
|
|
|
|
#11 | |
|
Member
![]() Posts: 20
Karma: 10
Join Date: Jan 2011
Device: Amazon Kindle 3 3G+WiFi
|
Quote:
Won't an epub-to-epub overwrite the initial file? I'm guessing I'd want to back that up first? |
|
|
|
|
|
|
#12 | |
|
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,319
Karma: 11288999
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7, Sony PRS-950, Sony PRS-505, PRS-300
|
Quote:
True it would overwrite and you should back it up.
__________________
-- Good Reading, Walt -- 20GB of free CLOUD STORAGE: Use this link to sign up for a free 15GB Copy.com cloud storage account and we both get an extra 5GB of free space. |
|
|
|
|
|
|
#13 |
|
Member
![]() 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. |
|
|
|
|
|
#14 |
|
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,384
Karma: 848775
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.
|
|
|
|
|
|
#15 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,514
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
MOBI doesn't support margins. calibre fakes left margins in MOBI output by nesting <blockquotes>
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hacks Turning Margins off and on ?? | drone207A | Amazon Kindle | 0 | 10-01-2010 12:42 AM |
| Margins and Indents | sloecoach | Calibre | 2 | 09-26-2010 04:41 PM |
| Margins in 6.3 | Amalthia | Calibre | 19 | 07-10-2010 08:40 AM |
| Help with margins | Switch | Calibre | 3 | 04-30-2010 02:53 AM |
| Margins | cklammer | EPUBReader | 0 | 12-07-2009 02:55 AM |