You're right, there is no reason why this kind of decoration cannot be
applied to arbitrary stretches of text. With one exception: a large
initial at the start of a paragraph causes text to flow around it, so
this style is impossible for an element that doesn't start on a new
line.
On the other hand, I don't see any alternative for creating `a billion
different styles', since I want to be able to render an element in all
these styles without adding any tags to the SGML source.
At the same time, I don't want to add too many extra properties or
complicate the style language too much.
As a concrete example of the problem, say I want to render this
paragraph, which has no tags besides <P>:
<P>This is a paragraph. This is the second line, This is another
line. This is the last line. No it isn't.</P>
Then how do we get the following designs:
### his is a paragraph. This
# is the second line, This
# is another line. This is
the last line. No it isn't.
THIS IS A PARAGRAPH. THIS
is the second line, This
is another line. This is
the last line. No it isn't.
### HIS IS A paragraph. this
# is the second line, This
# is another line. This is
the last line. No it isn't.
### h i s i s a p a r a g r a p h .
# This is the second line, This is
# another line. This is the last
line. No it isn't.
Here are some possibilities, none of them really appeals to me:
*P: large.initial = yes, oversize.font.size = +5
*P: text.transform = capitalize-first-line
*P: text.drop-cap = true, text.transform = caps-3
Maybe we should leave some room in the language for additions in
a later version.
Bert
-- Bert Bos Alfa-informatica <[email protected]> Rijksuniversiteit Groningen <http://www.let.rug.nl/~bert/> Postbus 716, NL-9700 AS GRONINGEN