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

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-22-2012, 05:55 PM   #136
pendeverNM
Junior Member
pendeverNM began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2012
Device: Sony PRS-505
I've placed this code in my viewer preferences, and what I see on all Calibre ebooks is smushed-together text, looking like black squiggles - but if copied, the text comes out OK.
I've tinkered with spacing and size, and nothing seems to make any difference.
Can you please help?
thanks,
Pen
pendeverNM is offline   Reply With Quote
Old 07-09-2012, 10:21 AM   #137
mapline
Enthusiast
mapline knows the complete value of PI to the endmapline knows the complete value of PI to the endmapline knows the complete value of PI to the endmapline knows the complete value of PI to the endmapline knows the complete value of PI to the endmapline knows the complete value of PI to the endmapline knows the complete value of PI to the endmapline knows the complete value of PI to the endmapline knows the complete value of PI to the endmapline knows the complete value of PI to the endmapline knows the complete value of PI to the end
 
Posts: 41
Karma: 31594
Join Date: Jul 2012
Location: Essex,UK
Device: Kobo Touch
Hi
New user and I have a problem using the viewer as it cuts the top and bottom line .
Tried setting top and bottom margin as in post 1.
Makes No difference.
Can you tell me what I am doing wrong.
Thanks
Michael
mapline is offline   Reply With Quote
Old 07-21-2012, 09:12 AM   #138
atjnjk
Zealot
atjnjk will become famous soon enoughatjnjk will become famous soon enoughatjnjk will become famous soon enoughatjnjk will become famous soon enoughatjnjk will become famous soon enoughatjnjk will become famous soon enough
 
Posts: 105
Karma: 554
Join Date: Oct 2008
Device: none
Quote:
Originally Posted by mapline View Post
Hi
New user and I have a problem using the viewer as it cuts the top and bottom line .
Tried setting top and bottom margin as in post 1.
Makes No difference.
Can you tell me what I am doing wrong.
Thanks
Michael
From v0.8.61, you can click the top right button of the viewer so that no line is cut off. See this for more details.
atjnjk is offline   Reply With Quote
Old 08-28-2012, 06:03 AM   #139
guycruls
Junior Member
guycruls began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2012
Device: ibooks
'Colors and backgrounds'

I have the calibre reader on two machines - one is vista, the other 7.
preferences on vista give me a handy interface to format 'Colors and backgrounds', but preferences on 7, forces me to create a CSS?
that is just plain dumb.
guycruls is offline   Reply With Quote
Old 08-28-2012, 06:14 AM   #140
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,583
Karma: 12369683
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by guycruls View Post
I have the calibre reader on two machines - one is vista, the other 7. preferences on vista give me a handy interface to format 'Colors and backgrounds', but preferences on 7, forces me to create a CSS?
that is just plain dumb.
Preferences on both machines should be the same. I've attached my Windows 7 Viewer preferences. There are four tabs across the top, choose General. Then click on Colors and backgrounds. Nothing could be simpler.
Attached Thumbnails
Click image for larger version

Name:	Win7ViewerPreferences.jpg
Views:	334
Size:	102.2 KB
ID:	91418  

Last edited by DoctorOhh; 08-28-2012 at 06:16 AM.
DoctorOhh is offline   Reply With Quote
Old 08-28-2012, 09:58 AM   #141
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: 13,623
Karma: 5126946
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by guycruls View Post
I have the calibre reader on two machines - one is vista, the other 7.
preferences on vista give me a handy interface to format 'Colors and backgrounds', but preferences on 7, forces me to create a CSS?
that is just plain dumb.
Are you running the (nearly) same version of Calibre on both machines?

That option has been around a while.
theducks is online now   Reply With Quote
Old 08-28-2012, 06:58 PM   #142
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,583
Karma: 12369683
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by theducks View Post
Are you running the (nearly) same version of Calibre on both machines?
Good point, bring current both versions of calibre.
DoctorOhh is offline   Reply With Quote
Old 09-26-2012, 12:10 PM   #143
anoved
Enthusiast
anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.
 
anoved's Avatar
 
Posts: 41
Karma: 1005240
Join Date: Feb 2012
Device: Kindle Keyboard, iPhone
Multi column stylesheet

Here is a stylesheet I use to display text in multiple columns. The columns are as tall as the viewer window and you scroll horizontally to see more columns of text. The vertical position of lines of text does not change as you scroll. On a big computer screen, I like reading this way. (I've learned that some people strongly disagree. If that's you, cool - just move along!)



Works only with "flow" mode, not paged mode. I've only tested it with a few relatively simple ebooks. It may interact unpredictably with more complex formatting.

