<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Markup Musings #1: How should you mark up dialog?</title>
	<atom:link href="http://www.sitepoint.com/blogs/2007/05/10/markup-musings-1-how-should-you-mark-up-dialog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2007/05/10/markup-musings-1-how-should-you-mark-up-dialog/</link>
	<description></description>
	<pubDate>Mon, 08 Sep 2008 14:38:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: spiritquest</title>
		<link>http://www.sitepoint.com/blogs/2007/05/10/markup-musings-1-how-should-you-mark-up-dialog/#comment-248294</link>
		<dc:creator>spiritquest</dc:creator>
		<pubDate>Tue, 15 May 2007 10:52:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1915#comment-248294</guid>
		<description>&lt;blockquote&gt;This is surely a situation where tables (for once) provide cleaner and easier to read markup.&lt;/blockquote&gt;

Unfortunately a table has no semantic meaning to it, and dialog in itself is not tabular data.

I think as has been mentioned earlier  seems to be the way forward. But then seeing the HTML 4.01 spec, I think this makes more sense. As a majority of the document is quoted, The key here is that the character is speaking and the their quote is tied directly to them. 

I struggled with this a while back in a blog posting I had to convert for someone, there was plenty of dialog, and I must admit I scratched my head a few times. 

It looks like this may be an option:

&lt;pre&gt;&lt;code class="html"&gt;
&#60;div id="act4"&#62;
&#60;dl class="dialog"&#62;
    &#60;dt class="speaker"&#62;Rick&#60;/dt&#62;
    &#60;dd class="rick"&#62;&#60;q&#62;Louie, I think this is the beginning of a beautiful friendship&#60;/q&#62;&#60;/dd&#62;
&#60;/dl&#62;
&#60;p class="directions"&#62;The two walk off together into the night.&#60;/p&#62; 
&#60;p class="directions"&#62;FADE OUT.&#60;/p&#62; 
&#60;p class="directions"&#62;THE END&#60;/p&#62;
&#60;/div&#62;
&lt;/code&gt;&lt;/pre&gt;

I presume if there was a stream of dialog it would stay within on &lt;dl&gt; block, until a direction would break that stream of dialog.

I think if the HTML 4.01 specs saw usage for this within the specifications, the next best step would be to add semantic class meanings and possibly come up with a sensible stylesheet. Nuances such as id's for acts and the ability to highlight speakers would be possible if all the actual quoted dialog had a class name similar to the cited character.

