Index ¦ Archives ¦ RSS > Tag: en

Positions in RTF font tables

Estimated read time: 1 minutes

Tonight I worked on fdo#39337, and while the writerfilter-based RTF import filter almost handled the document in question correctly, the fonts were not correct.

It turned out that this was caused by the fact that RTF’s font table (a table where each row has an ID and it contains the font name, charset and other properties) does not require continuous ID’s (for example positions 0, 2, 3 are allowed, even if 1 is not set), but dmapper (the glue layer between the RTF tokenizer and the Writer UNO API) does.

I already sent the position of the entry to dmapper, but the position turned out to be ignored, so now I fixed the RTF tokenizer to send continuous ID’s.

A related improvement is that I just discovered the writerfilter::TagLogger::unoPropertySet() method, which can dump the properties of an UNO object, and now I’ve enabled dumping of shape properties, which can help a lot when something goes wrong there.


bitlbee-skype is now merged

Estimated read time: 1 minutes

http://bitlbee.org/style/logo.png

Back in April I had the idea to merge my bitlbee-skype plugin to the main BitlBee project. The reason is simple: BitlBee does not really have plugins (basically my Skype plugin was the only one) and because of this, ABI compatibility was not guaranteed, so I usually had to rebuild or even fix it after each BitlBee release (though Wilmer was helpful in case I was in doubt). Today this is all past, the plugin is part of the main BitlBee repo I won’t make separate bitlbee-skype releases anymore. (Latest version of the code is here, bzr info here.)

I’m quite happy this little piece of software did not get lost, but now is in the hands of an active maintainer again. :) If you need help with BitlBee, ask on #bitlbee, at irc.oftc.net.


LibreOffice 3.4 Packaging

Estimated read time: 1 minutes

The next major LibreOffice version, 3.4, means some work for (Linux distribution, and other) packagers, as the build repo is now deprecated and packagers are suggested to use the bootstrap repo directly, which is a different build system.

On one hand, this is a nice cleanup - there is now a single configure script. OTOH this needs major rework of distro build scripts.

The interesting part here is that the official binary installers are not using the make DESTDIR=/some/path install method to install the compiled binaries, so it was discovered quite late that it wasn’t working properly. First Hanno and Petr worked on this, then I fixed a minor, but blocking glitch.

As a result 3.4 beta4 will be something packagers (even the ones not using the split build) can offer to distro users for testing without patching. Binaries for Frugalware users here (i686-only at the moment).


GSoC 2011 - Accepted

Estimated read time: 1 minutes

http://code.google.com/images/GSoC2011_300x200.png

I just got the mail about my LibreOffice proposal got accepted to Google Summer of Code 2011. I’m looking forward to an exciting summer. :)


Apply button to style edit dialog in Writer

Estimated read time: 1 minutes

https://lh3.googleusercontent.com/-D-pV0cucPL0/UYduyolR-AI/AAAAAAAACso/zL9Vd2IQgY0/s400/fdo32413.png

LibreOffice 3.4 will have a new feature, if you edit styles in Writer, then you can test your style changes without manually closing and opening the style edit dialog again.

Do you like this feature? There are still similar remaining dialogs to improve like this, send in a patch!


KDE 4.6 vs hibernate

Estimated read time: 1 minutes

We recently merged KDE 4.6 in Frugalware -current and since now it uses upower, it catches the sleep button of my netbook. The problem is that it tried to suspend instead of hibernation - what I wanted.

The trick is easy, but not really obvious. First, I disabled suspend/hibernate in /usr/share/polkit-1/actions/org.freedesktop.upower.policy so that I can play with this without actually hibernating/suspending the system.

Second, I went to System Settings → Input actions → Global, selected "KDE services" and there you can see Suspend and Hibernate as well. Go to Hibernate, and set a custom shortcut: it will ask if you want to remove the sleep button from Suspend - the answer is obviously yes.

Done!


Russian characters in RTF export

Estimated read time: 1 minutes

I got a report about two problems which got fixed in master now.

The first error is triggered, if you have special (in RTF terms, so for example { or }) characters in style names. The result was not so friendly when you opened such a document:

http://vmiklos.hu/pic/loru1.png

After applying the first fix, the document was imported but the original Тест text was replaced by something non-unicode:

http://vmiklos.hu/pic/loru2.png

The second fix addresses this, and now the result is the expected one:

http://vmiklos.hu/pic/loru3.png

LibreOffice's git-hooks now warn about undocumented classes

Estimated read time: 1 minutes

There was a thread about this topic already, but just refusing to commit new files without documentation sounded too aggressive. So the current code just prints a warning.

It was also requested to show some good/bad examples. Lubos volunteered to add detailed instructions in the wiki, so I’m just describing in short what did I test so far.

A good example:

/// Handles export of foos using RTF markup
class RtfFoo
{
};

A bad example:

class RtfBarBuggy
{
};

Example output when a warning is emitted:

~/git/libreoffice/master/sw$ git commit -a -m foo
sw/source/filter/ww8/bar.hxx:30: warning: Compound RtfBarBuggy is not documented.
[master 1b11571] foo
 3 files changed, 68 insertions(+), 0 deletions(-)
 create mode 100644 sw/source/filter/ww8/bar.hxx
 create mode 100644 sw/source/filter/ww8/foo.hxx

systemd vs. LVM

Estimated read time: 1 minutes

Yesterday I enabled udev support in our LVM package, and that means LVM volumes under systemd not work as expected. Thanks to Lennart for the quick answer. :)


Nationality of currently active Frugalware developers

Estimated read time: 1 minutes

/pic/nationality-of-frugalware-developers.t.png

Just a FYI:

$ ./chkacc --verbose
Accepting active developer 'vmiklos' [hu]
Accepting active developer 'iron' [hu]
Accepting active developer 'voroskoi' [hu]
Accepting active developer 'boobaa' [hu]
Accepting active developer 'crazy' [ro]
Accepting active developer 'priyank' [in]
Accepting active developer 'hermier' [fr]
Accepting active developer 'devil505' [fr]
Accepting active developer 'bouleetbil' [fr]
Accepting active developer 'ryuo' [us]
Accepting active developer 'gholafox' [fr]
Accepting active developer 'phayz' [au]
Accepting active developer 'elentir' [fr]
Accepting active developer 'cedynamix' [fr]
Accepting active developer 'jercel' [fr]
Accepting active developer 'exceed' [fr]
Accepting active developer 'dex' [de]
Accepting active developer 'kooda' [fr]
Accepting active developer 'centuri0' [fr]
Accepting active developer 'kikadf' [hu]
Accepting active developer 'pingax' [fr]

© Miklos Vajna. Built using Pelican. Theme by Giulio Fidente on github.