Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 12:36 PM   #16
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,805
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Other than both books being terrible examples of coding, Shadows of Ecstasy has the coding for a drop cap while War in Heaven does not. Oddly the version of War in Heaven in the epub secion of MobileRead's library does have dropcaps and used header tags for the chapter headers.

In Shadows of Ecstasy, the calibre1 and calibre2 classes set font size to 1.125em and 1.5em respectively while in War in Heaven, the only style applied to the first paragraph sets the top and bottom margin to 1em.

I would also suggest changing the use of pt (an absolute unit) in War in Heaven to a relative unit (em for example).

Last edited by DNSB; Yesterday at 12:53 PM.
DNSB is offline   Reply With Quote
Old Yesterday, 01:13 PM   #17
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,641
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
I don't see any drop cap in Shadows of Ecstasy; I only see raised caps; it's not the same thing. By the way, the xhtml code employed is not the best.
You have raised caps in Shadows because the first letter has the style "calibre1":

Code:
.calibre1 {
    font-size: 1.5em;
    line-height: 1.2
}
while in "War in Heaven" you have nothing. So, in "War in Heaven", in your stylesheet.css, write at the end the following:

Code:
.calibre6 {
    font-size: 1.5em;
    line-height: 1.2
}
and in your .xhtml files, enclose the first letter of the first paragraph of the chapter with <span class="calibre6">YOUR LETTER</span>.

For example, in Chapter One you should have the following:

Code:
<p class="calibre2"><span class="calibre6">T</span>he telephone bell was ringing wildly, but without result, since there was no one in the room but the corpse.</p>
RbnJrg is offline   Reply With Quote
Advert
Old Yesterday, 06:02 PM   #18
RMOP
Connoisseur
RMOP began at the beginning.
 
Posts: 93
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
Quote:
Originally Posted by DNSB View Post
Other than both books being terrible examples of coding, Shadows of Ecstasy has the coding for a drop cap while War in Heaven does not. Oddly the version of War in Heaven in the epub secion of MobileRead's library does have dropcaps and used header tags for the chapter headers.

In Shadows of Ecstasy, the calibre1 and calibre2 classes set font size to 1.125em and 1.5em respectively while in War in Heaven, the only style applied to the first paragraph sets the top and bottom margin to 1em.

I would also suggest changing the use of pt (an absolute unit) in War in Heaven to a relative unit (em for example).
Thanks. I can't take the blame for the coding of War in Heaven! It is pretty much as I found it. I focused on removing scanning artifacts and adding footnotes and annotations. Similarly, the "Raised Caps" were already in the ePub version of Shadows of Ecstasy. Again, my efforts were to clean up the text and add notes. The input here will get me what I need. Many thanks.
RMOP is online now   Reply With Quote
Old Today, 06:18 AM   #19
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 13,696
Karma: 103837201
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by Turtle91 View Post
That’s a matter of taste don’t you think?
It's testable.

it's ALSO a question of taste.
Quoth is offline   Reply With Quote
Reply

Tags
format questions


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop caps? jackm8 Amazon Kindle 5 02-07-2024 12:33 PM
Best Way for Drop Caps Wlan ePub 62 07-03-2018 07:11 PM
Drop caps RandyK Conversion 2 05-18-2014 09:13 PM
Is there a way to strip drop caps? ficbot Calibre 2 08-30-2013 11:06 AM
Drop caps huebi ePub 8 03-04-2012 06:25 AM


All times are GMT -4. The time now is 10:38 AM.


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