So, as far as I understand, I can take the pole.(cpp|h) code (possibly synchronize often with libmso) and need to build my own library for handling HWP document. Thumbnailing and metadata extraction only needs to read some part of entire document, I can tune for that kind of processing in external program too.<br>
<br>Hope I can revive HWP backend for Calligra :)<br><br>Regards,<br>Park Shinjo<br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/1/7 <span dir="ltr"><<a href="mailto:matus.uzak@gmail.com" target="_blank">matus.uzak@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi,<br></div><div><br></div><div>compared to the latest version found at [1], the version of POLE inside libmso includes a number of bug fixes and code to detect invalid and corrupt files in the Windows Compound Binary File Format. It's not maintained as a separate library, It's simply part of libmso. And you should know it's fine tuned to files produced by MS Office, so it might be required to disable a bunch of blocks of code.</div>
<div><br></div><div>In Calligra, libgsf has been superseded by libmso.</div><div><br></div><div>Check the powerpoint or msword-odf filter for proper usage. Look for the readStream function in the mswordodfimport.cpp file, which reads a stream from a specific storage into a buffer.</div>
<div><br></div><div>[1] <a href="http://pole.berlios.de/" target="_blank">http://pole.berlios.de/</a></div><div><br></div><div>br,</div><div><br></div><div>-matus</div><br><div class="gmail_quote"><div><div class="h5">On Sun, Jan 6, 2013 at 5:32 PM, Park Shinjo <span dir="ltr"><<a href="mailto:kde@peremen.name" target="_blank">kde@peremen.name</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hello, This is my first message to this list.<br><br>I am working on Hancom Word (mostly known as HWP) support on KDE environment. Haansoft has released specifications of its HWP file format in late 2010, making HWP support outside of Hancom Word possible.<br>
<br>The HWP document is based on Microsoft OLE compound document format, and currently Calligra Words uses POLE (as far as I know) for parsing this format. Since its internal structure is different from any other kind of files, and I want to reuse code as much as possible, I want to ask some questions for POLE.<br>
<br>1) How can I use POLE library outside of Calligra? I am currently working on thumbnailer and metadata indexer of HWP format, and it currently uses libgsf. For further integration with Calligra, I want to switch codebase to what Calligra currently uses. Rendering of document is not necessarily required here, since HWP file contains preview image and text. I'm also interested in implementing viewer function inside Okular too.<br>
<br>2) Is POLE library inside libmso considered as "upstream"? I have found implementation of POLE outside of Calligra, but it seems that code is not exactly same as Calligra's code.<br><br>I am not "yet" interested for restoring hancomword importer (and maintain it) in Calligra words, as there's no real code now. Choosing right codebase will help integration, so I'm asking how I can handle OLE compound document via POLE.<br>
<br>Regards,<br>Park Shinjo<br>
<br></div></div>_______________________________________________<br>
calligra-devel mailing list<br>
<a href="mailto:calligra-devel@kde.org" target="_blank">calligra-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
calligra-devel mailing list<br>
<a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
<br></blockquote></div><br></div>