Processor | Document Size (before conversion) |
Text Complexity [1-5] |
Processing Time (min:sec) |
---|---|---|---|
Pentium M 1.6 GHz | 56kB | 2 | 0:02 |
Pentium M 1.6 GHz | 1291kB | 3 | 0:47 |
Pentium M 1.6 GHz | 96kB | 5 | 7:12 |
Dual UltraSparc 1.0 GHz | 1956kB | 1 | 0:02 |
Plugin
; replace those with add-on
oo2twiki=convert
(or the like; chose an unlikely name) URL parameter and fire the converter action if the correct parameter is supplied. This can be done in the skin with a https://twiki.org/cgi-bin/view/Plugins/OpenOffice2TWikiAddOnDev?oo2twiki=convert
link.
$xsltprocCmd = "/usr/bin/xsltproc" . ' %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';Is that how the variable is supposed to look? Regardless, I still get the undefined subroutine error. -- GordonTerrell - 12 Sep 2006 I am getting the same error as well. I am running on TWiki 4.0.4. -- RickMach - 21 Sep 2006 I added a SHORTDESCRIPTION to the "Add-On Info" section so that this add-on is represented properly in the AddOnPackage topic and query topics. Please feel free to take this into the next release. -- PeterThoeny - 04 Nov 2006 This really doesn't work with TWiki 4.x does it? Even removing setupRexexes (the comment on the line says "why is this necessary" - and it isn't for 4.x) just causes another failure calling TWiki::UI::isMirror Getting past that causes "Can't locate object method "readTopicRaw" via package "Sandbox" " but it refers to the Store.pm I'm a bit confused. Shame it doesn't work anymore -- ChrisHogan - 05 Jan 2007 In OpenOffice2TWikiAddOn, the "tested" form field states just the Sep 2004 version, so it needs to be updated for TWiki 4.0. -- PeterThoeny - 06 Jan 2007 Changing the call from TWiki::Store::readTopicText to TWiki::Func::readTopicText gets things just a wee bit further: Software error: Can't use string (" <!DOCTYPE html PUBLIC "-//W3C") as a HASH ref while "strict refs" in use at /home/user/public_html/twiki/lib/TWiki.pm line 2586. I'm going to keep poking at it...I have an 800 page document I'd like to TWikify. (Of course, I may give up and manually process this one document using the style sheets...but then images are a problem, I think.) -- JoeCooper - 20 Mar 2007 Well, i've updated this thing to twiki 4.x. I've just emailed the author asking for permission to change the add-on topic and upload my updated version (which still needs some polish and serious testing). -- KoenMartens - 05 May 2007 Hmm, author seems to have misconfigured his email server (false rejects based on senderid). Anyway, since it has been 2005 that this add-on was last tended to i'll just upload the lot tomorrow. -- KoenMartens - 05 May 2007 Yes, please do so. This plugin is marked as PleaseFeelFreeToModify. -- PeterThoeny - 16 May 2007 Is it "uploaded"? Where can we find it? Thanks. -- JayBee - 11 Jul 2007 There is still just the old version from 2005 attached to the OpenOffice2TWikiAddOn topic, and the addin is not developed in SVN. This add-on needs some TLC. -- PeterThoeny - 14 Jul 2007 Sorry for the delay (lots of earning-bread-and-butter work came in between), i finally uploaded my updates. Note, they can be cleaned up a bit, but i really can't seem to find the time to really sit down for it. Instructions as mentioned in the topic still apply.. -- KoenMartens - 08 Aug 2007 Hi, need help here. I get an empty page after uploading test.odt. My env is under Windows. I install those two file for XSLT libxml2-2.6.28.win32.zip libxslt-1.1.19.win32.zip from http://www.zlatkovic.com/pub/libxml/ can anyone give me some hint? -- WenYuanChi - 14 Aug 2007 I have never tested this under windows. My best bet is that it has something to do with file paths. Did you check the logfiles (apache log and data/warn*.txt)?? Perhaps they shed some light on the problem. If someone with twiki on windows could test this, that would be great. I have no windows machines. -- KoenMartens - 21 Aug 2007 Wooh! I can't believe somebody has finally started using it I did try testing under Windows but could never get it to work. I think it's something to do with the way perl handles child processes under Win32, and more specifically under Cygwin. The interface is the same as that used on GenPDFAddOn though, so maybe it will work one day. I never tested under Dakar or later but I can take a look now to see where it's failing. Those motivation tapes never work... -- WadeTurland - 27 Aug 2007 Btw, i found out there was a problem with the encoding. Special characters (eg charachters with umlauts) would not get translated properly. To solve this, change in the xslt files the line:
<xsl:output method="html"/>to:
<xsl:output method="html" encoding="iso-8859-15"/>I'll upload this change some time, once Wade's motivational tapes arrive by mail. -- KoenMartens - 28 Aug 2007 We are after a way of batch converting our MS Word documents into TWiki. After testing both OpenOffice2TWikiAddOn and MsWordToTWikiMLAddOn, the former seems slightly better in terms of conversion quality, but more importantly, seems to have better promise of growing into a batch process (images included, new topic created). There's certainly no difficulty in converting batch of word documents into the Open Office format. What would it take to hack the convert script to handle a batch of documents or even directories? See also the Import MS Word topic discussion. -- EyalTeutsch - 20 Sep 2007 For some reason, in all documents I convert (including simple test documents), only a single image gets attached (all other images though linked, are not attached to the newly created topic). I have attached a test document, image_conv_prob.odt, with three twiki graphic images - only the third gets (arbitrary) attached to the document. Has anyone experienced similar problems? -- EyalTeutsch - 11 Oct 2007 Twiki 4.1.2, Openoffice2TwikiAddon Every time I run Convert, the origionating page is deleted, and the contents replaced with a single link to the converted document. Nothing in the warn.txt Ideas? -- BenSelinger - 12 Oct 2007 Great work KoenMartens! I thought the original work is frosen, I even started to work on an xslt for odt, but then I saw your contribution. Thanks. Two small issues:
OO2TWiki.pm
file so others can use it.
In terms of fixing this in the actual distribution, do I just re-package the original tar-ball and update the attachment on the OpenOffice2TWikiAddOn page?
-- DuncanKinnear - 16 Nov 2007
Note also (for anyone re-creating the distribution tar-ball) that the OpenOffice2TWikiAddOn.txt
in the distribution is out-of-date. This should be updated from the topic here on the TWiki web site.
-- DuncanKinnear - 16 Nov 2007
The ModificationPolicy of this add-on is PleaseFeelFreeToModify. That is, you can repackage and upload a new version. Thank you Duncan for contributing to the TWikiCommunity!
-- PeterThoeny - 20 Nov 2007
I'm having the same problem as BenSelinger using TWiki 4.0.2. Additionaly, when I click on the upload button in the convert dialogue, I get partial raw html output of the dialogue page in the browser window. The convert process finishes after a while, however, the originating page becomes deleted as described above.
-- JoachimBlum - 27 Nov 2007
Ben and Joachim,
The problem you are experiencing is a bug with the "Create a link" option.
Avoid ticking the box that says "Create a Link ..." and the problem will not occur.
I have actually tracked down the problem in the code itself, but I'm just heading home for the weekend. I'll post an update 'pm' file on Monday.
-- DuncanKinnear - 07 Dec 2007
OK, I've uploaded new versions of the addon tar.gz and zip packages containing the fixes I have done.
The major changes are: OO2TWiki.pm
script, around line 333, there is a set of simple substitution commands that convert various multi-byte characters into the XML/HTML equivalent.
As the original author stated in the comments above these:
# replace some common Unicode chars # SMELL - this should be done in xslt, but how?This has been on my todo list for this AddOn, but I haven't got to it yet. I have found out that there is a way to do this in XSL using the
<xsl:character-map>
construct (see this page at w3.org), but I just haven't had a chance to test it.
I also think there must be a better way to translate international characters such as yours without having to define every possible one in a character-map. But maybe there isn't.
You could always start by adding substitutions to the script like the others and then translate these into xsl character-map's.
It is a good idea to switch on debugging for the AddOn (in your TWikiPreferences topic) so you can examine the 'xml' file that is extracted from the 'odt' file. It is usually placed in '/tmp'. The 'xml' file is the original document and the 'tml' file is the resulting TWiki Markup topic text.
Let us know how you get on.
-- DuncanKinnear - 20 Jan 2008
Thomas,
I just re-read the other comments above and noticed Koen's comment on the 28th Aug last year about adding the encoding="iso-8859-15"
to the <xsl:output method="html">
line in the odt.xslt
file (it's in the pub/TWiki/OpenOffice2TWikiAddOn
sub-directory).
I just tried this suggestion here and it appears to fix the umlauts.
-- DuncanKinnear - 21 Jan 2008
Adding the encoding line to odt.xslt fixed the problem. Thank you!
-- ThomasStieglitz - 21 Jan 2008
Does anybody mind if I check in this package to SVN and do some fixes, i.e.
implementing an own oo2twiki
template instead of using the attachnew
, as well as fixing some TWiki API violations?
-- MichaelDaum - 05 May 2008
I am getting the following error when I try the Sandbox link in the usage page:
TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
Can't locate object method "login" via package "HansSchwing" (perhaps you forgot to load "HansSchwing"?)
I have checked the logs and it says there is an error at .../libTWiki/Contrib/OO2TWiki.pm line 65
Any ideas?
-- HansSchwing - 03 Jun 2008
Emailed the original author whether he is still maintaining this package.
-- MichaelDaum - 12 Jun 2008
Okay got a reply. Wade abandoned this package. I'll try to clean it up so that it becomes an option again.
-- MichaelDaum - 12 Jun 2008
Thanks.
-- HansSchwing - 17 Jun 2008
To get This AddOn to work with 04x02 i had to apply the followin patch:
diff -Naur OpenOffice2TWikiAddOn/lib/TWiki/Contrib/OO2TWiki.pm OpenOffice2TWikiAddOn.sjosi/lib/TWiki/Contrib/OO2TWiki.pm --- OpenOffice2TWikiAddOn/lib/TWiki/Contrib/OO2TWiki.pm 2007-12-10 22:36:22.000000000 +0100 +++ OpenOffice2TWikiAddOn.sjosi/lib/TWiki/Contrib/OO2TWiki.pm 2008-07-24 15:19:03.000000000 +0200 @@ -62,7 +62,7 @@ my $filePath = $query->param( 'filepath' ) || ""; - my $userName = $session->{user}->login(); + my $userName = $session->{user}; # hack to make TWiki::Func::* work $TWiki::Plugins::SESSION = $session;-- SimonJosi - 24 Jul 2008 To the add-on author: MichaelLissner added a "Usage Through OpenOffice" section to the add-on topic, and I did a few fixes as well. Please feel free to take this into the next release. -- PeterThoeny - 18 Nov 2008
WebForm | |
---|---|
TopicClassification | AddOnDevelopment |
TopicSummary | Ideas, bugfixes and development of the OpenOffice to TWiki converter add-on |
InterestedParties | |
RelatedTopics | OpenOffice2TWikiAddOn, OpenOffice2TWikiAddOnAppraisal, MsOfficeAttachmentsAsHTMLPlugin, OpenOfficeIntegration |
I | Attachment | History | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|---|
pm | OO2TWiki.pm | r1 | manage | 19.9 K | 2007-11-16 - 01:37 | UnknownUser | Updated AddOn perl code that fixes missing image attachments |
odt | image_conv_prob.odt | r1 | manage | 8.2 K | 2007-10-11 - 09:33 | UnknownUser | test document with 3 images, only one is attached after conversion |