[uf-new] Closing several hAudio issues

Julian Stahnke julian at julianstahnke.com
Mon Oct 8 17:27:47 PDT 2007


>
> A container for another hAudio item. Used in conjunction with
> album-title.
>
>       * The element is identified by the class name track.
>       * hAudio MAY have one or more tracks, but MUST have album-title
>         defined. If album-title is not defined, track cannot be  
> defined.
>       * The element MUST be processed opaquely. No sub-elements should
>         be read from any hAudio contained in a track element.
>       * The contents of the element MAY be plain-text or marked up  
> using
>         hAudio.
>
> In Particular
>
> "hAudio MAY have one or more tracks, but MUST have album-title  
> defined.
> If album-title is not defined, track cannot be defined"
>
> ?
>
> What Happens when I want to mark up a single track from an Album  that
> may be part of a collection, best of, or compilation?
>
> I would Like to mark my page up like this:
>
> <div class="haudio">
> 	<div class="track">
>             <span class="audio-title">Spanish Bombs</span>
>             <abbr class="duration" title="P191T">3:18</abbr>
> 	    taken from the <span class="album-title">London Calling</span>  
> album
>             By <span class="contributor">The Clash</span>
>          </div>
>  	<div class="track">
> 	   <span class="audio-title">Nagasaki Nightmare</span>
>            <abbr class="duration" title="P268T">4:46</abbr>
> 	   taken from the <span class="album-title">Best Before 1984</ 
> span> album
> 	   By <span class="contributor">Crass</span>
>        </div>
> </div>
>
> Seems to make sense but according to the Proposal this Is Invalid  
> hAudio
>
> Maybe like this then?
>
> <div class="haudio">
> 	<div class="track">
>             <span class="audio-title">Spanish Bombs</span>
>             <abbr class="duration" title="P191T">3:18</abbr>
> 	</div>
> 	    taken from the <span class="album-title">London Calling</span>  
> album
>             By <span class="contributor">The Clash</span>
> </div>
>
> <div class="haudio">
>  	<div class="track">
> 	   <span class="audio-title">Nagasaki Nightmare</span>
>            <abbr class="duration" title="P268T">4:46</abbr>
>          </div>
> 	   taken from the <span class="album-title">Best Before 1984</ 
> span> album
> 	   By <span class="contributor">Crass</span>
> </div>
>
> Seems like valid hAudio but Is not because the contents of a hAudio
> track must either be marked up as text or as hAudio
>
> <div class="haudio">
> 	<div class="track haudio">
>             <span class="audio-title">Spanish Bombs</span>
>             <abbr class="duration" title="P191T">3:18</abbr>
> 	</div>
> 	    taken from the <span class="album-title">London Calling</span>
> album
>             By <span class="contributor">The Clash</span>
> </div>
>
> <div class="haudio">
>  	<div class="track haudio">
> 	   <span class="audio-title">Nagasaki Nightmare</span>
>            <abbr class="duration" title="P268T">4:46</abbr>
>          </div>
> 	   taken from the <span class="album-title">Best Before 1984</span>
> album
> 	   By <span class="contributor">Crass</span>
> </div>
>
> This Is  Valid hAudio my concerns are Do we really need to reiterate
> haudio In the track class It seems confusing that hAudio Is both a
> parent and a child class. used in the above context haudio has the  
> same
> meaning as track?
>
> I think the proposition should simply say
>
>       * "hAudio MAY have zero or more tracks"
>       * "Track titles MAY be defined by using the class name
>         *audio-title* it is recommended that a hAudio track SHOULD  
> have
>         an audio-title" *
>
> This would enable Greater flexibility when publishing hAudio.

To my understanding, you would mark it up like this:

<span class="haudio">
     <span class="audio-title">Nagasaki Nightmare</span>
     <abbr class="duration" title="P268T">4:46</abbr>
     taken from the <span class="album-title">Best Before 1984</span>  
album
     By <span class="contributor">Crass</span>
</span>

Because as long as audio-title is present in the haudio element, it  
would be a track.

If only album-title was present, it would be an album.

If both audio-title and album-title were present, it would be a  
single track from an album.

Examples:

Single track, with known album (same as putting text in the ‘album’  
field of an ID3 tag):
<span class="haudio">
     <span class="audio-title">Nagasaki Nightmare</span>
     <span class="album-title">Best Before 1984</span>
     <span class="contributor">Crass</span>
</span>

Single track, album unknown:
<span class="haudio">
     <span class="audio-title">Nagasaki Nightmare</span>
     <span class="contributor">Crass</span>
</span>

Album:
<span class="haudio">
     <span class="album-title">Best Before 1984</span>
     <span class="contributor">Crass</span>
</span>

Album with a couple of tracks, simple example:
<span class="haudio">
     <span class="album-title">Best Before 1984</span>
     <span class="contributor">Crass</span>
     <span class="track">Nagasaki Nightmare</span>
     <span class="track">Nagasaki Nightmare</span>
     <span class="track">Nagasaki Nightmare</span>
</span>

Album with a couple of tracks, more detailed:
<span class="haudio">
     <span class="album-title">Best Before 1984</span>
     <span class="contributor">Crass</span>
     <span class="track haudio"><span class="audio-title">Nagasaki  
Nightmare</span> – <abbr class="duration" title="P268T">4:46</abbr></ 
span>
     <span class="track haudio"><span class="audio-title">Nagasaki  
Nightmare</span> – <abbr class="duration" title="P268T">4:46</abbr></ 
span>
     <span class="track haudio"><span class="audio-title">Nagasaki  
Nightmare</span> – <abbr class="duration" title="P268T">4:46</abbr></ 
span>
</span>



More information about the microformats-new mailing list