Horizontal scrolling works nicely with my trackpad, but unfortunately vertical scrolling (which jumps between chapters) seems too sensitive for my control, so I use the arrow keys. (Although that's not really specific to this stylesheet.)

Code:
html {
	height: 100%;
	width: 100%;
	padding: 0;
	margin: 0;
}

body {
	height: 100%;
	margin: 0;
	padding: 0;

	/* column-width seems to be treated as a suggestion; actual width
	is varied to fit an even number of columns within screen width. */
	-webkit-column-width: 20em;
	-webkit-column-count: auto;
	-webkit-column-gap: 1.5em;

	line-height: 1.5em;
}

/* This is a fudge fix to prevent the children of the body tag from
defining margins that overlap the body height, which causes small
but annoying amounts of vertical scroll. Uses a wildcard because
I don't necessarily know how any particular page is structured. */ 
body > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
I've also posted the code at github.com/anoved/McCalibre, where I may post any future updates.

Note this stylesheet just affects the layout of the text. You can still append additional styles for specific font/color/etc effects.
anoved is offline   Reply With Quote
Old 09-27-2012, 03:53 AM   #144
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 1,030
Karma: 1427876
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kindle DX Graphite/Kobo Aura HD
Quote:
Originally Posted by anoved View Post
Here is a stylesheet I use to display text in multiple columns. The columns are as tall as the viewer window and you scroll horizontally to see more columns of text. The vertical position of lines of text does not change as you scroll. On a big computer screen, I like reading this way. (I've learned that some people strongly disagree. If that's you, cool - just move along!)
Nice trick. I'm firmly in the 'Urgh. No thanks!'-camp, but it's definitely cool
mbovenka is offline   Reply With Quote
Old 09-27-2012, 03:58 AM   #145
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: 24,834
Karma: 4370273
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@anoved: You know that in paged mode you can tell the viewer to display multiple columns on the screen right? Preferences->Text Layout in paged mode

kovidgoyal is offline   Reply With Quote
Old 09-27-2012, 08:31 AM   #146
anoved
Enthusiast
anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.anoved ought to be getting tired of karma fortunes by now.
 
anoved's Avatar
 
Posts: 41
Karma: 1005240
Join Date: Feb 2012
Device: Kindle Keyboard, iPhone
Green Eggs and Ham

Quote:
Originally Posted by kovidgoyal View Post
@anoved: You know that in paged mode you can tell the viewer to display multiple columns on the screen right? Preferences->Text Layout in paged mode
Yep, and it's quite nice. The difference with my stylesheet, though, is that the columns always remain in the window, instead of a paging away. A minor distinction.

I appreciate that Calibre is flexible enough to support eccentric preferences like mine!

Last edited by anoved; 09-27-2012 at 08:40 AM.
anoved is offline   Reply With Quote
Old 11-14-2012, 09:40 AM   #147
cyberxaos
Junior Member
cyberxaos began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2012
Device: iPhone
Here's an "iBook" theme I created for my 13" Macbook Pro (1280 x 800) display:

http://pastebin.com/tUxfe8cL#

Should be able to just cut 'n' paste this -- it has a base64 encoded png of a "book" as the image-background. Works well in full screen mode on my 1280x800 display -- probably won't work on other display sizes. Thanks to the base64 encoding there's a lot of css text, so it may take a minute to load into your "user stylesheet" tab (be prepared for spinning rainbow wheel).

Mac users: if you want to craft your own, use following css along with the background image of your choice (put the image in /Users/<your username>/Library/Preferences/calibre/images):

body {color:rgb(80,58,34);
background-color:rgb(174,174,174);
background-image:url("/Users/<your username>/Library/Preferences/calibre/images/<filename>.png");
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center;
text-align:justify;
line-spacing:1.8;
margin-top:50px;
margin-bottom:50px;
margin-right:50px;
margin-left:50px;
text-indent:3em;}
h1, h2, h3, h4, h5, h6
{color:rgb(80,58,34);
text-align:center;
font-style:italic;
font-weight:bold;}
cyberxaos is offline   Reply With Quote
Old 12-06-2012, 07:07 AM   #148
ms_ts_2007
Junior Member
ms_ts_2007 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2012
Device: Pc
Quote:
Originally Posted by rgponce View Post
My style sheet:

body {
color: #393939;
background:#F9F0C9 url('file:///C:/Program Files (x86)/Calibre2/resources/images/old_paper.jpg');
text-align:justify;
line-spacing:1.8;
margin-right:8em !important;
margin-left:8em !important;
}
p {
text-indent:2.5em !important;
padding-bottom:0.5em;
font-family: "Book Antiqua", Palatino, serif !important;
}
h1, h2, h3, h4, h5, h6, .p6 {
color: #330000 !important;
border-bottom: 2px solid #330000 !important;
text-align:right !important;
font-style:italic !important;
font-weight:bold !important;
font-size: 1.3em !important;
}
::selection {
background: #FADC5C;
}

image used as background:
Alright, this is exactly what I was looking for, a way to set a background image to my viewer. Now please, can someone please help me make a stlysheet that will leave every other setting intact, just adding the background image feature ?

Or point me how i can do this via Calibre interface, in case i am blind and I've missed it.
ms_ts_2007 is offline   Reply With Quote
Old 12-29-2012, 07:10 PM   #149
maisondouf
Junior Member
maisondouf began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2012
Device: Sony
Please, how to make margin-bottom and margin-top working ??
maisondouf is offline   Reply With Quote
Old 12-29-2012, 08:07 PM   #150
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,583
Karma: 12369683
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by maisondouf View Post
Please, how to make margin-bottom and margin-top working ??
Toggle the scroll icon to enter Paged mode. Now you will get a top and bottom margin that you can easily control via viewer preferences.
DoctorOhh 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
Custom CSS for output deckoff Calibre 1 08-28-2010 11:55 PM
ePub with custom .css on a 505 dicknskip Sony Reader Dev Corner 3 06-09-2010 11:34 PM
User stylesheets for ePub files salty-horse Sony Reader Dev Corner 12 02-23-2010 07:44 AM
ePub conversion: override existing css with a custom one sbin Calibre 1 01-09-2010 04:03 AM
Calibre's generated css for epub brewt Calibre 7 12-29-2008 09:59 AM


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


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