References and styling updates
Posted by mholmes on 01 Oct 2009 in Activity log
Spent a while figuring out the exact steps necessary to make quotations (<cit> / <q> in XML, rendered as <q> in XHTML) appear with guillemets instead of English-style quotes in the browser. For future reference, these are the steps I took:
- Checked that the
<html>tag hasxml:lang="fr"in it (it already had). We're not specifying any particular subset of French (such as -CA) because our documents span several centuries and at least two countries. - Added this to the stylesheet:
:lang(fr){ quotes: "«" "»" "‹" "›" "‘" "’" }Note: this will also work:q[lang |= fr] { quotes: "«" "»" "‹" "›" "‘" "’" } - Added this to the XHTML
<q>tag:lang="fr". Usingxml:langdoesn't work. Note that you can't addlang="fr"to the root<html>element or to the<body>because it's invalid. - This now seems to be working (in Firefox and Opera, at least; Arora (webkit) doesn't show the guillemets, so I'll need to check on Safari).