The WWP transcribes quotation marks using entity references, encoded as part of the rend= attribute on the element that motivates them, using the pre() and post() keywords on the rend= attribute. (See renditional encoding for more detail.)
When double quotation marks delimit the beginning and end of a quotation they are encoded as “left double quote” and “right double quote” using the standard ISO entity references “ and ”. When single quotation marks delimit the beginning and end of a quotation they are encoded as “left single quote” and “right single quote” using the standard ISO entity references ‘ and ’.
The repeated quotation marks which sometimes appear along the margins within a quotation are encoded using the bestow() keyword of the rendition ladder on the <q> or <quote> element. In addition, the rendition of multiparagraph quotations can be managed using bestow(), although the encoding is somewhat involved (see example 2).
The four entity references mentioned above are the only ones the WWP uses to encode quotation marks:
We do not use " or ' to capture quotation marks.
Example 1. A simple
<quote rend="pre(“)post(”)">How delightful,</quote> she thought to herself.
Example 2. A multi-paragraph quotation in which the first
paragraph has no closing quotation mark, using bestow() to give each
<p> element an initial quotation mark, and using post() to give
the entire quotation a closing quotation mark:
<quote rend="post(”)bestow((pre(“))(p))"><p>How I left that place, I cannot remember...only that the path was long and dark and full of terrors.</p>
<p>But in the end, as I struggled towards the light, I found my spirits uplifted and my limbs strengthened by the purer air.</p>
Example 3. A quotation in which marginal quotation marks are
encoded using bestow():
<quote rend="pre(“)post(”)bestow( (pre(“)) (lb))">Long multiline quotation here...</quote>