[whatwg] HTML as a text format: Should be optional?</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=whatwg@lists.whatwg.org&q=from:%22%C3%98istein+E+.+Andersen%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Øistein E . Andersen</span></span></a></span> <span class="date"><a href="/search?l=whatwg@lists.whatwg.org&q=date:20090417" rel="nofollow">Fri, 17 Apr 2009 12:49:51 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <tt>HTML can be used as an advanced text format, and people may want to </tt><tt>convert existing plain text to HTML. For example's sake, consider the </tt><tt>following: </tt><pre style="margin: 0em;"> </pre><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"> A Short Document ~~~~~~~~~~~~~~~~ This is a short plain-text document which someone might want to convert into HTML.</pre><pre> As faithful readers of this list will recall, /Règles typographiques/ requires note names to be typeset in italics (/ut/, /ré/, /mi/, etc.), which is not possible in plain text. </pre></blockquote><pre style="margin: 0em;"> This corresponds to the following HTML: </pre><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"> <h1>A Short Document</h1> <p>This is a short plain-text document which someone might want to convert into HTML. <p>As faithful readers of this list will recall, <i>Règles typographiques</i> requires note names to be typeset in italics (<i>ut</i>, <i>ré</i>, <i>mi</i>, etc.), which is not possible in plain text. </pre></blockquote><pre style="margin: 0em;"> </pre><tt>Unfortunately, this is not valid; the following two lines must be </tt><tt>added to the top: </tt><pre style="margin: 0em;"> </pre><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"> <!DOCTYPE html> <title>A Short Document</title> </pre></blockquote><pre style="margin: 0em;"> </pre><tt>The DOCTYPE is unfortunate, but seems impossible to get rid of at this </tt><tt>point. </tt><pre style="margin: 0em;"> </pre><tt>A <title> is usually a good idea, but is it really necessary to </tt><tt>require this for conformance? After all, a <title> is not something </tt><tt>which an author is likely to forget, and leaving it out has no </tt><tt>unexpected consequences. </tt><pre style="margin: 0em;"> -- Øistein E. Andersen</pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg14435.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd8.html#14438">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail9.html#14438">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg14451.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email tSliceCur"><span class="subject">[whatwg] HTML as a text format: Should <title>...</span> <span class="sender italic">Øistein E . Andersen</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg14451.html">Re: [whatwg] HTML as a text format: Should <...</a></span> <span class="sender italic">Kristof Zelechovski</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg15241.html">Re: [whatwg] HTML as a text format: Should ...</a></span> <span class="sender italic">Ian Hickson</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg15246.html">Re: [whatwg] HTML as a text format: Sho...</a></span> <span class="sender italic">Michael Enright</span></li> </ul></li> </ul></li> <li class="icons-email"><span class="subject"><a href="msg14441.html">Re: [whatwg] HTML as a text format: Should <...</a></span> <span class="sender italic">Randy Drielinger</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg14442.html">Re: [whatwg] HTML as a text format: Should ...</a></span> <span class="sender italic">Michael Enright</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg14449.html">Re: [whatwg] HTML as a text format: Sho...</a></span> <span class="sender italic">Øistein E . Andersen</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg14450.html">Re: [whatwg] HTML as a text format:...</a></span> <span class="sender italic">Markus Ernst</span></li> </ul> </ul> </ul> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="[whatwg] HTML as a text format: Should <title> be optional?"> <input type="hidden" name="msgid" value="7DF67005-68F4-4DEF-9EB9-36017ABD4F28@coq.no"> <input type="hidden" name="relpath" value="whatwg@lists.whatwg.org/msg14438.html"> <input type="submit" value=" Øistein E . Andersen "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="whatwg@lists.whatwg.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search whatwg"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/whatwg@lists.whatwg.org/">whatwg - all messages</a></li> <li class="icons-about"><a href="/whatwg@lists.whatwg.org/info.html">whatwg - about the list</a></li> <li class="icons-expand"><a href="/search?l=whatwg@lists.whatwg.org&q=subject:%22%5C%5Bwhatwg%5C%5D+HTML+as+a+text+format%5C%3A+Should+%3Ctitle%3E+be+optional%5C%3F%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg14435.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg14451.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">7DF67005-68F4-4DEF-9EB9-36017ABD4F28@coq.no</li> </ul> </div> </body> </html>