<div dir="ltr">On Tue, Oct 7, 2008 at 10:59 PM, Nils Dagsson Moskopp <span dir="ltr"><<a href="mailto:nils-dagsson-moskopp@dieweltistgarnichtso.net">nils-dagsson-moskopp@dieweltistgarnichtso.net</a>></span> wrote:<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
<br>
I was wondering what markup one could use for tag clouds and similar<br>
ways to convey different importance of marked up content. Current<br>
popular markup involves nested <em> elements, which strikes me as kinda<br>
complicated and, in extreme cases hard to read.<br>
<br>
I was thinking along the lines of a @weight attribute whose value would<br>
range from 0 (least importance) to 1 (maximum importance) due to<br>
normalisation (scaling according to power law). This could also used in<br>
normal text to confer the amount of stress put into phrases - say, for a<br>
voice client.<br>
<br>
I'm aware that this is probably a stupid idea, but, as I said, nested<br>
<em>s (and custom class names even more so) strike me as particularly<br>
difficult.</blockquote><div><br>It wouldn't auto-style, but you could use a @data-tag-weight attribute. Javascript can then come around and set sizes explicitly.<br><br>The problem with the proposal as it is is that it ignores the very real difficulty in figuring out just *how* to scale the tag sizes based on the weight. Even with this weight attribute, you'd need a chunk of newly-crafted CSS to control that decently as well.<br>
<br>On the other hand, a simple javascript library could very easily handle the styling for you. It would be a fun weekend project to get something decent running.<br><br>~TJ<br></div></div></div>