[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main


  Pencils Down for KOffice Summer of Code Students!
KDE Office Suite Posted by Boudewijn Rempt on Monday 27/Aug/2007, @14:13
from the catch-em-young dept.
With an avalanche of last-minute commits, the KOffice Google Summer of Code students finished yet another great Summer of Code. We had some very exciting projects this year, and most of them were as great a success as last year. Read on for details of the achievements.

This year we had:

  • Emanuele Tamponi, Painterly Features for Krita (Mentor: Bart Coppens)
  • Fredy Yanardi, Text-tool plugins for KOffice apps (Mentor: Tomas Mecir)
  • Marijn Kruisselbrink, Music Notation support for KOffice (Mentor: Boudewijn Rempt)
  • Pierre Ducroquet, Improve OpenDocument Compatibility in KWord (Mentor: Sebastian Sauer)
  • Sven Langkamp, Selection Visualisation (Mentor: Casper Boemann)

We had one disappointment this year, our student due to work on collaborative editing disappeared, only to surface around mid-term with a code drop — before disappearing again. So no collaborative editing in KWord this year. You cannot win them all.

But the other five students have delivered outstanding work, often going far beyond what their mentors thought possible initially. Let's take a look at what they have done up to now!

Emanuele Tamponi

In last week's Commit Digest we already saw part of what Emanuele has done this summer: mixing colours in a way that looks and feels completely natural, by simulating the way light is reflected of pigment. This is a two-way process: to go from a colour defined in RGB to a colour defined by the properties of pigment and light and back to RGB again. The first step is usually done by using a spectrometer and actualling measuring the colours. Emanuele has created code to simulate that without special equipment, and in a way that is repeatable and makes it possible to experiment.

But that was only part of his work: another part of the project was to make it possible to paint with more than one colour at the time and to be able to make the brush pick up existing colours from the canvas: complex loading and bidirectional paint transfer. The colour mixing really grabbed Emanuele, leading him to create more and more sophisticated code, leaving little time for the complex loading and bidi paint transfer part of his project. However, he managed to check in a preliminary version just in time... and right now he is staying in his sea-side cottage coding, coding and coding. More commits are to follow!

Fredy Yanardi

The new Flake architecture for KOffice 2.0 not only enables us to create applications that integrate all kinds of possible content in specialised documents, there is also infrastructure to make it easy to add interesting functionality to shapes through plugins. Fredy's mission was to implement a number of these plugins, both to demonstrate the flexibility of our architecture and to add useful functionality to KWord. Remember, with KWord 2.0 rewrite we lost a lot of existing functionality because it has actually been a complete rewrite.

By now we have:

  • Bookmarks
  • Change Case
  • Autocorrection
  • Thesaurus with wordnet integration
  • Document statistics

And because he was done before the end of the Summer of Code he added a new popup widget to select colours from palettes and edit new palettes.

Marijn Kruisselbrink

They said it could not be done. But Marijn did it: fully editable music right inside any KOffice document. Essentially a plugin of the same level of complexity as KOffice's justly famous formula editor. The plugin supports multiple voices, measures, adding and removing of notes of every description, loading and saving in ODF documents, import and export to and from the standard MusicXML format. Marijn started his work already before the Summer of Code, when he was able to show notes in KWord when he visited me in April. Interesting bits are the automatic line wrapping, which is more complex in music than in text.

This plugin more than anything else shows off the power KOffice has gained through the Flake architecture. Marijn is very enthusiastic and will continue working on the music flake: connected notes, lyrics, multi-page music and fallback support for OpenOffice and other ODF-compatible applications are all on his to do.

Oh, and as you can see... it is actually possible to seamlessly develop KOffice on OS X, too.

Pierre Ducroquet

Confession time! Right after the KWord rewrite started, KWord did not support ODF at all anymore. Pierre's work therefore included essentially recreating ODF support, together with his mentor, Sebastian Sauer. He was present at the ODF meeting in Berlin, in the KDAB offices, and has gone from strength to strength. Not too mention that he had to hack stuff into KWord that was not even supported by Qt Scribe like the line-through styles. Heck, even OpenOffice doesn't support this part of the standard! Among the other hurdles he had to jump was a test suite that depended on OpenOffice.org default behaviour that contradicted the ODF standard. Great work, and Pierre, too, has said he will keep working on ODF support in KOffice.

Sven Langkamp

Krita never had the famous marching ants selection visualisation invented by Bill Atkinson for MacPaint. We have always shown our selections as masks, following my philosophy that there is not that much difference anyway. Besides, I did not know how to do marching ants. Only marching ants is perhaps a little meager for a whole summer of code project, so Sven took on the whole selection-is-a-bitmap thing.

Last year, Emanuele created a bezier curve framework for Krita that led to magnetic selections and bezier curve selections: however, those curves were mercilessly converted to pixels. Given the hard work Jan Hambrechts and Thorsten Zachmann have put into the flake vector path shape, it seemed silly not to try and re-use that in Krita.

Krita's selections now consist of two components: a masks that allows gradations of selection and editable paths that allow editing of the path shape at all times. The combined selection can be visualised as a mask, as marching ants, both or not at all. Sure, there's still a lot of work to do, and I managed to break some of his work when working on nodes, layers and mask — my bad! — but Sven has advanced Krita 2.0 in a really important way.

A selection that consists of vectors:

And one that consists of a pixel mask:

In Other Words...

Like last year, the KOffice hackers have been very lucky with the students who offered to work on our project. The interaction has been great, with students coming to the ODF hack sprint and Akademy. KWord now has three people regularly working on it instead of just one. That said, there is still plenty of space in KOffice for aspiring hackers who want to cut their teeth on a challenging, visible and fun project. If you feel that there should be a presentation tool more fun than Keynote, a diagram application cooler than Omnigraffle, a chart app that makes statistics blush when they lie — or if you think file formats are really cool, then do not wait for next year. Join us now!



<  |  >

 

  Related Links
 ·   Articles on KDE Office Suite
 ·   Also by Boudewijn Rempt
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Over 40 comments listed. Printing out index only.
congratulations to all!
by KDE User on Monday 27/Aug/2007, @14:30
This is one of the most exciting stories I have seen on the dot in a long time. Congratulations to all, and may fame and glory come to you. :)
[ Reply To This | View ]
Wow!
by Martin on Monday 27/Aug/2007, @14:58
Dang, those guys are GOOD! Really impressive accomplishments, ALL of them. (I usually don't use caps, but today I am making an exception.) Now, could Google please hire these guys as KDE hackers full time please?
[ Reply To This | View ]
Wow...
by Darkelve on Monday 27/Aug/2007, @16:51
good job.

About that "sheet music"; can you also *play* the music somehow (e.g. simple piano midi instrument), or is it "read only"? (yes I know Koffice is not a music composer program...)
[ Reply To This | View ]
Compliments!
by jumpingcube on Monday 27/Aug/2007, @17:44
very nice work ! thanks !

i personally like the color mixing stuff most - i will never use it, but i like the complexity behind the mathematical model...
[ Reply To This | View ]
Is ODF a second-class citizen in KWord?
by kwilliam on Monday 27/Aug/2007, @18:06
Is ODF not the default file format for KOffice anymore? How is sheet music compatible with ODF in any way, shape, or form? And what do you mean "he had to hack stuff into KWord" because "KWord did not support ODF at all anymore"?! I thought all open source word processors were agreeing that ODF was THE standard to work with from now on! Aren't you essentially adding "proprietary features" that lock users into KWord, or at least force alternative editors like OpenOffice and AbiWord to play catch-up by implementing sheet music support?

Is ODF is some kind of joke, like OpenXML? I tried once to open ODF documents I made in OpenOffice in KWord, and they didn't render correctly. (Whereas if I saved them in Microsoft format, they would!) On the other hand, if OpenOffice is incorrectly supporting the ODF standard (as asserted in your article), how will that change in future releases of OpenOffice? Will my files suddenly change their appearance when/if OpenOffice begins interpreting them according to the standard? Don't take this the wrong way - I appreciate the length that Sun is going to to make ODF a meaningful specification (unlike Microsoft's CrapXML format), and I appreciate all the work done on OpenOffice and KOffice, but when are they going to produce documents that are interpreted by each other the same way? Or is this going to be like the CSS compatibility wars between IE, the W3C specs, and the other browsers?
[ Reply To This | View ]
Good job
by Eugeniu on Monday 27/Aug/2007, @20:19
Kudos to all the SoC folk!
[ Reply To This | View ]
Kerning
by Martin on Monday 27/Aug/2007, @22:27
Oh no! Look at the "statistics" screenshot. Kerning is as bad as it always has been. The developers used to promise that this would be fixed with Qt 4; more recently they have been pointing to the fonts. Please, show just one rendered PDF or even a screenshot where the text really looks good and prove me wrong! Because so far, sadly, and I am not trolling here, but speaking from experience, I have never seen acceptable output from KWord: any version or font family.
[ Reply To This | View ]
Re: Kerning
by Stefan Lücking on Tuesday 28/Aug/2007, @01:22
For KWord 1.6 it's rather simple to explain the difference between fonts. Type-1 fonts are fine while Truetype fonts are broken. So actually, when I use KWord I only use Type 1 fonts (like e.g. Bitstream Charter or Adobe Utopia).

Further, in KWord 1.6 I perceive kerning problems only in printout. DejaVu Sans e.g. looks better on screen in KWord 1.6 than in the screenshot of KWord 2.0. Problems begin only when you print a text or create a PDF.

I really hope that this will be fixed in KWord 2.0. Most fonts are Truetype fonts nowadays. Without a proper kerning of these fonts KWord 2.0 will be unusable for most people.

Another problem is support of OTF fonts (i.e. Type-1 based Open Type fonts). In KWord 1.6 they are rendered correctly on screen, but replaced by other fonts in PDF and printout. BTW, OpenOffice.org doesn't support them either on screen nor in printout or PDF. These fonts, too, become more and more common. So, complete support of OTF fonts is also important.
[ Reply To This | View ]
Great work!
by Anon on Tuesday 28/Aug/2007, @02:12
Excellent work from all concerned, and I hope you all stay on - you are great assets to the KDE project :)
[ Reply To This | View ]
I didn't they Koffice had so much work done
by Skeith on Tuesday 28/Aug/2007, @13:27
It seemed like development was at blitzkrieg pace in preparation for KDE 4, but I didn't hear too much about koffice. This is some excellent news, I've always favored the Koffice suite over openoffice + gimp and now they've gotten even better.
[ Reply To This | View ]
Congratulations!
by Alan Haggai Alavi on Friday 31/Aug/2007, @02:19
Congratulations for coding this summer for the open community. It is such code that we all appreciate.

Well done! :)
[ Reply To This | View ]
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "You would know that after informal research, KDE developers prefer tea!" -- Roberto Alsina
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]