|
|
#1 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Feb 2011
Device: kindle
|
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? |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,627
Karma: 28549046
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 | |
|
|
|
|
#3 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,270
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@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 03:19 PM |
| Unutterably Silly Fave Quote from the Weekend | nomesque | Lounge | 12 | 08-09-2009 09:22 PM |
| Quote Hunter | brewt | Workshop | 3 | 01-05-2008 09:02 PM |
| cannot post or quote | Aprilbeginnings | Sony Reader | 21 | 07-23-2007 07:15 PM |