![]() |
#16 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2010
Device: iPhone
|
|
![]() |
![]() |
![]() |
#17 | |
Connoisseur
![]() Posts: 51
Karma: 10
Join Date: Dec 2008
Location: Germany
Device: SONY PRS-500
|
Unable to enter CSS code
Quote:
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 |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Feb 2010
Device: android
|
anyone know how to get facing pages?
|
![]() |
![]() |
![]() |
#19 |
Member
![]() 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. |
![]() |
![]() |
![]() |
#20 |
Member
![]() 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 |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,270
Karma: 23661992
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.
|
![]() |
![]() |
![]() |
#22 |
Member
![]() Posts: 11
Karma: 10
Join Date: Jun 2008
Device: Kindle 3, Samsung Galaxy SII
|
OK. Thanks for your help.
|
![]() |
![]() |
![]() |
#23 |
Member
![]() 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! ![]() |
![]() |
![]() |
![]() |
#24 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
|
|
![]() |
![]() |
![]() |
#25 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
|
|
![]() |
![]() |
![]() |
#26 |
Member
![]() 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? |
![]() |
![]() |
![]() |
#27 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,270
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre does not strip away styles, it consolidates them into a single stylesheet.
|
![]() |
![]() |
![]() |
#28 | |
Member
![]() 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:
Last edited by marcot; 06-23-2010 at 08:46 AM. |
|
![]() |
![]() |
![]() |
#29 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,270
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The calibre css parser does not supported pseudo selectors.
|
![]() |
![]() |
![]() |
#30 | |
Member
![]() 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:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |