Re: [whatwg] HTML tags for POEM and MUSIC LYRICS

2017-12-11 Thread Michael A. Peters

On 12/11/2017 04:30 AM, Jirka Kosek wrote:

On 11.12.2017 11:39, Christoph Päper wrote:

As with  and , HTML could also add  or something similar to 
embed MusicXML. Lyrics are a subset of musical notation and poems are, arguably, a special kind 
of lyrics (or the other way around).


This would require change to HTML parsing rules which ideally shoudn't
ever happen again.

Easier approach is to use XHTML syntax and simply embedded fragment of
specific XML vocabulary. It's pity that extensibility has been largely
thrown away when HTML5 was designed.


I always serve my pages as application/xhtml+xml except when an honest 
bot asks for the page (Twitter, some accessibility testers, Google Page 
Speed, all have trouble with real XML - often either screwing up with 
the self-closing script tags or parsing it correctly as XML but adding 
junk after the closing tag somewhere in their processing)


I've not tried as I don't think browsers would know what to do, but one 
should be able to add other XML namespaces to html5 served as proper 
XML, no?


That's how we had to to MathML circa 2000 before HTML5 (and then if I 
recall only Mozilla knew what to do with the MathML) - the same thing 
should work if browsers knew what to do with MusicXML or whatever.




Re: [whatwg] HTML tags for POEM and MUSIC LYRICS

2017-12-11 Thread Jirka Kosek
On 11.12.2017 11:39, Christoph Päper wrote:
> As with  and , HTML could also add  or something similar to 
> embed MusicXML. Lyrics are a subset of musical notation and poems are, 
> arguably, a special kind of lyrics (or the other way around).

This would require change to HTML parsing rules which ideally shoudn't
ever happen again.

Easier approach is to use XHTML syntax and simply embedded fragment of
specific XML vocabulary. It's pity that extensibility has been largely
thrown away when HTML5 was designed.

BTW, MusicXML is really not appropriate for poems. There is existing
markup for poems in TEI: http://teibyexample.org/modules/TBED04v00.htm

Jirka

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
 Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
--
Bringing you XML Prague conferencehttp://xmlprague.cz
--


Re: [whatwg] HTML tags for POEM and MUSIC LYRICS

2017-12-11 Thread Christoph Päper
> "Tab Atkins Jr." :
> On Sun, Nov 26, 2017 at 8:59 AM, GevCbmlGM  wrote:
> >
> > Is there any recommend standard HTML tags for POEM and MUSIC LYRICS?
> 
> Poems and lyrics are, generally, just text that has significant
> line-breaks. Thus,  and are the correct markup for them.

As with  and , HTML could also add  or something similar to 
embed MusicXML. Lyrics are a subset of musical notation and poems are, 
arguably, a special kind of lyrics (or the other way around).