10-27-2009, 03:07 PM | #1 |
Grand Sorcerer
Posts: 6,171
Karma: 16228536
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Dropcaps example in User Manual FAQ
I was browsing the Calibre User Manual today and came across the section named
"How do I use some of the advanced features of the conversion tools?" in the FAQ with attached demo files. When I tried the HTML DropCaps examples I couldn't get the simpler one to work, i.e. the one which uses the following CSS:- .drop { text-indent: 0pt} .drop:first-letter { font-size:xx-large} with a paragraph coded:- <p class="drop">This is a plain text based dropcaps ... </p> This suggestion works great in my browser and when viewing the imported .zip in the ebook-viewer, but not in a converted EPUB or LRF on my Sony PRS-505. It doesn't appear to show up in the Viewers either. Is this something which only works with some readers or other output types? I think I could use something like p.noindent {text-indent: 0pt} span.drop {font-size:xx-large} <p class="noindent"><span class="drop">T</span>his is a big capital.</p> to achieve the same thing, but the original suggestion results in neater HTML if it can be made to work. |
10-27-2009, 03:08 PM | #2 |
creator of calibre
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
IIRC, That only works with LRF output.
|
Advert | |
|
10-27-2009, 03:59 PM | #3 |
Grand Sorcerer
Posts: 6,171
Karma: 16228536
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
I couldn't get it to work with LRF either.
|
10-27-2009, 04:03 PM | #4 |
creator of calibre
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You mean the demo files dont show a dropcaps?
|
10-27-2009, 04:07 PM | #5 | |
The Grand Mouse 高貴的老鼠
Posts: 71,410
Karma: 305065800
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
ePub CSS doesn't support the :first-letter selector, so unless Calibre does some very fancy conversion, it won't work in ePub output.
For a method that should work in ePub (don't know about other formats) see https://www.mobileread.com/forums/sho...d.php?p=633655 Quote:
|
|
Advert | |
|
10-27-2009, 04:25 PM | #6 |
Grand Sorcerer
Posts: 6,171
Karma: 16228536
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Kovid - Yes I mean I can't get your FAQ HTML demo file Drop Cap to work in a converted LRF. The fancy "illuminated image" (method 1) works but not the plain text (method 2).
Based on pdurrant's reply I guess method 2 can't be made to work with an EPUB, but I had assumed that it must once have worked with LRF when you originally posted the demo. |
10-28-2009, 01:03 AM | #7 |
creator of calibre
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah the upgrade to 0.6 breaks the text based dropcap (it used a hack that unfortunately can't be ported to 0.6)
|
10-28-2009, 06:52 AM | #8 |
Grand Sorcerer
Posts: 6,171
Karma: 16228536
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
OK - thanks for investigating. I'll use the other alternatives.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
User Manual etc | pennylane | Calibre | 5 | 10-10-2010 06:32 PM |
Kogan User Manual | Metal Mick | More E-Book Readers | 0 | 08-03-2010 04:32 AM |
Tweak to User Manual | edbro | Calibre | 1 | 07-24-2010 11:26 AM |
User Manual for DT375 | CharlieBird | Alternative Devices | 5 | 02-08-2010 10:27 PM |
User Manual in ePub? | rogue_ronin | Calibre | 2 | 12-21-2009 02:28 PM |