wiki:BOOK_HTML_EXPORT_R0

Version 3 (modified by peko, 16 years ago) (diff)

--

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=BOOK_HTML_EXPORT_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

Overview

User should be able to export Sophie 2 Book as html file.

Task requirements

  • Provide prototype that exports book to html file.
  • Add 'Export as' sub menu in file menu that contains 'as pdf' and 'as HTML' buttons.'as HTML' button evoke dialog window who allows the users to select the name of the html file.
  • The entire book should be exported as single html file in this revision.
  • Multiple html export as well as export single page should be consider in the next revision.
  • Links and timlines will not be preserved for now.
  • Images should be exported.
  • See if we could export firs frame of the movie as image in this revision.
  • Audio will not be exported in this revision.
  • Rotated frames will be exported without rotation.
  • Research how to allow to export for video, audio, rotated frames etc.
  • If needed frames background (as gradient color) should be exported as image background.
  • Research and implement if possible in this revision export of alpha property.
  • Test in different browsers. (Firefox, IE6, IE7, Safari etc.). Give list of known problems in specific browser.

Task result

  • The result should be code.

Implementation idea

  • Export every page as div tag with needed attributes (width, height etc.).
  • Export every frame as div tag (child of the page div)
  • Use absolute positioning for div tags.

How to demo

  • Run the application
  • Create new book
  • Insert few frames as well as few pages
  • Export the book as html
  • Open the html file in some web browser.

Design

  • Exporting sophie books to html, will use the org.sophie2.base.persistence library. For more information about it see GROUP_PERSISTENCE_R0.
    • We will have several classes that persist the book to a storager.

Implementation

(Describe and link the implementation results here (from the wiki or the repository).)

Testing

(Place the testing results here.)

Comments

(Write comments for this or later revisions here.)