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 01-13-2010, 07:06 PM   #16
heidismiles
Junior Member
heidismiles began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2010
Device: iPhone
Quote:
Originally Posted by kjk View Post
That is a Stanza thing-it tends to override fonts with its settings.
I managed to use the <tt> tag to get Stanza to show typewriter style text...but I did that thru direct editing in Sigil-might work with your conversion though!
I'll try that, thanks so much!
heidismiles is offline   Reply With Quote
Old 01-14-2010, 05:00 AM   #17
XanthanGum
Enthusiast
XanthanGum began at the beginning.
 
XanthanGum's Avatar
 
Posts: 48
Karma: 10
Join Date: Dec 2008
Location: Germany
Device: SONY PRS-500
Unable to enter CSS code

Quote:
Originally Posted by ekaser View Post
In the Ebook Viewer application, click on the Hammer icon (Preferences), then put the code in the "User stylesheet" edit box and click OK. Have an ebook open in the viewer for the full effect, before and after.
ekaser,

I tried entering the suggested code from above by viewing one of my books (Nature news) but...the window that opens up when I click on the hammer icon (for Configure) displays only two options:

Use white background and Hyphenate.

There is a box displayed but I'm unable to enter any code there. I only have the options of clicking on OK and Cancel(ing).

Am I doing something wrong?

XG
XanthanGum is offline   Reply With Quote
Old 02-21-2010, 10:18 AM   #18
PsyWiped
Junior Member
PsyWiped began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2010
Device: android
anyone know how to get facing pages?
PsyWiped is offline   Reply With Quote
Old 02-22-2010, 08:03 AM   #19
Sony Reader
Member
Sony Reader began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2009
Device: PRS 505
I'm still attempting to play with recipes and struggling. If I get something like this in the viewer,

<div id="page" class="sub"> <div id="header"> <div class="menu"><ul class="menu"><li class="menu-361 first"><a href="/" title="">Home</a></li> <li class="menu-703 active-trail active"><a href="/category/article-categories/cyprus" title="" class="active">

then is it a style sheet problem.
Sony Reader is offline   Reply With Quote
Old 03-15-2010, 02:02 PM   #20
frandav
Member
frandav began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2008
Device: Kindle 3, Samsung Galaxy SII
It's been impossible for me to find the box in the preferences dialog to add the styles. I've searched and searched but, no way. Where is it? General, Interface, Conversion....?

Thanks
frandav is offline   Reply With Quote
Old 03-15-2010, 07:40 PM   #21
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,759
Karma: 4369667
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Its in the prefernces for the viewer (in the viewer itself) not in general preferences. Click the ammer icon in the viewer.
kovidgoyal is online now   Reply With Quote
Old 03-19-2010, 09:26 AM   #22
frandav
Member
frandav began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2008
Device: Kindle 3, Samsung Galaxy SII
OK. Thanks for your help.
frandav is offline   Reply With Quote
Old 03-20-2010, 02:28 PM   #23
FlooseMan Dave
Member
FlooseMan Dave began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Mar 2010
Location: Atlanta, GA
Device: Archos 5 32GB/Android - Aldiko
A rookie question. I have come across some eBooks that are in straight HTML and the formatting is rather primitive. In order to get them into an ePub format I have made modifications using a stylesheet in the HTML. When I use Calibre to convert from HTML to ePub, I find that all my H1 and H2 headings are formatted into separate files inside the ePub container. If my chapter heading has, say, two lines - one formatted in H1 and the other in H2 - the result is the chapter heading broken up into separate pages when Calibre displays it. What I am after is both lines of each chapter heading as well as the text of the chapter itself displaying on the same ePub 'page'. My concern is that when I send the book to my reader (an Archos 5 32GB Android running the Aldiko eReader) I'm going to have the same issue I'm having in Calibre. For the book in question I am looking at, there are 39 separate HTML documents in the ePub container. There are only 17 chapters and a TOC. I would think I should only see at most 18 or 19 separate files, not 39 of them. Does anyone have any suggestions on what to do to fix this?