I think there are subtleties here that could make it semantically useful and through css offer flexibility on how the script is interpreted when rendered.&lt;/dl&gt;</description>
		<content:encoded><![CDATA[<blockquote><p>This is surely a situation where tables (for once) provide cleaner and easier to read markup.</p></blockquote>
<p>Unfortunately a table has no semantic meaning to it, and dialog in itself is not tabular data.</p>
<p>I think as has been mentioned earlier  seems to be the way forward. But then seeing the HTML 4.01 spec, I think this makes more sense. As a majority of the document is quoted, The key here is that the character is speaking and the their quote is tied directly to them. </p>
<p>I struggled with this a while back in a blog posting I had to convert for someone, there was plenty of dialog, and I must admit I scratched my head a few times. </p>
<p>It looks like this may be an option:</p>
<pre><code class="html">
&lt;div id="act4"&gt;
&lt;dl class="dialog"&gt;
    &lt;dt class="speaker"&gt;Rick&lt;/dt&gt;
    &lt;dd class="rick"&gt;&lt;q&gt;Louie, I think this is the beginning of a beautiful friendship&lt;/q&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;p class="directions"&gt;The two walk off together into the night.&lt;/p&gt; 
&lt;p class="directions"&gt;FADE OUT.&lt;/p&gt; 
&lt;p class="directions"&gt;THE END&lt;/p&gt;
&lt;/div&gt;
</code></pre>
<p>I presume if there was a stream of dialog it would stay within on
<dl> block, until a direction would break that stream of dialog.</dl></p>
<p>I think if the HTML 4.01 specs saw usage for this within the specifications, the next best step would be to add semantic class meanings and possibly come up with a sensible stylesheet. Nuances such as id&#8217;s for acts and the ability to highlight speakers would be possible if all the actual quoted dialog had a class name similar to the cited character.</p>
<p>I think there are subtleties here that could make it semantically useful and through css offer flexibility on how the script is interpreted when rendered.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: edeverett</title>
		<link>http://www.sitepoint.com/blogs/2007/05/10/markup-musings-1-how-should-you-mark-up-dialog/#comment-245879</link>
		<dc:creator>edeverett</dc:creator>
		<pubDate>Sat, 12 May 2007 15:23:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1915#comment-245879</guid>
		<description>Just to expand on my last post a little:

In Alex's original suggestion there are several peices of repeated markup that seem to me to be fixes problems that would be naturally solved by using table markup. Having the speakers name repeated twice in the markup seems like a hack, and would make for harder to maintain/write code - this would not be needed using a table. Also having to declare the purpose of each peice of information every time something is said seems similarly like code bloat - use a table and you only have to declare what each type of information is once (in the column header). 

This is surely a situation where tables (for once) provide cleaner and easier to read markup.</description>
		<content:encoded><![CDATA[<p>Just to expand on my last post a little:</p>
<p>In Alex&#8217;s original suggestion there are several peices of repeated markup that seem to me to be fixes problems that would be naturally solved by using table markup. Having the speakers name repeated twice in the markup seems like a hack, and would make for harder to maintain/write code - this would not be needed using a table. Also having to declare the purpose of each peice of information every time something is said seems similarly like code bloat - use a table and you only have to declare what each type of information is once (in the column header). </p>
<p>This is surely a situation where tables (for once) provide cleaner and easier to read markup.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: edeverett</title>
		<link>http://www.sitepoint.com/blogs/2007/05/10/markup-musings-1-how-should-you-mark-up-dialog/#comment-245852</link>
		<dc:creator>edeverett</dc:creator>
		<pubDate>Sat, 12 May 2007 14:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1915#comment-245852</guid>
		<description>Why isn't the dialog best represented in simple table? That would seem to represent the relationships present in the information:

&#60;table&#62;
   &#60;tr&#62;
      &#60;th&#62;Speaker&#60;/th&#62;&#60;th&#62;Dialog&#60;/th&#62;
   &#60;/tr&#62;
   &#60;tr&#62;
      &#60;td&#62;Name&#60;/td&#62;&#60;td&#62; Lorem ipsum&#60;/td&#62;
   &#60;/tr&#62;

...

&#60;/table&#62;</description>
		<content:encoded><![CDATA[<p>Why isn&#8217;t the dialog best represented in simple table? That would seem to represent the relationships present in the information:</p>
<p>&lt;table&gt;<br />
   &lt;tr&gt;<br />
      &lt;th&gt;Speaker&lt;/th&gt;&lt;th&gt;Dialog&lt;/th&gt;<br />
   &lt;/tr&gt;<br />
   &lt;tr&gt;<br />
      &lt;td&gt;Name&lt;/td&gt;&lt;td&gt; Lorem ipsum&lt;/td&gt;<br />
   &lt;/tr&gt;</p>
<p>&#8230;</p>
<p>&lt;/table&gt;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: mlcd</title>
		<link>http://www.sitepoint.com/blogs/2007/05/10/markup-musings-1-how-should-you-mark-up-dialog/#comment-244673</link>
		<dc:creator>mlcd</dc:creator>
		<pubDate>Fri, 11 May 2007 08:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1915#comment-244673</guid>
		<description>http://decentius.aksis.uib.no/mlcd/</description>
		<content:encoded><![CDATA[<p><a href="http://decentius.aksis.uib.no/mlcd/" rel="nofollow">http://decentius.aksis.uib.no/mlcd/</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: brothercake</title>
		<link>http://www.sitepoint.com/blogs/2007/05/10/markup-musings-1-how-should-you-mark-up-dialog/#comment-244621</link>
		<dc:creator>brothercake</dc:creator>
		<pubDate>Fri, 11 May 2007 06:22:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1915#comment-244621</guid>
		<description>The cite attribute of a blockquote must be a URI that points to the source of the quotation. However the &#60;cite&#62; element is far more flexible, as it can contain any reference to an external source, person etc.</description>
		<content:encoded><![CDATA[<p>The cite attribute of a blockquote must be a URI that points to the source of the quotation. However the &lt;cite&gt; element is far more flexible, as it can contain any reference to an external source, person etc.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: AlexW</title>
		<link>http://www.sitepoint.com/blogs/2007/05/10/markup-musings-1-how-should-you-mark-up-dialog/#comment-244530</link>
		<dc:creator>AlexW</dc:creator>
		<pubDate>Fri, 11 May 2007 01:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1915#comment-244530</guid>
		<description>&lt;blockquote&gt;The data I was trying to mark up the other day was an Organisational chart.

...

Any ideas? &lt;/blockquote&gt;

That's a curly one, but I'll have a think about that. I'd like to do a series of these so I'll post it if I can.</description>
		<content:encoded><![CDATA[<blockquote><p>The data I was trying to mark up the other day was an Organisational chart.</p>
<p>&#8230;</p>
<p>Any ideas? </p></blockquote>
<p>That&#8217;s a curly one, but I&#8217;ll have a think about that. I&#8217;d like to do a series of these so I&#8217;ll post it if I can.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: AlexW</title>
		<link>http://www.sitepoint.com/blogs/2007/05/10/markup-musings-1-how-should-you-mark-up-dialog/#comment-244518</link>
		<dc:creator>AlexW</dc:creator>
		<pubDate>Fri, 11 May 2007 01:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1915#comment-244518</guid>
		<description>tthomas48, that method certainly keeps things pretty clean, but semantically speaking shouldn't an 'act 1' div wrap everything within that act. And then the text 'Act 1' would be a heading.

Something Like:

&lt;pre&gt;&lt;code class="html"&gt;
&#60; div class="act" &#62;&#60; h1 &#62;Act 1&#60; /h1 &#62;
   &#60; div class="scene" &#62;&#60; h2 &#62;Outside&#60; /h2 &#62;
      &#60; div class="character" &#62;Cynthia
         &#60; p &#62;Hi, thanks for coming out today. My name's Cynthia.&#60;/p&#62;
     &#60;/div&#62;
   &#60;/div&#62;
&#60;/div &#62;
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>tthomas48, that method certainly keeps things pretty clean, but semantically speaking shouldn&#8217;t an &#8216;act 1&#8242; div wrap everything within that act. And then the text &#8216;Act 1&#8242; would be a heading.</p>
<p>Something Like:</p>
<pre><code class="html">
&lt; div class="act" &gt;&lt; h1 &gt;Act 1&lt; /h1 &gt;
   &lt; div class="scene" &gt;&lt; h2 &gt;Outside&lt; /h2 &gt;
      &lt; div class="character" &gt;Cynthia
         &lt; p &gt;Hi, thanks for coming out today. My name's Cynthia.&lt;/p&gt;
     &lt;/div&gt;
   &lt;/div&gt;
&lt;/div &gt;
</code></pre>]]></content:encoded>
	</item>
	<item>
		<title>By: tthomas48</title>
		<link>http://www.sitepoint.com/blogs/2007/05/10/markup-musings-1-how-should-you-mark-up-dialog/#comment-244396</link>
		<dc:creator>tthomas48</dc:creator>
		<pubDate>Thu, 10 May 2007 19:49:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1915#comment-244396</guid>
		<description>I’d be interested in the answer to this. I use wikipedia to write plays, and have some custom plugins. The wiki markup looks like this:

&lt;pre&gt;
&lt;code class='html'&gt; 
&#60;act&#62;Act 1&#60;/act&#62;
&#60;scene&#62;Outside&#60;/scene&#62;
&#60;c&#62;Cynthia&#60;/c&#62;
Hi, thanks for coming out today. My name's Cynthia.&#60;/code&#62;
&lt;/code&gt;
&lt;/pre&gt;
Then I’ve got some mediawiki plugins that translate it to:

&lt;pre&gt;
&lt;code class='html'&gt; 
&#60;div class=&#34;act&#34;&#62;Act 1&#60;/div&#62;
&#60;div class=&#34;scene&#34;&#62;Outside&#60;/div&#62;
&#60;div class=&#34;character&#34;&#62;Cynthia&#60;/div&#62;
&#60;p&#62;Hi, thanks for coming out today. My name's Cynthia.&#60;/p&#62;
&lt;/code&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I’d be interested in the answer to this. I use wikipedia to write plays, and have some custom plugins. The wiki markup looks like this:</p>
<pre>
<code class='html'> 
&lt;act&gt;Act 1&lt;/act&gt;
&lt;scene&gt;Outside&lt;/scene&gt;
&lt;c&gt;Cynthia&lt;/c&gt;
Hi, thanks for coming out today. My name's Cynthia.&lt;/code&gt;
</code>
</pre>
<p>Then I’ve got some mediawiki plugins that translate it to:</p>
<pre>
<code class='html'> 
&lt;div class=&quot;act&quot;&gt;Act 1&lt;/div&gt;
&lt;div class=&quot;scene&quot;&gt;Outside&lt;/div&gt;
&lt;div class=&quot;character&quot;&gt;Cynthia&lt;/div&gt;
&lt;p&gt;Hi, thanks for coming out today. My name's Cynthia.&lt;/p&gt;
</code>
</pre>]]></content:encoded>
	</item>
	<item>
		<title>By: Rick O</title>
		<link>http://www.sitepoint.com/blogs/2007/05/10/markup-musings-1-how-should-you-mark-up-dialog/#comment-244388</link>
		<dc:creator>Rick O</dc:creator>
		<pubDate>Thu, 10 May 2007 19:37:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1915#comment-244388</guid>
		<description>I like the direction you're going, but this part seems a little hackish to me:

&#60;blockquote class="rick"&#62;&#60;cite class="speaker"&#62;Rick&#60;/cite&#62;

That is, if the text of the &#60;cite&#62; is always equivalent to the class of the &#60;blockquote&#62;, then you're duplicating data.  I understand &lt;em&gt;why&lt;/em&gt; you're doing it, I'm just playing Devil's Semantic Advocate.

To do any sort of interesting formatting without the class would require either a CSS parent combinator (which doesn't exist) or switching to a sibling-based structure, such as a &#60;dl&#62; (which is suboptimal).</description>
		<content:encoded><![CDATA[<p>I like the direction you&#8217;re going, but this part seems a little hackish to me:</p>
<p>&lt;blockquote class=&#8221;rick&#8221;&gt;&lt;cite class=&#8221;speaker&#8221;&gt;Rick&lt;/cite&gt;</p>
<p>That is, if the text of the &lt;cite&gt; is always equivalent to the class of the &lt;blockquote&gt;, then you&#8217;re duplicating data.  I understand <em>why</em> you&#8217;re doing it, I&#8217;m just playing Devil&#8217;s Semantic Advocate.</p>
<p>To do any sort of interesting formatting without the class would require either a CSS parent combinator (which doesn&#8217;t exist) or switching to a sibling-based structure, such as a &lt;dl&gt; (which is suboptimal).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: AutisticCuckoo</title>
		<link>http://www.sitepoint.com/blogs/2007/05/10/markup-musings-1-how-should-you-mark-up-dialog/#comment-244345</link>
		<dc:creator>AutisticCuckoo</dc:creator>
		<pubDate>Thu, 10 May 2007 16:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1915#comment-244345</guid>
		<description>&lt;blockquote&gt;When was that relaxation recommendation made, Tommy? I hadn’t read anything along those lines.&lt;/blockquote&gt;

It's in the spec: http://www.w3.org/TR/html401/struct/lists.html#edef-DL
I can't say for sure when that paragraph was added, but it was long ago.

Your concerns about Google's DEFINE function is probably well-founded, though. That's the risk you take when you change the semantics of existing element types (something I recently wrote about on my blog, BTW).</description>
		<content:encoded><![CDATA[<blockquote><p>When was that relaxation recommendation made, Tommy? I hadn’t read anything along those lines.</p></blockquote>
<p>It&#8217;s in the spec: <a href="http://www.w3.org/TR/html401/struct/lists.html#edef-DL" rel="nofollow">http://www.w3.org/TR/html401/struct/lists.html#edef-DL</a><br />
I can&#8217;t say for sure when that paragraph was added, but it was long ago.</p>
<p>Your concerns about Google&#8217;s DEFINE function is probably well-founded, though. That&#8217;s the risk you take when you change the semantics of existing element types (something I recently wrote about on my blog, BTW).</p>]]></content:encoded>
	</item>
</channel>
</rss>
