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?