Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-27-2009, 04:07 PM   #1
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,880
Karma: 4200035
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"/AuraH2O
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.
jackie_w is offline   Reply With Quote
Old 10-27-2009, 04:08 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,338
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
IIRC, That only works with LRF output.
kovidgoyal is offline   Reply With Quote
Old 10-27-2009, 04:59 PM   #3
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,880
Karma: 4200035
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"/AuraH2O
I couldn't get it to work with LRF either.
jackie_w is offline   Reply With Quote
Old 10-27-2009, 05:03 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,338
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You mean the demo files dont show a dropcaps?
kovidgoyal is offline   Reply With Quote
Old 10-27-2009, 05:07 PM   #5
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 32,874
Karma: 89897838
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
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 http://www.mobileread.com/forums/sho...d.php?p=633655


Quote:
Originally Posted by jackie_w View Post
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.
pdurrant is online now   Reply With Quote
Old 10-27-2009, 05:25 PM   #6
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,880
Karma: 4200035
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"/AuraH2O
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).

Quote:
Originally Posted by pdurrant View Post
ePub CSS doesn't support the :first-letter selector
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.
jackie_w is offline   Reply With Quote
Old 10-28-2009, 02:03 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,338
Karma: 5382313
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)
kovidgoyal is offline   Reply With Quote
Old 10-28-2009, 07:52 AM   #8
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,880
Karma: 4200035
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"/AuraH2O
OK - thanks for investigating. I'll use the other alternatives.
jackie_w is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Manual etc pennylane Calibre 5 10-10-2010 07:32 PM
Kogan User Manual Metal Mick More E-Book Readers 0 08-03-2010 05:32 AM
Tweak to User Manual edbro Calibre 1 07-24-2010 12:26 PM
User Manual for DT375 CharlieBird Alternative Devices 5 02-08-2010 11:27 PM
User Manual in ePub? rogue_ronin Calibre 2 12-21-2009 03:28 PM


All times are GMT -4. The time now is 09:35 AM.


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