[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: odf-converter for fedora



Muayyad AlSadi wrote:
from < http://www.oooninja.com/2008/01/openxml-translator-odf-converter-11.html
<<EOQ
The odf-converter only integrates into Novell and Ubuntu editions of
OpenOffice.org. The odf-converter may work with the Go-Oo edition, but
I am not sure. It does not work with the upstream version (the version
from the OpenOffice.org web site that most people use) or with the
Fedora version, so don't even try.

The command line tool works fine. It does seem like it tries to install some Filter/Type configs for OO (see below). With them installed in %{_libdir}/openoffice.org/share/registry/modules/org/openoffice/TypeDetection/{Filter,Types} OO allows me to try to open a docx file, but then says it needs to be repaird. So perhaps it really doesn't integrate into Fedora OO. I wonder why.

MOOXFilter_cpp.xcu:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE oor:component-data SYSTEM "../../../../component-update.dtd">
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; oor:package="org.openoffice.TypeDetection" oor:name="Filter">
        <node oor:name="Filters">

        <node oor:name="MOOX" oor:op="replace">
<prop oor:name="Flags"><value>IMPORT EXPORT TEMPLATE OWN ALIEN DEFAULT PREFERRED</value></prop>
                <prop oor:name="UIComponent"/>
                <prop oor:name="FilterService"/>
<prop oor:name="UserData"><value>CXML,Preprocess=&lt;vnd.sun.star.expand:/usr/bin/OdfConverter /DOCX2ODT /I %SOURCE% /O %TARGET%&gt;,Postprocess=&lt;vnd.sun.star.expand:/usr/bin/OdfConverter /ODT2DOCX /I %SOURCE% /O %TARGET%&gt;</value></prop> <prop oor:name="FileFormatVersion"><value>6800</value></prop>
                <prop oor:name="Type"><value>MOOXTYPE</value></prop>
                <prop oor:name="TemplateName"/>
<prop oor:name="DocumentService"><value>com.sun.star.text.TextDocument</value></prop>
                <prop oor:name="UIName">
<value xml:lang="x-default">Microsoft Word 2007 Document</value>
                </prop>
        </node>
        </node>
</oor:component-data>


MOOXTypeDetection.xcu:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE oor:component-data SYSTEM "../../../../component-update.dtd">
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; oor:package="org.openoffice.TypeDetection" oor:name="Types">
        <node oor:name="Types">
        <node oor:name="MOOXTYPE" oor:op="replace">
<prop oor:name="URLPattern"><value>*.docx *.DOCX</value></prop>
                <prop oor:name="Extensions"><value>docx</value></prop>
<prop oor:name="MediaType"><value>application/vnd.openxmlformats-officedocument.wordprocessingml.document</value></prop>
                <prop oor:name="Preferred"><value>false</value></prop>
                <prop oor:name="PreferredFilter"><value>MOOX</value></prop>
                <prop oor:name="UIName">
<value xml:lang="x-default">Microsoft Word 2007 Document</value>
                </prop>
<prop oor:name="ClipboardFormat"><value>doctype:wordDocument</value></prop>
        </node>
        </node>
</oor:component-data>

--
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion cora nwra com
Boulder, CO 80301              http://www.cora.nwra.com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]