Ben C wrote:
>> Is there an HTML markup that prevents formatting, like <NOFORMAT>, or
>> <LITERAL> or the like? I tried googling, but find only pointers to
>> buttons to press within web building tools - which I don't use.
>
> PRE (stands for "preformatted" which is a euphemism for "not
> formatted").
I would not call it a euphemism. Informally, <pre>...</pre> means: the text
data inside the tags has been formatted in a particular way, as regards to
the use of spaces, newlines, and other whitespace - don't change this the
way you usually (and for good reasons) do with text! Se it's preformatted
and must not be reformatted.
On the other hand, is such formatting essential to poetry? Poetry is
thousands of years older than written language, not to mention spaces and
significant newlines. While a poem can usually be divided into units we
might call "lines", in an abstract structural sense, and this concept can
usually be mapped to the concept of a line of text, I would rather use some
markup for the lines, say
<div class="poem">
<div>...</div>
<div>...</div>
....
<div>...</div>
</div>
The advantages might become obvious if you think how a poem should be
rendered in a small-size device, like a fairly primitive cell phone with a
small line length. Using <pre> you lose data or get a horizontal scroll bar.
Using the approach I suggest, you could use CSS to suggest indentation of
continuation lines in order to make the structure (division into abstract
"lines") understandable.
> Still need to escape < and > (use < and >
.
No, only "<" and "&" need to be escaped, and in some contexts only. It's a
good idea, though, to escape all of "<", ">", and "&" independently of
context (when they are not used for markup), just for simplicity. And of
these, "&" is probably the one that might appear in poetry...
--
Yucca,
http://www.cs.tut.fi/~jkorpela/