A rank amateur would like to know. Thanks ahead of time for the he'p! )
FlooseMan Dave is offline   Reply With Quote
Old 03-20-2010, 04:59 PM   #24
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by FlooseMan Dave View Post
A rookie question. I have come across some eBooks that are in straight HTML and the formatting is rather primitive. In order to get them into an ePub format I have made modifications using a stylesheet in the HTML. When I use Calibre to convert from HTML to ePub, I find that all my H1 and H2 headings are formatted into separate files inside the ePub container. If my chapter heading has, say, two lines - one formatted in H1 and the other in H2 - the result is the chapter heading broken up into separate pages when Calibre displays it. What I am after is both lines of each chapter heading as well as the text of the chapter itself displaying on the same ePub 'page'. My concern is that when I send the book to my reader (an Archos 5 32GB Android running the Aldiko eReader) I'm going to have the same issue I'm having in Calibre. For the book in question I am looking at, there are 39 separate HTML documents in the ePub container. There are only 17 chapters and a TOC. I would think I should only see at most 18 or 19 separate files, not 39 of them. Does anyone have any suggestions on what to do to fix this?

A rank amateur would like to know. Thanks ahead of time for the he'p! )
I'm probably not the best person to help, but I wouldn't worry about the number of files inside or the contents of the epub, only about the appearance. If you are seeing too many chapters, read the help text of the --chapter-regex and --chapter-attr options (by mousing over them in the GUI) in the Preferences|Conversion|Structure Detection page to see how it detects chapters.
Starson17 is offline   Reply With Quote
Old 03-20-2010, 10:32 PM   #25
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,559
Karma: 12369681
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by Starson17 View Post
I wouldn't worry about the number of files inside or the contents of the epub, only about the appearance.
I concur with Starson17. You can always try to edit your epub using Sigil. The creator of Sigil is active in this forum.
DoctorOhh is offline   Reply With Quote
Old 06-23-2010, 07:43 AM   #26
marcot
Member
marcot began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2010
Device: iPod Touch
Calibre seems to strip away styles applied to most HTML tags (including the HTML 'a' tag, which is especially frustrating in my case--I want to style navigation bar links) when using extra css (under the "look and feel of output" tab of the GUI, or the --EXTRA-CSS switch on the command line).

Is there a workaround?
marcot is offline   Reply With Quote
Old 06-23-2010, 08:08 AM   #27
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,759
Karma: 4369667
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre does not strip away styles, it consolidates them into a single stylesheet.
kovidgoyal is online now   Reply With Quote
Old 06-23-2010, 08:25 AM   #28
marcot
Member
marcot began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2010
Device: iPod Touch
If I add the following "extra css," the stylesheet that Calibre generates does not include the style.


Quote:
a:link {
color: black;
}
a:visited {
color: white;
}
This seems to be the case, even if I am specifically overriding my target tag (e.g., "* div.calibrenavbar a:visited"). Could there be a glitch in the CSS parser, or is there one in my brain?

Last edited by marcot; 06-23-2010 at 08:46 AM.
marcot is offline   Reply With Quote
Old 06-23-2010, 09:03 AM   #29
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,759
Karma: 4369667
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The calibre css parser does not supported pseudo selectors.
kovidgoyal is online now   Reply With Quote
Old 06-23-2010, 09:16 PM   #30
marcot
Member
marcot began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2010
Device: iPod Touch
After some testing, my problem has become that I cannot apply any style to the calibrenavbar class. The CSS parser seems to ignore the following "extra-css" code when applied to the navbar, whether or not it includes pseudo selectors:

Quote:
.calibrenavbar1 {
display: none;
}
Is there a Calibre bug that needs a ticket, or is there a bug in my wetware, as I'm starting to believe?
marcot 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 03:41 AM.


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