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

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 02-20-2011, 11:51 AM   #1
wholcomb
Junior Member
wholcomb began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2011
Device: kindle
Question Quote tag handling

I have been trying to figure out how to port HTML quotes to a format that calibre will display properly.

I've been using <q> tags to handle correctly formatting smart quotes. The CSS that I am using is:

Code:
q:before { content: '\201C' }
q:after { content: '\201D' }
q.continued:after { content: '' }
q.single:before, q q:before { content: '\2018' }
q.single:after, q q:after { content: '\2019' }
In browsers this handles nested quotes (“I said, ‘go!’”) and removing the trailing quote on multi-paragraph quotes.

As best I can tell, Calibre doesn't process the :before and :after pseudo-elements. Is there a workaround possible?
wholcomb is offline   Reply With Quote
Old 02-20-2011, 12:05 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: 25,284
Karma: 4961457
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre supports neither before, after nor content. So you can't use CSS to do this and IIRC the q tag is deprecated
kovidgoyal is offline   Reply With Quote
Old 02-20-2011, 12:33 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,669
Karma: 3818025
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"
@wholcomb,

Can't you just check the Smarten Punctuation feature in Convert - Look&Feel to make sure you get curly quotes?
jackie_w is offline   Reply With Quote
Reply

Tags
css, html, pseudo-elements, smart quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BasicNewsRecipe tag handling nickredding Calibre 3 12-22-2009 02:19 PM
Unutterably Silly Fave Quote from the Weekend nomesque Lounge 12 08-09-2009 08:22 PM
Quote Hunter brewt Workshop 3 01-05-2008 08:02 PM
cannot post or quote Aprilbeginnings Sony Reader 21 07-23-2007 06:15 PM


All times are GMT -4. The time now is 11:24 AM.


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