← Back to team overview

nuvola-player-devel team mailing list archive

New format of description.html file of service integrations

 

Dear friends,

service selector has been rewritten to use Gtk.TextView instead of
WebKit.WebView. This transition has some advantages...

* Less memory usage.
* Supports system text zooming levels.
* Native look.

... as well as disadvantages:

* limited formatting options

The file description.html is parsed as XML code supporting following
subset of HTML tags[1]. Other tags are ignored.

* <h1>, <h2>, <h3> - headings
* <p> - a paragraph
* <br /> - line break
* <b> - bold text
* <strong> - alias for <b>
* <i> - italic text
* <em> - alias for <i>
* <a href="uri"> - a link
* <dl> - a definition list
* <dt> - the defined term (must be inside <dl>)
* <dd> - definition (must be inside <dl>)
* <img src="uri" width="" height="" /> - an image
* <ul> - unordered list (bullets)
* <li> - list item

[1] http://bazaar.launchpad.net/~fenryxo/nuvola-player/trunk/view/head:/src/diorite/diorite-simpledocbuffer.vala

I've checked how current service descriptions are rendered with the
new text widget and the result is good, so no urgent fixes are needed.
However, following unsupported code should be removed:

Thumbnails are no longer supported, remove <div id="thumbnails"></div>.
- amazon, hypem, grooveshark, googleplay, eighttracks,deezer

Styles are not supported remove style attribute from <p
style="text-align: center">
- hypem, grooveshark, googleplay, eighttracks, deezer, amazon

Best regards,

Jiří Janoušek