On 16/01/2008, Ivo Emanuel Gon?alves <justivo@gmail.com> wrote:> > * I agree that CMML is complex for something as simple as karaoke, butI disagree that karaoke is simple; to do karaoke properly is about as complex as text codecs get. I also disagree that CMML is complex, but I may be mistaken. In terms of complexity, I see it as about 10% of the way between using zero-markup and using HTML. cheers, Conrad.
ogg.k.ogg.k@googlemail.com
2008-Jan-16 02:59 UTC
[ogg-dev] Ogg/Kate preliminary documentation
> I also disagree that CMML is complex, but I may be mistaken. In terms > of complexity, I see it as about 10% of the way between using > zero-markup and using HTML.When I looked at it, it seemed to be that CMML could contain things like URLs, and other "non-text" markup. While complex may not be the right word for it (maybe "too much of a superset for most uses of text" would be more appropriate), a program using a stream to get, say, video subtitles, would have to expect those and deal with them (probably by discarding them as they parse them). This is what I meant by complex, that is, in the context of what I was trying to do, which is certainly a rather narrow goal compared to the expressivity that CMML can give due to its being XML based, making it more suited to meta description of accompanying streams, for which it seemed (from what I've seen) to have been designed. That said, I'm thinking more and more of allowing simple markup, lifted from HTML, with an API function to select whether or not that markup will be scrubbed before being passed to the client code, so the complexity issue (or the perception of it) becomes less acute. Thanks
On Jan 16, 2008 9:58 PM, ogg.k.ogg.k@googlemail.com < ogg.k.ogg.k@googlemail.com> wrote:> > I also disagree that CMML is complex, but I may be mistaken. In terms > > of complexity, I see it as about 10% of the way between using > > zero-markup and using HTML. > > When I looked at it, it seemed to be that CMML could contain things like > URLs, and other "non-text" markup. While complex may not be the right > word for it (maybe "too much of a superset for most uses of text" would be > more appropriate), a program using a stream to get, say, video subtitles, > would have to expect those and deal with them (probably by discarding > them as they parse them). > > This is what I meant by complex, that is, in the context of what I was > trying > to do, which is certainly a rather narrow goal compared to the > expressivity > that CMML can give due to its being XML based, making it more suited to > meta description of accompanying streams, for which it seemed (from what > I've seen) to have been designed.Hyperlinks are optional - as is just about all other markup. The simplest CMML markup you can create is in principle identical to your example on the wiki page: <cmml> <clip start="00:00:05" end="00:00:10:> <desc>This is a text</desc> </clip> </cmml> Cheers, Silvia. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/ogg-dev/attachments/20080211/5a657591/attachment.htm