Found an indention example in TEI...

Google is such a wonderful thing... :) I did some further digging and found an example (of the exact poem I was using for an example, no less) from the Electronic Text Center at the UofVirginia. They use a simple rend element within the <l> tag to mark an indent. Anyone have a problem with that? It keeps the indention information, but does it within the XML tag element. The only possible issue I see if that it doesn't allow for variable length indents. Josh **** Lewis Carroll's The Hunting of the Snark <div1 type="fit" n="1"> <head> Fit the First: THE LANDING </head> <pb n="45" /> <lg type="stanza"> <l>"Just the place for a Snark!" the Bellman cried,</l> <l rend="indent">As he landed his crew with care;</l> <l>Supporting each man on the top of the tide</l> <l rend="indent">By a finger entwined in his hair.</l> </lg> <pb n="46" /> <lg type="stanza"> <l>"Just the place for a Snark! I have said it twice:</l> <l rend="indent">That alone should encourage the crew.</l> <l>Just the place for a Snark! I have said it thrice:</l> <l rend="indent">What I tell you three times is true."</l> </lg> [ETC....] </div1>

Some recent texts coming from dp have had css used for indicating indentation in verse. They use class selectors such as i2, i4, i6 to indicate various levels of indentation. Could something similar be adopted in this case? Andrew On Tue, 26 Oct 2004, Joshua Hutchinson wrote:
Google is such a wonderful thing... :)
I did some further digging and found an example (of the exact poem I was using for an example, no less) from the Electronic Text Center at the UofVirginia. They use a simple rend element within the <l> tag to mark an indent.
Anyone have a problem with that? It keeps the indention information, but does it within the XML tag element.
The only possible issue I see if that it doesn't allow for variable length indents.
Josh
****
Lewis Carroll's The Hunting of the Snark
<div1 type="fit" n="1"> <head> Fit the First: THE LANDING </head> <pb n="45" />
<lg type="stanza"> <l>"Just the place for a Snark!" the Bellman cried,</l> <l rend="indent">As he landed his crew with care;</l> <l>Supporting each man on the top of the tide</l> <l rend="indent">By a finger entwined in his hair.</l> </lg>
<pb n="46" />
<lg type="stanza"> <l>"Just the place for a Snark! I have said it twice:</l> <l rend="indent">That alone should encourage the crew.</l> <l>Just the place for a Snark! I have said it thrice:</l> <l rend="indent">What I tell you three times is true."</l> </lg>
[ETC....]
</div1> _______________________________________________ gutvol-d mailing list gutvol-d@lists.pglaf.org http://lists.pglaf.org/listinfo.cgi/gutvol-d

Joshua Hutchinson wrote:
<l>"Just the place for a Snark!" the Bellman cried,</l> <l rend="indent">As he landed his crew with care;</l>
Indenting is difficult to handle because it is such a hybrid structural / presentational stuff. There are at least 3 types of indent: 1) indent of a block(quote) 2) indent of the first line of a paragraf 3) indent of a verse line Lets just consider 3) Ways of purely presentational tagging: <l> simple, robust, standard-conforming and already implemented. <l rend="indent"> found in the TEI spec but limited because just one level. <l rend="indentX"> for X = 1, 2, 3 ugly, makes me want to puke. Negative indents ? <l rend="indent indent"> better. Compatible with TEI spec. Falls back to one indent if more than one is not supported by XSLT. <l rend="indent(-1)"> still better. <l indent="1"> most elegant but not so standard. Needs new attribute. Structural tagging: <lg type="limerick"> <l>There was a young lady of Riga,</l> <l>Who smiled as she rode on a tiger;</l> <lg rend="indent"> <l>They returned from the ride</l> <l>With the lady inside,</l> </lg> <l>And the smile on the face of the tiger.</l> </lg> This is all just off of the top of my head. Once we have figured out what we want, I can start implementing. -- Marcello Perathoner webmaster@gutenberg.org
participants (3)
-
Andrew Sly
-
Joshua Hutchinson
-
Marcello Perathoner