01-15-2009, 04:47 PM | #46 |
speaking for myself
Posts: 139
Karma: 2166
Join Date: Feb 2008
Location: San Francisco Bay Area
Device: PRS-505
|
|
01-15-2009, 05:18 PM | #47 | ||
speaking for myself
Posts: 139
Karma: 2166
Join Date: Feb 2008
Location: San Francisco Bay Area
Device: PRS-505
|
Quote:
Quote:
Kovid - I think he is studying for PhD in physics (as I once did). I'd say being a scientist is more noble than being a software engineer, so first, let's see if he gets bored with academia. Besides, he may not be able to work on free ebook stuff if he is employed by Adobe, so be careful what you wish for. |
||
01-15-2009, 05:23 PM | #48 | |
creator of calibre
Posts: 43,839
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
01-15-2009, 09:01 PM | #49 | |
speaking for myself
Posts: 139
Karma: 2166
Join Date: Feb 2008
Location: San Francisco Bay Area
Device: PRS-505
|
Quote:
I did plasma and gas dynamics in that place: http://www.lle.rochester.edu/. But I have bailed out after getting MS. |
|
01-16-2009, 08:38 AM | #50 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Thanks, I used it, but not explicitly in the second paragraph, but in a "p.initial + p" selector (hoping that reading systems will support adjacent sibling selectors). What do people think about this, is it better having the second paragraph starting beside the drop cap or having a vertical space before it?
I also changed the "predrop" code to make it a bit more portable (now the displacement is from the top of the drop cap, not from the bottom). |
01-16-2009, 12:48 PM | #51 |
Boo-Frickety-Hoo-Erizer
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
|
That looks pretty darn good. If I read your epub directly (sony pic).
I'm just having trouble getting the idea to work with my stuff now. When I try to re-render your file in Calibre, I get the old problem in DE. (DE pic) Maybe I'm missing something on some other level in rendering in calibre? If I wanted to rebuild your file in calibre (with modifications, say, adding double quotes) how would I rebuild it? Calibre's Epub-to-epub got different results in DE/sony - my attempt at rebuilding it in calibre is attached. The Calibre Viewer seems to see the Calibre-rendered version ok, but DE has issues with it. -bjc |
01-16-2009, 02:53 PM | #52 | ||
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
|
||
01-16-2009, 04:03 PM | #53 |
Boo-Frickety-Hoo-Erizer
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
|
Clumsy of me:
The Sony pic is of your original epub. - Chapter 28.jpg We've so far seen Sony and DE to render the drop caps similarly, and yes, DE did your original epub correctly, too. The epub I attached was a straight re-render of the epub through calibre - I didn't change anything. Loaded it in, asked it to rebuild the epub. The DE picture is of the re-rendered epub - the Sony viewer had the same problem on the re-rendered. - Chapter28-calibre-rendered.jpg chapter28-calibre-viewer.jpg is of the calibre-re-rendered epub, in the calibre viewer. Yes, calibre outputs 3 css's per html file. I've seen these css's exceed 1 meg in size, if I chose really aweful rtf files to start with. I spent most of the morning trying to replicate your solution, and found that I couldn't get it to work by rendering in calibre. -bjc |
01-17-2009, 09:01 AM | #54 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Well, I bit the bullet and installed Digital Editions in a Windows computer, I have to transfer the files between computers for testing, though.
I noticed that DE does not seem to support "position: relative" which means the "predrop" class (Ch. XXX, XXXIII) was not working properly. I change the code into something that seems to work. I also noticed I had the width and height of the cover image mixed up. Code:
span.predrop { font-size: 25%; font-weight: normal; vertical-align: top; line-height: 1.9; /*position: relative; top: 0.4em;*/ /*ADE does not support this*/ } - It does not support "font-variant: small-caps", or at least the last sentence of the book is not rendered correctly. - It breaks lines before an em-dash. This is incorrect in Spanish, where em-dashes are used very much like parentheses. Think of a linebreak just before a closing parenthesis. |
01-17-2009, 09:27 AM | #55 | |||
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
Quote:
Quote:
Code:
.nobreak { white-space: nowrap; } Code:
<p><span class="nobreak">—These</span> em dashes are like <span class="nobreak">parentheses!—</span></p> |
|||
01-17-2009, 09:42 AM | #56 | |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I have an oldish linux in this computer, and it's already a bit crammed. My last experiences with Wine here were rather disappointing (like all text disappearing, it was impossible what the menus and buttons were for), so I decided it was better to install it somewhere else.
Quote:
<p>—These em dashes are <em>like parentheses</em>!—</p> Since <em> and <span> have to be properly nested, you'd have to close and reopen the <em>. EDIT: Another thing DE seems to do is ignore the "linear=no" spine property... Last edited by Jellby; 01-17-2009 at 09:48 AM. |
|
01-17-2009, 10:01 AM | #57 | ||
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
Quote:
To be fair though, the OPF spec does say that reader systems may ignore the distinction between primary (linear="yes") and auxiliary (linear="no") content. |
||
01-17-2009, 10:48 AM | #58 | |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Well, enough of talking about DE's shortcomings, this thread was about the drop caps, and I think the issue is solved for the moment, I'll be updating my epub files during the weekend. |
|
01-17-2009, 01:00 PM | #59 | ||
Boo-Frickety-Hoo-Erizer
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
|
Attached is a re-render of your message 54 epub out of calibre, with a screen shot in ADE of chapter 1 of the re-render, and a sreenshot of your original in ADE.
The header on your original xhtml looks like this: Quote:
When the xhtml comes out of calibre, the header looks like this: Quote:
Could the lack of doctype in the re-render have anything to do with why it looks different? Or maybe the change to a content type? -bjc Charter Member, Deceased Equine Abuse Society. |
||
01-18-2009, 03:34 PM | #60 |
Boo-Frickety-Hoo-Erizer
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
|
I WILL FINALLY DECLARE IT TO BE GOOD.
Mr Goyal pointed out a calibre-built solution in the settings for epub - set the Create Epub/Page Setup/Base Font Size to 0pt, and the llasram/Jellby/Peter solution works coming out of Calibre, too. https://www.mobileread.com/forums/showthread.php?t=36688 -bjc |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
converting to epub with my css | fbrzvnrnd | Calibre | 3 | 04-15-2010 02:46 AM |
ePub to ePub - just replace CSS? | ChristopherTD | Calibre | 21 | 02-11-2010 02:50 AM |
newbiq Q about Drop Caps and Calibre | NASCARaddicted | Calibre | 2 | 01-14-2010 07:03 PM |
Using CSS in Word to make a Drop Cap work in an Epub | brewt | ePub | 3 | 01-31-2009 06:00 PM |
css drop caps coming out of calibre | brewt | Calibre | 3 | 01-18-2009 04:00 PM |