View Single Post
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