From: Fridrich S. <fri...@bl...> - 2006-06-06 07:11:43
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Robert, Robert Steinmetz wrote: > You mention WPG1 and WPG2. I'm not clear on the meaning of these > designations. Are they flavors or sequential versions? Although my limited English is not understanding the difference between flavours and sequential versions, I might have the information that you ask for in this one :-) WPG1 is the WordPerfect Graphics file format version one as used in documents produced by WordPerfect 5.x (or other Corel applications). WPG2 is the WordPerfect Graphics file format version two that is used in documents produced by WordPerfect 6.0 and subsequent versions. Although the two can have some common logic (the apple is never falling too far from the apple tree), they have such difference that a parser parsing one format cannot parse the other. The record structure is slightly different, but the most important, the way records are chained is quite novel in WPG2. I hope this answers this part of the question > I have understood that wpg files, in every version, come in two flavors, > raster and vector. If that is the case, is it the intent of this project > to develop a converter for both? Both WPG1 and WPG2 files *can* contain in the same time vector graphics, bitmap data and embedded graphics of other mime-types. In WPG1, there are two sorts of bitmap records. Although, it is possible that some documents will contain only one type of data, it is not the rule and a parser designed to read WPG cannot assume this. > I had understood that the initial effort was directed first at the > raster flavor. That clearly has implications for the type output of the > filter can create. Raster and vector files are very different and most > file formats are either one or the other. The work done before Ariya started his SoC project was mainly to convert the vector graphics information inside WPG1 files, since it was kind of easier. Libwpg CVS has a tool called wpg2svg that allows to visualize the result of this conversion in applications that support SVG. Although, SVG is primary designed to contain vector graphics, it can embed also bitmap graphics, as can be seen in this proof-of-concept document: http://hei.unige.ch/~strba5/mmeeks/fridrich-base64.svg :-) I see now that Ariya also answered your questions. But I will hit the "Send" button anyway ;-) Cheers Fridrich -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEhSqYu9a1imXPdA8RAr2rAKCGa/rs5YN23rG2xEYJxVS4xgQ2KgCdFd2w cqIfwXlxbsSYhLZ5FUUi8E8= =6OMm -----END PGP SIGNATURE----- |