<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Derivative Zero</title>
	<atom:link href="http://www.derivativezero.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.derivativezero.com/blog</link>
	<description>Programming and geekery</description>
	<lastBuildDate>Thu, 04 Oct 2012 20:22:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Importing OOXML Ink annotations into LibreOffice</title>
		<link>http://www.derivativezero.com/blog/2012/09/importing-ooxml-ink-annotations-into-libreoffice/</link>
		<comments>http://www.derivativezero.com/blog/2012/09/importing-ooxml-ink-annotations-into-libreoffice/#comments</comments>
		<pubDate>Wed, 26 Sep 2012 17:23:12 +0000</pubDate>
		<dc:creator>Eilidh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.derivativezero.com/blog/?p=80</guid>
		<description><![CDATA[So, I&#8217;ve been having fun traversing the LibreOffice .docx and .rtf import filters while trying to implement Ink annotations in LibreOffice Writer. As it turns out, I don&#8217;t strictly agree with the ISO press release that the Office Open XML &#8230; <a href="http://www.derivativezero.com/blog/2012/09/importing-ooxml-ink-annotations-into-libreoffice/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;ve been having fun traversing the LibreOffice .docx and .rtf import filters while trying to implement Ink annotations in LibreOffice Writer. As it turns out, I don&#8217;t <i>strictly</i> agree with the <a href="http://www.iso.org/iso/news.htm?refid=Ref1181">ISO press release</a> that the Office Open XML file format is &#8220;intended to be implemented by multiple applications on multiple platforms&#8221;. However, despite having spent way too much time wading through a ~24k line XML file defining the document model in the importer, I&#8217;ve been very grateful that the format is XML-based and therefore human readable.</p>
<p>I&#8217;ve included some useful resources at the end for any intrepid programmers who wish to help with tackling the importer beast.</p>
<h2>DOCX import</h2>
<div style="float:left; width: 50%; font-size: 0.8em; margin: auto; text-align:center; font-style: italic;"><a href="http://www.derivativezero.com/blog/wp-content/uploads/ink-msword.png"><img src="http://www.derivativezero.com/blog/wp-content/uploads/ink-msword.png" style="width: 90%; padding-right: 10px" title="Ink annotation" alt="Ink annotation"/></a><br />
Drawn Ink annotations</div>
<p>Ink allows you to annotate using a stylus on a tablet PC using Microsoft Word so that you can doodle over your documents as you see fit. Technical details ahead, so feel free to <a href="#wooink">skip to the results.</a></p>
<p>Ink strokes are saved in docx documents as bezier curves expressed through <a href="http://www.w3.org/TR/NOTE-VML#_Toc416858391">VML paths</a> (these are pretty similar to SVG paths, with commands and co-ordinates). I had quite a bit of fun hacking a parser together &#8211; <a href="http://cgit.freedesktop.org/libreoffice/core/diff/oox/source/vml/vmlformatting.cxx?id=6cf41d047a65c40d34745f497482f88d5ec93acb">here&#8217;s the patch</a>, with a few tweaks, it could be generally useful. It produces a list of all the sub-paths in a path, each subpath consisting of a list of co-ordinates and co-ordinate flags indicating normal or control points. </p>
<p>Word&#8217;s storage of Ink annotations does highlight some of the problems with implementing Word-compatible OOXML. They&#8217;re represented something like this:<br />
<code><br />
&lt;v:shape path="[VML path]" ...&gt;<br />
...<br />
&lt;o:ink i="[base64 binary data]" annotation="t"/&gt;<br />
&lt;/v:shape&gt;<br />
</code><br />
Now, [VML path] is really the important part as it contains the Ink shape geometry. But the [base64 binary data]? What&#8217;s stored in there is anybody&#8217;s guess &#8211; I&#8217;ve certainly not found any documentation on its contents. Anyone who has a tablet version of Word should feel free to take a crack at reverse engineering it ;)</p>
<p>It turns out that paths for Ink annotations consist of bezier curves. Beziers weren&#8217;t supported in the importer, so the path attribute, as well as any &lt;v:curve&gt; elements (which use control1, control2, to and from attributes), got ignored. So I <a href="http://cgit.freedesktop.org/libreoffice/core/commit/?id=0423a6741fc08a35b123556f9b10219d090ee42a">added the support</a> by getting the path and control1/control2 attributes and passing off the parsed result to LibreOffice using the UNO API.</p>
<h2>RTF import</h2>
<p>Word allows you to export a document with Ink to RTF. Most of the code for importing the RTF equivalent was already there, it just needed some adapting. I found something interesting that I haven&#8217;t seen documented elsewhere, furthering <a href="https://github.com/vmiklos/gsoc2010">Miklos Vajna&#8217;s work</a> (see README) on understanding the RTF spec. The geometry of the Ink shapes is described using the pVerticies [sic] and pSegmentInfo keywords. The pSegmentInfo section is a list of commands indicating what the points listed in pVerticies mean (move to, curve, end sub-path and so on).</p>
<table>
<tr>
<th>Segment indicator</th>
<th>Description</th>
<th>Vertices associated</th>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>0&#215;0001</td>
<td>Line to point</td>
<td>1 (x, y)</td>
</tr>
<tr>
<td>0&#215;2001</td>
<td>Bezier curve with two control points and end point</td>
<td>3 (cx1, cy1, cx2, cy2, x, y)</td>
</tr>
<tr>
<td>0&#215;4000</td>
<td>Move to point</td>
<td>1 (x, y)</td>
</tr>
<tr>
<td>0&#215;6001</td>
<td>Close path</td>
<td>0</td>
</tr>
<tr>
<td>0&#215;8000</td>
<td>End path</td>
<td>0</td>
</tr>
</table>
<p><b>The plot thickens&#8230;</b></p>
<p>So, when importing a Word-generated .rtf with Ink annotations, why was I seeing segment indicators like 0x200A? Apparently, the low order bytes of certain segment indicators indicate the number of point sets to apply to &#8211; for example, if there were four curves in a row with three points each in pVerticies, it can be specified by using the low order bytes of the segment indicator, resulting in 0&#215;2004 (encompassing 12 points in total). This may also apply to other relevant line segment types, but this is as of yet untested. You can easily extract the number of segments indicated using basic bitwise operators:<br />
<code><br />
unsigned int segment = 0x200A; // Example segment indicator<br />
unsigned int points = segment &#038; 0x00FF; // Assuming two lowest order bytes are used for point count<br />
segment &#038;= 0xFF00; // Discard point count; just leave segment indicator<br />
</code></p>
<p><a id="wooink"></a></p>
<h2>Woo ink in LibreOffice!!</h2>
<div style="float:right; width: 50%; font-size: 0.8em; margin: auto; text-align:center; font-style: italic;"><a href="http://www.derivativezero.com/blog/wp-content/uploads/inkimport.png"><img src="http://www.derivativezero.com/blog/wp-content/uploads/inkimport.png" style="width: 90%; padding-right: 10px" title="Ink imported into LibreOffice" alt="Ink annotation in LibreOffice"/></a><br />
Drawn Ink annotations in LibreOffice</div>
<p>LibreOffice now correctly displays not only Ink, but (in theory) any curves and shapes with paths when importing from .docx or .rtf. A minor bug with RTF image wrapping which caused the shape to be inline with the text instead of over it was also fixed (the property was just being ignored), so better imports all round!</p>
<p>Next step &#8211; correct export of bezier shapes to docx and rtf (no, I&#8217;m still not sure whether that blob of binary in the o:ink element is of any importance whatsoever, but this should be one way to find out).</p>
<h2>Resources</h2>
<p><a href="www.schemacentral.com/sc/ooxml/e-v_shape.html">v:shape schema information</a> &#8211; this website is great for making sense of the OOXML standard, particularly if used alongside this:<br />
<a href="http://standards.iso.org/ittf/PubliclyAvailableStandards/c061750_ISO_IEC_29500-1_2012.zip">ISO IEC 29500</a> &#8211; ISO standard document for OOXML (warning, big pdf in a zip).<br />
<a href="http://www.biblioscape.com/rtf15_spec.htm">RTF spec</a> &#8211; only somewhat useful<br />
<a href="http://www.openoffice.org/api/docs/common/ref/com/sun/star/module-ix.html">UNO API reference</a> &#8211; useful if used with the search function<br />
<a href="http://cgit.freedesktop.org/libreoffice/core/tree/writerfilter/">writerfilter</a> and <a href="http://cgit.freedesktop.org/libreoffice/core/tree/oox/">oox</a> &#8211; LibreOffice modules of interest for importing OOXML documents (cgit links for browsing the source/READMEs)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.derivativezero.com/blog/2012/09/importing-ooxml-ink-annotations-into-libreoffice/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tech update: LibreOffice cross compile MSI installer generation</title>
		<link>http://www.derivativezero.com/blog/2012/07/tech-update-libreoffice-cross-compile-msi-installer-generation/</link>
		<comments>http://www.derivativezero.com/blog/2012/07/tech-update-libreoffice-cross-compile-msi-installer-generation/#comments</comments>
		<pubDate>Thu, 05 Jul 2012 18:26:11 +0000</pubDate>
		<dc:creator>Eilidh</dc:creator>
				<category><![CDATA[LibreOffice]]></category>

		<guid isPermaLink="false">http://www.derivativezero.com/blog/?p=62</guid>
		<description><![CDATA[Table of Contents 1.1 Cross compiling LibreOffice 1.2 Building the installer 1.3 Cross MSI tool development I&#8217;m working on allowing a Windows Installer (.msi) for LibreOffice to be built when cross compiling under Linux. So far, it has been a &#8230; <a href="http://www.derivativezero.com/blog/2012/07/tech-update-libreoffice-cross-compile-msi-installer-generation/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1.1">1.1 Cross compiling LibreOffice </a></li>
<li><a href="#sec-1.2">1.2 Building the installer </a></li>
<li><a href="#sec-1.3">1.3 Cross MSI tool development </a></li>
</ul>
</li>
</div>
<p>I&#8217;m working on allowing a Windows Installer (.msi) for LibreOffice to be built when cross compiling under Linux. So far, it has been a broad spanning project and has covered:</p>
<ul>
<li>
Windows, MSI and Cabinet APIs (C, SQL, Wine, winegcc)
</li>
<li>
LibreOffice build system (Perl, autotools)</p>
</li>
</ul>
<p>Project status as of posting:</p>
<ul>
<li>
Developing on openSUSE 12.1 (x86_64) to target Windows (i686).
</li>
<li>
.msi files can be created and taken apart with the <a href="http://cgit.freedesktop.org/libreoffice/core/tree/setup_native/source/win32/wintools?h=feature/crossmsi">cross MSI tools (cgit)</a> msidb and msiinfo.
</li>
<li>
Cabinet files can be extracted but not created. However, parsing Diamond Directive file (.ddf) format is supported through makecab (this is required when the LO build system creates a cabinet).
</li>
<li>
Remaining: hook up MSI transforms and patches (msitran and msimsp); fit the tools into the build system; clean up and maintenance.</p>
</li>
</ul>
<p>The MSDN documentation for the win32 native tools has been linked to where appropriate.</p>
<h2 id="sec-1.1"><span class="section-number-4">1.1</span> Cross compiling LibreOffice </h2>
<p>Luckily, LibreOffice cross compile support is already very good. <a href="http://cgit.freedesktop.org/libreoffice/core/tree/README.cross">README.cross</a> in the LibreOffice root directory has far more information. Assuming you have checked out LibreOffice and have all the MinGW dependencies, cross compiling can be as simple as changing &lt;lo_root&gt;/autogen.lastrun to read:</p>
<p>CC=ccache i686-w64-mingw32-gcc<br />
CXX=ccache i686-w64-mingw32-g++<br />
CC_FOR_BUILD=ccache gcc<br />
CXX_FOR_BUILD=ccache g++<br />
&ndash;with-distro=LibreOfficeMinGW</p>
<p>This references <a href="http://cgit.freedesktop.org/libreoffice/core/tree/distro-configs/LibreOfficeMinGW.conf">&lt;lo_root&gt;/distro-configs/LibreOfficeMinGW.conf</a>. This folder<br />
contains various configurations for compiling under different circumstances. I<br />
also found it helpful to add this line to LibreOfficeMinGW.conf to make life<br />
simpler:</p>
<p>&#8211;without-java</p>
<h2 id="sec-1.2"><span class="section-number-4">1.2</span> Building the installer </h2>
<p>The installer build logic can be found in <a href="http://cgit.freedesktop.org/libreoffice/core/tree/solenv/bin/modules/installer/windows">&lt;lo_root&gt;/solenv/bin/modules/installer/windows</a>. It makes use of several Microsoft utilities to eventually output an MSI file. Some of these utilities are already distributed by <a href="http://www.winehq.org/devel/">Wine</a>.<br />
<i>Provided by Wine:</i><br />
<a href="http://support.microsoft.com/kb/80751">expand.exe</a> &#8211; Used to unpack cabinet files.<br />
<a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/wsh_runfromcommandprompt.mspx">cscript.exe</a> &#8211; Command line script host.<br />
<i>Also expected:</i><br />
<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa370083%28v=vs.85%29.aspx">msidb.exe</a> &#8211; Manipulates installer database tables and streams.<br />
<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa370310%28v=vs.85%29.aspx">msiinfo.exe</a> &#8211; Manipulates installer meta data (summary information).<br />
<a href="http://msdn.microsoft.com/en-us/library/bb267310.aspx#makecab_exe">makecab.exe</a> &#8211; Compresses files into cabinets.<br />
<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa370324%28v=vs.85%29.aspx">msimsp.exe</a> &#8211; Creates patch packages.<br />
<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa370495%28v=vs.85%29.aspx">msitran.exe</a> &#8211; Generates and applies database transforms.</p>
<p>Wine already exposes most of the required functionality via the API exposed by msi.dll (<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa368250.aspx">MSDN</a>, <a href="http://source.winehq.org/WineAPI/msi.html">Wine</a>) and cabinet.dll (<a href="http://msdn.microsoft.com/en-us/library/ff797923">MSDN</a>, <a href="http://source.winehq.org/WineAPI/cabinet.html">Wine</a>). My work has been focussed on writing command line utilities that support the interface expected by the LibreOffice build scripts.</p>
<ul>
<li><i>solenv/bin/make_installer.pl</i> is a very large Perl script that connects up the Perl modules which build the installer. The .pm files relevant to cross MSI building are listed below.</li>
<li><i>solenv/bin/modules/installer/control.pm</i> performs &#8220;nativeness&#8221; logic such as checking if the environment is Cygwin and whether the required utilities are in the system path.</li>
<li><i>solenv/bin/modules/installer/windows/admin.pm</i> (expand.exe*, msidb.exe, msiinfo.exe)</li>
<li><i>solenv/bin/modules/installer/windows/mergemodule.pm</i> (expand.exe*, msidb.exe)</li>
<li><i>solenv/bin/modules/installer/windows/msiglobal.pm</i> (msidb.exe, msiinfo.exe, cscript.exe*, msitran.exe**, makecab.exe**)</li>
<li><i>solenv/bin/modules/installer/windows/msp.pm</i> (msidb.exe, msimsp.exe**)</li>
<li><i>solenv/bin/modules/installer/windows/update.pm</i> (msidb.exe)</li>
<p>* Distributed by Wine<br />
** In progress
</li>
</ul>
<h2 id="sec-1.3"><span class="section-number-4">1.3</span> Cross MSI tool development </h2>
<p>The code for these tools can be found in the the <a href="http://cgit.freedesktop.org/libreoffice/core/log/?h=feature/crossmsi">feature/crossmsi</a> branch of libreoffice. It currently resides in <a href="http://cgit.freedesktop.org/libreoffice/core/tree/setup_native/source/win32/wintools?h=feature/crossmsi">setup_native/source/win32/wintools</a> in the tree. </p>
<p>To test the tools individually, grab the dev Makefile and make from the tool&#8217;s directory. You can then pass the -? or /? command for usage. I would suggest disabling Wine&#8217;s debug logs unless you specifically need them:</p>
<p>$ export WINEDEBUG=-all</p>
<ul>
<li id="sec-1.3.1">msidb (<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa370083%28v=vs.85%29.aspx">MSDN msidb</a>, <a href="http://cgit.freedesktop.org/libreoffice/core/tree/setup_native/source/win32/wintools/msidb?h=feature/crossmsi">LibreOffice msidb</a>, <a href="http://www.derivativezero.com/docs/Makefile-msidb">dev Makefile</a>) <br/><br />
Usage: msidb [options] [tables]</p>
<p>Options:<br />
-d &lt;path&gt;     Fully qualified path to MSI database file<br />
-f &lt;wdir&gt;    Path to the text archive folder<br />
-c            Create or overwrite with new database and import tables<br />
-i &lt;tables&gt;   Import tables from text archive files &#8211; use * for all<br />
-e &lt;tables&gt;   Export tables to files archive in directory &#8211; use * for all<br />
-x &lt;stream&gt;   Saves stream as &lt;stream&gt;.idb in &lt;wdir&gt;<br />
-a &lt;file&gt;    Adds stream from file to database<br />
-r &lt;storage&gt; Adds storage to database as substorage
</li>
<li id="sec-1.3.2">msiinfo (<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa370310%28v=vs.85%29.aspx">MSDN msiinfo</a>, <a href="http://cgit.freedesktop.org/libreoffice/core/tree/setup_native/source/win32/wintools/msiinfo?h=feature/crossmsi">LibreOffice msiinfo</a>, <a href="http://www.derivativezero.com/docs/Makefile-msiinfo">dev Makefile</a>) <br/><br />
Usage: msiinfo {database} [[-b]-d] {options} {data}</p>
<p>Options:<br />
-c &lt;cp&gt;       Specify codepage<br />
-t &lt;title&gt;    Specify title<br />
-j &lt;subject&gt;  Specify subject<br />
-a &lt;author&gt;   Specify author<br />
-k &lt;keywords&gt; Specify keywords<br />
-o &lt;comment&gt;  Specify comments<br />
-p &lt;template&gt; Specify template<br />
-l &lt;author&gt;   Specify last author<br />
-v &lt;revno&gt;    Specify revision number<br />
-s &lt;date&gt;     Specify last printed date<br />
-r &lt;date&gt;     Specify creation date<br />
-q &lt;date&gt;     Specify date of last save<br />
-g &lt;pages&gt;    Specify page count<br />
-w &lt;words&gt;    Specify word count<br />
-h &lt;chars&gt;    Specify character count<br />
-n &lt;appname&gt;  Specify application which created the database<br />
-u &lt;security&gt; Specify security (0: none, 2: read only 3: read only (enforced)</p>
</li>
<li id="sec-1.3.3">makecab (<a href="http://msdn.microsoft.com/en-us/library/bb267310.aspx#makecab_exe">MSDN makecab</a>, <a href="http://cgit.freedesktop.org/libreoffice/core/tree/setup_native/source/win32/wintools/makecab?h=feature/crossmsi">LibreOffice makecab</a>, <a href="http://www.derivativezero.com/docs/Makefile-makecab">dev Makefile</a>) <br/><br />
Usage: makecab [/V[n]] /F directive_file</p>
<p>Options:<br />
/F directives &#8211; A file with MakeCAB directives.<br />
/V[n] &#8211; Verbosity level (1..3)</p>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.derivativezero.com/blog/2012/07/tech-update-libreoffice-cross-compile-msi-installer-generation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get into open source with GSoC 2012</title>
		<link>http://www.derivativezero.com/blog/2012/03/get-into-open-source-with-gsoc-2012/</link>
		<comments>http://www.derivativezero.com/blog/2012/03/get-into-open-source-with-gsoc-2012/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 20:56:51 +0000</pubDate>
		<dc:creator>Eilidh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.derivativezero.com/blog/?p=52</guid>
		<description><![CDATA[Student applications for Google Summer of Code 2012 will be open very soon. After an extremely enjoyable and rewarding experience with the program last year, I feel it&#8217;s my duty to student programmers to get the word out. So, here&#8217;s &#8230; <a href="http://www.derivativezero.com/blog/2012/03/get-into-open-source-with-gsoc-2012/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Student applications for <a href="http://www.google-melange.com/gsoc/homepage/google/gsoc2012">Google Summer of Code 2012</a> will be open very soon. After an extremely enjoyable and rewarding experience with the program last year, I feel it&#8217;s my duty to student programmers to get the word out. So, here&#8217;s why you should apply.</p>
<p><strong>You get paid to work on open source software.</strong> I became a long time user, first time contributor early last year. Looking to give something back, I attempted a <a href="http://www.libreoffice.org/">LibreOffice</a> <a href="http://wiki.documentfoundation.org/Development/Easy_Hacks">Easy Hack</a>. In a case of fantastic timing, they announced their involvement in GSoC a week or so later and I got in touch. The end result was a whole new open source <a href="http://www.freedesktop.org/wiki/Software/libvisio">library</a>. I had an amazing experience working with LibreOffice but it&#8217;s ideal to choose a project that&#8217;s personally useful. GSoC doesn&#8217;t require that you&#8217;re an open source evangelist but if you are, it&#8217;s a strong argument for applying.</p>
<p><strong>It&#8217;s fantastic experience working on a large project.</strong> I feel I learned more during those three months than during my undergraduate degree course. I have to say that I never particularly enjoyed groupwork at university but it&#8217;s completely different if you&#8217;re working with smart, motivated individuals who&#8217;re there either because they want to be or because they&#8217;re paid to be (quite often both). As a nice bonus, it&#8217;s great work experience and has essentially led me to my <a href="https://plus.google.com/110555119356433692637/posts/RUBN9AvHk4b">dream job</a>. I&#8217;m not sure if that&#8217;s a typical result, but it certainly wouldn&#8217;t hurt to have it on your CV or resume.</p>
<p><strong>You meet some of the smartest, most awesome people (not all of them programmers).</strong> I think this is my favourite outcome. I&#8217;ve met people from all over the world with an assortment of beliefs, opinions and backgrounds. My experience was that some of the best hackers and coolest people (no, seriously!) hang around open source communities.</p>
<p>Applying isn&#8217;t difficult, just choose a participating open source organisation or two and do a little research into the suggested projects before getting in touch with them. Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.derivativezero.com/blog/2012/03/get-into-open-source-with-gsoc-2012/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>LibreOffice Conference 2011</title>
		<link>http://www.derivativezero.com/blog/2011/10/libreoffice-conference-2011/</link>
		<comments>http://www.derivativezero.com/blog/2011/10/libreoffice-conference-2011/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 13:49:08 +0000</pubDate>
		<dc:creator>Eilidh</dc:creator>
				<category><![CDATA[Google Summer of Code]]></category>
		<category><![CDATA[LibreOffice]]></category>
		<category><![CDATA[libvisio]]></category>

		<guid isPermaLink="false">http://www.derivativezero.com/blog/?p=31</guid>
		<description><![CDATA[I&#8217;ve been home a week from the LibreOffice Conference in Paris and from a personal point of view, it was a huge success. First of all, here are my slides from the short talk I gave about what we achieved &#8230; <a href="http://www.derivativezero.com/blog/2011/10/libreoffice-conference-2011/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been home a week from the <a href="http://conference.libreoffice.org/">LibreOffice Conference</a> in Paris and from a personal point of view, it was a huge success.</p>
<p>First of all, <a href="http://www.derivativezero.com/docs/loconf.odp">here are my slides</a> from the short talk I gave about what we achieved with <a href="http://www.freedesktop.org/wiki/Software/libvisio">libvisio</a> over the duration of Google Summer of Code. There is still work to be done but once end-user feedback starts coming in, we can sand down any rough edges.</p>
<p>The conference was a lot of fun, particularly the company. I had the pleasure of meeting the rest of the libvisio team, <a href="http://fridrich.blogspot.com/">Fridrich Strba</a> and Valek Filippov, who looked out for me the whole time I was there. I&#8217;m sure the Paris pickpockets are still cursing their names.</p>
<p>I also have to admit to being a little starstruck at meeting all the fantastic hackers whose work I have made so much use of. The LibreOffice team were a diverse, interesting and kind bunch who put up with my incessant (well-meaning) questions with good grace and gave me plenty to think about on coding, the universe and everything.</p>
<p>It was wonderful to be surrounded by programmers and Linux users without the geekier-than-thou attitude. Despite being younger (and greener) than most and female unlike many (with a few notable exceptions), I chatted away to my fellow hackers without once feeling patronised.</p>
<p>Finally, I&#8217;m staying out of the whole political situation – I started coding with LibreOffice for pragmatic reasons (I could get the code easily, <a href="http://wiki.documentfoundation.org/Development/Easy_Hacks">Easy Hacks</a> make getting to know the project simpler and LibreOffice was part of GSoC &#8217;11). However, I think the conference really confirmed for me that as important as the code base is, the community that surrounds a project this size is as vital. Without their helpful, inclusive approach, I&#8217;d have found contributing to an open source project of that magnitude an insurmountable task.</p>
<p>So here&#8217;s to another year!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.derivativezero.com/blog/2011/10/libreoffice-conference-2011/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Progress with gradient fills</title>
		<link>http://www.derivativezero.com/blog/2011/06/progress-with-gradient-fills/</link>
		<comments>http://www.derivativezero.com/blog/2011/06/progress-with-gradient-fills/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 19:27:09 +0000</pubDate>
		<dc:creator>Eilidh</dc:creator>
				<category><![CDATA[Google Summer of Code]]></category>
		<category><![CDATA[libvisio]]></category>
		<category><![CDATA[Visio]]></category>

		<guid isPermaLink="false">http://www.derivativezero.com/blog/?p=21</guid>
		<description><![CDATA[So, I have finally made progress that isn&#8217;t so ground-breaking that my mentor wants to write about it but is big enough that certain people will stop making fun of my empty blog. So, frob (his wonderfully useful work can &#8230; <a href="http://www.derivativezero.com/blog/2011/06/progress-with-gradient-fills/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So, I have finally made progress that isn&#8217;t so ground-breaking that my <a href="http://fridrich.blogspot.com/">mentor</a> wants to <a href="http://fridrich.blogspot.com/2011/06/libreoffice-visio-import-filter-first.html">write</a> <a href="http://fridrich.blogspot.com/2011/06/libreoffice-visio-import-filter-shaping.html">about</a> it but is big enough that certain people will stop making fun of my empty blog. So, <a href="http://www.catb.org/jargon/html/F/frob.html">frob</a> (his wonderfully useful work can be found <a href="http://gitorious.org/re-lab/tools/trees/master/oletoy">here</a>), I hope you&#8217;re happy.</p>
<p>I&#8217;ve been working on shapes, lines and their properties, most recently on fills. Here&#8217;s how it&#8217;s going so far (Visio document on top, my output below).<br />
<a href="http://www.derivativezero.com/blog/wp-content/uploads/fill_patts_res_v.png"><img src="http://www.derivativezero.com/blog/wp-content/uploads/fill_patts_small.png" /></a></p>
<p>Thanks to frob for the image, plus <a href="http://www.derivativezero.com/blog/wp-content/uploads/fill_patts.gif">animated gif</a>.</p>
<p>A few technical details for those who care: Visio draws shapes (including rectangles) as individual lines and before they can be filled, so we have to manually detect whether or not it&#8217;s a closed polygon. At the moment, we simply take the first point and compare it to the last point and make sure there are no gaps in between. It works for most simple cases but since when are things ever truly simple when reverse engineering?</p>
<p>You may also notice a difference between how gradients 31-34 are drawn in Visio vs my output. There&#8217;s no direct equivalent of this type of square gradient that I know of in the SVG or ODG specifications, so we&#8217;re approximating it. I have a whole new appreciation of slight imperfections when porting documents to different formats.</p>
<p>In the time it has taken to write this, I&#8217;ve already found that some of what I&#8217;ve written about will change. This is why I&#8217;m a programmer not a blogger ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.derivativezero.com/blog/2011/06/progress-with-gradient-fills/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
