Coming soon!
-Letters require particular attention to styling and semantic tagging. While you are not required to exactly match the formatting of a letter in the source scans, you should make some attempt to create a version in visual sympathy with the source.
+<blockquote>
element.z3998:letter
, that is: <blockquote epub:type="z3998:letter"> ... </blockquote>
.<header>
element.se:letter.dateline
. The date can be tagged with a <time>
tag with a computer-readable date, for example: <time datetime="1863-10-11">11th of October, 1863</time>
.z3998:salutation
. If the salutation is on a separate line to the body of the letter and a header block already exists, place the salutation within the header.<span>
element, in this example: <span epub:type="z3998:salutation">Dear Mother</span>, I was so happy to hear from you.
z3998:recipient
. Sometimes this may occur at the end of a letter, particularly for more formal communications, in which case it should be placed within a footer block (see below).<footer>
element.z3998:valediction
.z3998:sender
. If the name appears to be a signature to the letter, it should be given a class of “signature". This will eventually be deprecated and is retained for legacy reasons.z3998:postscript
.Here is a simple example, a child's letter drawn from The Enchanted Castle by E. Nesbit:
+<blockquote epub:type="z3998:letter">
+ <p epub:type="z3998:salutation">Dearest Auntie,</p>
+ <p>Please may we have some things for a picnic? Gerald will bring them. I would come myself, but I am a little tired. I think I have been growing rather fast.</p>
+ <footer>
+ <p epub:type="z3998:valediction">Your loving niece,</p>
+ <p class="signature" epub:type="z3998:sender">Mabel</p>
+ <p epub:type="z3998:postscript">P.S.—Lots, please, because some of us are very hungry.</p>
+ </footer>
+</blockquote>
+ And here is a slightly more complex example, loosely based on a letter from Pride and Prejudice by Jane Austen:
+<blockquote epub:type="z3998:letter">
+ <header>
+ <p epub:type="se:letter.dateline">Gracechurch-street, <time datetime="08-02">August 2</time>.</p>
+ </header>
+ <p><span epub:type="z3998:salutation">My dear Brother</span>, At last I am able to send you some tidings of my niece, and such as, upon the whole, I hope will give you satisfaction. Soon after you left me on Saturday, I was fortunate enough to find out in what part of London they were. The particulars, I reserve till we meet. It is enough to know they are discovered, I have seen them both—</p>
+ <p>I shall write again as soon as anything more is determined on.</p>
+ <footer">
+ <p epub:type="z3998:valediction">Yours, etc.</p>
+ <p epub:type="z3998:sender">Edward Gardner</p>
+ </footer>
+</blockquote>
+ [epub|type~="z3998:letter"] header{
+ text-align: right;
+}
+
+footer{
+ margin-top: 1em;
+ text-align: right;
+}
+
+[epub|type~="z3998:salutation"] + p,
+[epub|type~="z3998:letter"] header + p{
+ text-indent: 0;
+}
+
+[epub|type~="z3998:sender"],
+[epub|type~="z3998:recipient"],
+[epub|type~="z3998:salutation"]{
+ font-variant: small-caps;
+}
+
+[epub|type~="z3998:postscript"]{
+ margin-top: 1em;
+ text-indent: 0;
+ text-align: left;
+}
+ Unfortunately there’s no great way to semantically format poetry in HTML. We have to conscript unrelated elements for use in poetry.