Syd Bauman | 6 May 2008 02:09
Favicon

Re: Question about lb practice

Hi Dan! Very rushed reply ...

> Anybody have a suggested practice?

There are *lots* of possible practices. My usual is to presume that
<p> is one of those elements for which a line break is presumed
(unless overridden on the rend= attribute).

At the WWP we use "break(yes)" in the value of rend= to indicate that
there is a line-break before the content of an element, and
"break(no)" to indicate there isn't. So our encoding would look
something like 

   <tagsDecl>
     <rendition xml:id="dod">break(yes) first-indent(1em)</rendition>
     <namespace ...>
       <tagUsage gi="p" render="#dod"/>
     </namespace>
   </tagsDecl>
   <!-- ... -->
   <p>Lorem ipsum dolor sit amet ...

See http://www.wwp.brown.edu/encoding/guide/html/rendition_break.html

However, you may find it a lot easier to generate those line numbers
on output if you stuck an <lb> in at every point there was a
line-break, whether or not you thought the surrounding element should
be considered as always being indicated with a line-break in the
source. I.e.
   <p><lb/>Lorem ipsum dolor ...

Whatever you do, document in your <encodingDesc>, of course :-)


Gmane