02-20-2011, 11:51 AM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Feb 2011
Device: kindle
|
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' } As best I can tell, Calibre doesn't process the :before and :after pseudo-elements. Is there a workaround possible? |
02-20-2011, 12:05 PM | #2 |
creator of calibre
Posts: 43,850
Karma: 22666666
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
|
Advert | |
|
02-20-2011, 12:33 PM | #3 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@wholcomb,
Can't you just check the Smarten Punctuation feature in Convert - Look&Feel to make sure you get curly quotes? |
Tags |
css, html, pseudo-elements, smart quote |
|
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 |