… | |
… | |
38 | |
38 | |
39 | THE LIBRARY |
39 | THE LIBRARY |
40 | =========== |
40 | =========== |
41 | |
41 | |
42 | libpsiconv is a library of routines that you can link against your own |
42 | libpsiconv is a library of routines that you can link against your own |
43 | application. It allows you to read Psion 5 files, and helps you output |
43 | application. It allows you to read Psion 5 files. Note that it comes |
44 | more commonly used files. Note that it comes under the GNU General |
44 | under the GNU General Public License; that means that you can only link |
45 | Public License; that means that you can only link it to programs which |
45 | it to programs which are also covered by that license. You can contact |
46 | are also covered by that license. You can contact me if you need other |
46 | me if you need other license terms. |
47 | license terms. |
|
|
48 | |
|
|
49 | Libpsiconv consists of two parts. The parser reads the Psion file into its |
|
|
50 | internal data structures. The generator reads these data structures and |
|
|
51 | generates an output file in some other format. Libpsiconv is written to make |
|
|
52 | it easy to add generators, without having to modify the parser side. |
|
|
53 | Actually, it is a lot easier to write a generator than to modify the parser! |
|
|
54 | |
47 | |
55 | The parser is quite good at the moment. Page layout codes are not yet |
48 | The parser is quite good at the moment. Page layout codes are not yet |
56 | read, but almost everything that is described in the documents in the |
49 | read, but almost everything that is described in the documents in the |
57 | format directory is supported by it. Of course, it can also not yet |
50 | format directory is supported by it. Of course, it can also not yet |
58 | cope with inserted objects (ie. documents in some other format) and |
51 | cope with inserted objects (ie. documents in some other format) and |
59 | other as of yet undocumented things. |
52 | other as of yet undocumented things. |
60 | |
|
|
61 | The current HTML target is not very ideal. HTML is just not made to |
|
|
62 | represent detailed layout considerations: it is a document description |
|
|
63 | language. Still, the output is quite readable already. Of course, headers |
|
|
64 | and footers are not displayed, because there is no notion of pages in |
|
|
65 | HTML. Tabs are also difficult; they are not supported yet. This can be |
|
|
66 | solved using tables, but it is quite hard to do it correctly. Some other |
|
|
67 | things are just approximated too. |
|
|
68 | |
|
|
69 | The HTML4 target uses style sheets. You need a not-too-old browser for |
|
|
70 | this to display correctly. Generally, the output of this generator is |
|
|
71 | of higher quality than the normal HTML generator's. |
|
|
72 | |
|
|
73 | A plain TEXT target just grabs all text, without any futher conversions. |
|
|
74 | |
|
|
75 | I would very much like to add other targets, like (La)TeX, RTF (Rich Text |
|
|
76 | Format) and XML (for AbiWord). If other people want to work on this, please |
|
|
77 | let me know! Of course, you could also write your own conversion applications |
|
|
78 | just using my data format description. Native import/export filters for |
|
|
79 | some word processors would be very welcome! |
|
|
80 | |
53 | |
81 | Documentation is scarce; please examine the source code or the example |
54 | Documentation is scarce; please examine the source code or the example |
82 | psiconv program. Some things may also be found in the doc subdirectory. |
55 | psiconv program. Some things may also be found in the doc subdirectory. |
83 | |
56 | |
84 | |
57 | |
… | |
… | |
89 | more commonly used formats. It is linked against libpsiconv, and can |
62 | more commonly used formats. It is linked against libpsiconv, and can |
90 | handle anything that it can. |
63 | handle anything that it can. |
91 | |
64 | |
92 | Please enter `psiconv --help' if you want to know about its syntax. |
65 | Please enter `psiconv --help' if you want to know about its syntax. |
93 | |
66 | |
|
|
67 | The current HTML3 target is not very ideal. HTML is just not made to |
|
|
68 | represent detailed layout considerations: it is a document description |
|
|
69 | language. Still, the output is quite readable already. Of course, headers |
|
|
70 | and footers are not displayed, because there is no notion of pages in |
|
|
71 | HTML. Tabs are also difficult; they are not supported yet. This can be |
|
|
72 | solved using tables, but it is quite hard to do it correctly. Some other |
|
|
73 | things are just approximated too. |
|
|
74 | |
|
|
75 | The HTML4 target uses style sheets. You need a not-too-old browser for |
|
|
76 | this to display correctly. Generally, the output of this generator is |
|
|
77 | of higher quality than the normal HTML generator's. |
|
|
78 | |
|
|
79 | A plain TEXT target just grabs all text, without any futher conversions. |
|
|
80 | |
|
|
81 | The RTF target is not finished yet; in fact, it is no usable at all |
|
|
82 | right now. |
|
|
83 | |
|
|
84 | All ImageMagick graphic output formats are supported; depending on how |
|
|
85 | you compiled ImageMagick, this is betwee 20 and 50 different formats. |
|
|
86 | Your favorite one should be somewhere... |
|
|
87 | |
|
|
88 | I would very much like to add other targets, like (La)TeX, RTF (Rich Text |
|
|
89 | Format) and XML (for AbiWord). If other people want to work on this, please |
|
|
90 | let me know! Of course, you could also write your own conversion applications |
|
|
91 | just using my data format description. Native import/export filters for |
|
|
92 | some word processors would be very welcome! |
|
|
93 | |
94 | Psiconv is licensed under the GPL. Please read the included file COPYING |
94 | Psiconv is licensed under the GPL. Please read the included file COPYING |
95 | for exact licensing information. Please contact me if you need some other |
95 | for exact licensing information. Please contact me if you need some other |
96 | licensing terms. |
96 | licensing terms. |
97 | |
97 | |
98 | |
98 | |
… | |
… | |
100 | ============================ |
100 | ============================ |
101 | |
101 | |
102 | Starting with version 0.2, psiconv should keep all namespaces unpoluted. |
102 | Starting with version 0.2, psiconv should keep all namespaces unpoluted. |
103 | Starting with version 0.4, the conversion routines are linked into a |
103 | Starting with version 0.4, the conversion routines are linked into a |
104 | (static or shared) library. Version 0.5 has autoconf and libtool support, |
104 | (static or shared) library. Version 0.5 has autoconf and libtool support, |
105 | and should run on many more platforms. |
105 | and should run on many more platforms. Version 0.6 has support for |
|
|
106 | graphics. |
106 | |
107 | |
107 | High on the TODO list are input routines for Sketch, MBM and Record files. |
108 | High on the TODO list are input routines for Record files. |
108 | Sheet files will be next. I am running into some trouble understanding |
109 | Sheet files will be next. I am running into some trouble understanding |
109 | Data and Agenda files, but with a little luck, I'll figure it out after |
110 | Data and Agenda files, but with a little luck, I'll figure it out after |
110 | all. This is more long-term though. |
111 | all. This is more long-term though. |
111 | On the output side, I hope RTF will soon be done. This will allow most |
112 | On the output side, I hope RTF will soon be done. This will allow most |
112 | office tools to read the Psion files. |
113 | office tools to read the Psion files. |