Add RTF support to Okular
ClosedPublic

Authored by progwolff on Aug 20 2017, 10:01 AM.

Details

Reviewers
None
Group Reviewers
Calligra: 3.0
Okular
Commits
R8:4e15d65ff0ea: Add RTF support to Okular
Summary

Adds RTF support to Okular
BUG: 339835

Test Plan

Okular correctly renders RTF documents.
RTF is added to Okular's mime filter

Diff Detail

Repository
R8 Calligra
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
progwolff created this revision.Aug 20 2017, 10:01 AM
Restricted Application added a project: Calligra: 3.0. · View Herald TranscriptAug 20 2017, 10:01 AM

Just a quick note (I can't test the rest of the patch):

filters/words/rtf/import/okularApplication_rtf_calligra.desktop
7

Qt5 applications use -qwindowtitle, not -caption .

I just fixed it for the other generators.

Right, this would have been my next patch. Thanks for fixing this!

progwolff updated this revision to Diff 18437.Aug 20 2017, 12:59 PM
  • Merge branch 'master' of git://anongit.kde.org/calligra
  • fix desktop file
aacid added a subscriber: aacid.Aug 22 2017, 8:56 PM

Is there actually no code? I.e. is it just loading an exising plugin that knows how to use rtf but wasn't told about it?

In D7431#138583, @aacid wrote:

Is there actually no code? I.e. is it just loading an exising plugin that knows how to use rtf but wasn't told about it?

Exactly. The needed filter and converter were already implemented.

@aacid poked me as well to look at this., so I give in, as actually I might indeed be the one knowing most about this code still. Sadly out of loop with Calligra & Okular, not even build setups. But what I remember from the time when I hacked on the Okular plugins of Calligra, this patch looks pretty okay/complete when it comes to extending support for RTF.
So no official ship-it, given I am currently not active in the Calligra project, but still a "looks good (untested)."
If you have tested this well and feell confident, guess you just should push this to master, as it also does not change other things, on your own risk :)

You might though want to also update https://phabricator.kde.org/source/calligra/browse/master/README.PACKAGERS

progwolff updated this revision to Diff 18651.Aug 24 2017, 7:21 AM
  • update README.PACKAGERS
This revision was automatically updated to reflect the committed changes.