A4

Merge lp://staging/~andrea.corbellini/a4/parser into lp://staging/a4

Proposed by Andrea Corbellini
Status: Merged
Merged at revision: 4
Proposed branch: lp://staging/~andrea.corbellini/a4/parser
Merge into: lp://staging/a4
Diff against target: 78 lines (+27/-10)
2 files modified
a4lib/app.py (+3/-3)
a4lib/presentation.py (+24/-7)
To merge this branch: bzr merge lp://staging/~andrea.corbellini/a4/parser
Reviewer Review Type Date Requested Status
Andrea Colangelo Approve
Review via email: mp+26311@code.staging.launchpad.net

Commit message

Parse the SVG file to look for presentation information.

Description of the change

This code looks for a <metadata> tag with the id "a4-presentation-information" into the SVG file. This tag will contain all the information about the presentation (e.g. the path and the sequence of animations).

Here's how you can test this change:

1. with your favorite editor, create an SVG document;
2. open it with a text editor and put into the root element (<svg>) the following code:

  <metadata id="a4-presentation-information">{"key": "value"}</metadata>

3. save and open the file with A4.

Now, if you introspect the a4lib.presentation.Presentation object you should see that its `information` attribute contains exactly this value:

  {u'key': u'value'}

See also my mail to the mailing list.

To post a comment you must log in.
Revision history for this message
Andrea Colangelo (warp10) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches