Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-28-2009, 02:28 AM   #1
quillaja
Connoisseur
quillaja began at the beginning.
 
quillaja's Avatar
 
Posts: 79
Karma: 42
Join Date: Sep 2009
Device: sony reader touch (prs-600)
Lightbulb nicely formatted plays

perhaps everyone knows this, but using the definition list <dl></dl> works really well for plays. it's also better xhtml, since it defines the relationship between the speaker's name and his or her dialog in a way that using simple paragraphs does not. of course, you can further customize these tags with CSS.

definition list is used as such:
Code:
<dl>
<dt>term</dt><dd>definition</dd>
<dt>term</dt><dd>definition</dd>
</dl>
for example:
Code:
<p><em>JobberA and JobberB enter</em></p>
<dl>
<dt>JobberA</dt>
<dd>Wow, I really love e-books!</dd>
<dt>JobberB</dt>
<dd>Indeed! I do declare the are good. In fact, I will sing their praises!
  <p><em>JobberB sings.</em></p>
  <blockquote>
    e-books are really great<br/>
    ded-tree books i now do hate.
  </blockquote>
</dd>
</dl>
<p><em>Exit all.</em></p>
You'll notice that in JobberB's part, another <p> and <blockquote> are nested.

I also like to make the speaker names bold, because sony reader doesn't automatically format the <dt> to be bold, as most web browsers do.

anyway, just thought i'd throw this tidbit out there. i used it in some books i published on feedbooks.

Last edited by quillaja; 09-28-2009 at 02:33 AM.
quillaja is offline   Reply With Quote
Old 09-28-2009, 02:52 AM   #2
rogue_ronin
Banned
rogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-books
 
Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
Nifto-keen-a-rooni!

In my bag, now. Thanks!

m a r
rogue_ronin is offline   Reply With Quote
Advert
Old 09-28-2009, 09:09 AM   #3
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
This would also be useful for Table of Contents, with <dt> for the title (linked), and <dd> for a summary ...

Thanks for the tip!

G
GRiker is offline   Reply With Quote
Old 09-28-2009, 08:03 PM   #4
quillaja
Connoisseur
quillaja began at the beginning.
 
quillaja's Avatar
 
Posts: 79
Karma: 42
Join Date: Sep 2009
Device: sony reader touch (prs-600)
yea, that sounds like a good use too. =)
quillaja is offline   Reply With Quote
Reply

Tags
epub, formatting, ideas, plays, xhtml


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Other Fiction Galsworthy, John: Four Short Plays. V1. 9 Aug 2010 crutledge Kindle Books 0 08-09-2010 09:44 AM
Other Fiction Galsworthy, John: Four Short Plays. V1. 9 Aug 2010 crutledge BBeB/LRF Books 0 08-09-2010 09:42 AM
Plans for Plays? Dr. Scoops Amazon Kindle 2 12-27-2009 09:38 AM
Orchestra plays concert using e-music reader Bob Russell Legacy E-Book Devices 6 10-02-2009 02:23 AM
The Complete Plays of William Shakespeare Falstaff Sony Reader 25 03-01-2007 05:50 AM


All times are GMT -4. The time now is 05:05 AM.


MobileRead.com is a privately owned, operated and funded community.