09-30-2009, 01:01 PM | #46 |
Lector minore
Posts: 655
Karma: 1738720
Join Date: Jan 2008
Device: Aura One, Paperwhite Signature
|
|
09-30-2009, 01:29 PM | #47 |
Resident Curmudgeon
Posts: 76,402
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Does anyone have an ePub to show <dl></dl>?
|
Advert | |
|
10-02-2009, 09:28 PM | #48 |
Connoisseur
Posts: 79
Karma: 42
Join Date: Sep 2009
Device: sony reader touch (prs-600)
|
well, i have one or two, but i haven't yet made them "public" on feedbooks, because i'm still editing them. the example code shows basically the same way i used this in the epubs, though the words are different. this works, at least on my prs-600 and ADE, and mostly works in FBReader (the formatting is off, but fbreader doesn't full support epub anyway).
do you want a pic of <dl> on the sony reader? |
10-09-2009, 03:45 AM | #49 | |
Connoisseur
Posts: 79
Karma: 42
Join Date: Sep 2009
Device: sony reader touch (prs-600)
|
super easy ePub columns
To make columns in an ePub, use the following CSS property on any block element, such as "body" or "div":
Code:
oeb-column-number: [integer] | auto; Quote:
Pretty cool! =) |
|
10-09-2009, 05:01 AM | #50 | |
Connoisseur
Posts: 79
Karma: 42
Join Date: Sep 2009
Device: sony reader touch (prs-600)
|
Quote:
My personal favorite of these mini plays is "The Mystery." =) |
|
Advert | |
|
11-06-2009, 07:54 PM | #51 | |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Quote:
Code:
span.predrop { font-size: 25%; font-weight: normal; vertical-align: top; line-height: 1.9; margin-left: -0.5em } Code:
<span class="drop">‘I</span> then the left margin of the dropcap region shifts over to the right by about 0.5em. Adding the predrop span as originally coded doesn't change this, though it aligns properly when I add the margin-left correction. My familiarity with CSS is stilll somewhat rudimentary, so I wonder if there's something I'm missing here, though it works right now. |
|
11-07-2009, 06:20 AM | #52 | |
Chocolate Grasshopper ...
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
Quote:
Do you have any screenshots of the Sony to 'see' how it looks ? |
|
11-07-2009, 09:42 AM | #53 |
Chocolate Grasshopper ...
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
...OOOoooooohhhh....
now that is a very nifty trick [I also see Nrapallo mentioned it on .imp]. I only tested this on a small book and on ADE (and yes, even with the full width of my PC screen) the font has to be tweeked to the minimum. thank you - I shall now go and 'play' some more with this ..... |
12-01-2009, 10:33 AM | #54 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2009
Location: Tampere, Finland
Device: Nokia N96
|
svg on title page
I have bit of a problem:
I made an svg file (and validated it at w3 validator) - made an xhtml file using <object> to link to the svg file (and validated the xhtml at w3) then I made an epub using the xhtml file as cover and validated the book at epubcheck... and yet neither Boookworm nor Firefox add-on play the cover on browser the cover page plays... any ideas? cheerd, Jussi |
12-01-2009, 12:28 PM | #55 | |
Resident Curmudgeon
Posts: 76,402
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
12-01-2009, 01:45 PM | #56 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2009
Location: Tampere, Finland
Device: Nokia N96
|
Thanks ... can't verify on ADE (I'm on Ubuntu) - then again may be there
isn't a problem in the book itself: when opening the book on bookworm using my S60 mobilephone the cover plays correctly... I attach the book if someone's interested enough to take a look cheers, Jussi |
12-01-2009, 02:14 PM | #57 |
Chocolate Grasshopper ...
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
the cover shows in ADE, but very very small.
chapter one is on its own, but chapter two expands out to the remaining chapters and the notes. the picture at the end of Alphonse Aulard shows up well .... as to everything else, the display looks good, expands into two columns and has a background to it.... |
12-02-2009, 06:35 AM | #58 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2009
Location: Tampere, Finland
Device: Nokia N96
|
Thanks Geoff - so the book works.
|
12-02-2009, 06:41 AM | #59 |
Chocolate Grasshopper ...
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
yes - as far as I can see, in ADE, it does ....
it also works on the PC version of the Sony Reader - although on that I only get a single column. there may be coding issues with the TOC, but that's a minor issue .... |
01-17-2010, 11:46 AM | #60 |
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
One sometimes wants to have a way to detect which reader is being used, so that some feature can be disabled or some workaround activated. There is no standard way to detect the reader, but something can be done to detect the Adobe engine, and activate or deactivate CSS stuff depending on whether the book is being rendered by Adobe or not.
The "trick" is just using Adobe's conditional CSS in the page template file (xpgt). Since at the moment only Adobe understands and uses the xpgt, whatever you put in this file will only be read by Adobe. So you could have, in your standard CSS file: Code:
.ade { display: none; } Code:
<ade:style> <ade:styling-rule selector=".noade" display="none"/> <ade:styling-rule selector="div.ade" display="block"/> <ade:styling-rule selector="span.ade" display="inline"/> </ade:style> |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
direkter Umlaut oder lieber HTML Code in Epub ? | NASCARaddicted | Erste Hilfe | 14 | 06-16-2011 06:54 AM |
Programming language code snippets in ebooks? | Connochaetes | Writers' Corner | 7 | 10-18-2010 03:43 PM |
ebook-convert HTML to EPUB and problem with <pre><code> | mikegr | Calibre | 2 | 03-09-2010 03:27 PM |
css override code for margins? | Amalthia | Calibre | 15 | 08-11-2009 08:20 PM |
Problems generating ePub from HTML/CSS | AlexBell | Calibre | 3 | 07-17-2009 06:10 AM |