forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Schaefer <>
Subject Re: Code to convert MS Word documents
Date Mon, 21 May 2007 15:32:00 GMT
from a chat with Ross:
[16:22:51] Johannes Schäfer :
  one quick question: did graphics work from MSWord?
[16:23:39] Ross Gardler :
  To be honest I really can't remember. I know I got them to work in the
OOo plugin and therefore they should work. But whether they were tested or
[16:24:13] Johannes Schäfer :
  there're none in the sample pages, so I assumed they don't work (ooo
works indeed)
[16:25:39] Ross Gardler :
  I'd suggest looking to see if you can get the interim document that is
output from the MSWord generator and seeing what there is in there. They
should be in the produced zip (at least I think the generator produces a
zip - it really has been a long time)
[16:29:51] Ross Gardler :
  To see what the MS generator creates try adding the following to
input.xml in the plugin:
[16:30:34] Ross Gardler :
<map:match pattern="**.OOo.xml">
  <map:when test="{project:content.xdocs}{uri}.doc">
          <map:match type="regexp" pattern="^(.*?)([^/]*).xml$">
            <map:generate src="{project:content.xdocs}{1}{2}.doc"/>
[16:30:51] Ross Gardler :
  You may need to use a binary serialiser if it does produce a zip


[16:34:17] Ross Gardler : yes - the only reason it is not there is the
license issue. Perhaps you could dump what you have in SVN on the
sourceforge project then if anyone wants to get at what we are discussing
they can - I don't care about the license issues at the moment (it is all
open source stuff)
[16:35:32] Ross Gardler :


Ross dumped "his" plugins there. Thanks!


Johannes Schaefer schrieb:
> Ross Gardler schrieb:
>> On 14/05/07, Johannes Schaefer <> wrote:
> <snip/>
>> Never seen this before. Just a couple of guesses for now, I've not
>> looked at the code:
>> - you are using Forrest 0.7
>> - you are using OOo 1.0 (this was not written against 2.0)
> OK, using OOo 1.1.5 [1] works way better!
> Thanks Ross, the plug-in works (almost) out of the box.
> I can't get "graphics" displayed (Neither embedded nor linked,
> Forrest shows the ALT text instead), e.g.
>   <img alt="Graphic1"
> src="openOfficeEmbeddedImage/zip-wordSample-bild.sxw/file-Pictures/2000000F000040CE0000309A05877442.svm">
> Did this work formerly?
> (Images get displayed correctly with the OOo-Plugin).
> Is there a way to get images working?
> I get special classes for bold or italics, e.g.
>   you can make a word appear <span class="T1">strong</span>,
>   or <span class="T2">emphasised.</span>
> These I may format "correctly" but I don't know if "T1" is constant?!
> Some paragraphs get CLASS="instruction", e.g. (but not only inside <ul>)
>       <ul>
>         <li>
>           <p class="instruction">Sub lists</p>
>         </li>
>       </ul>
> which inserts an arrow at the beginning (this is from screen.css).
> Do you have "Formatting Guidelines" for Word?
>   Like: only use standard formats, nest headings properly and so on,
>         insert images as links
> We would have a big (>250 pages) document to insert (in pieces),
> this will involve a lot of manual work anyway.
> You used some code from [2].
> Do you know if there are any (relevant) updates?
> Thanks a lot for your support!
> Johannes
> [1]
> [2]
>> - you start OOo as a server for forrest to use before starting forrest
>> - Does core.log indicate what URL is the problem (there is some
>> internal requests and it is likely one of those URLS that are
>> unsupported)
>> I'll try and have a look at the code sometime soon.
>> Ross

User Interface Design GmbH, Ludwigsburg, Germany
Phone/Fax  +49 7141 37700-46/-99, Mobile +49 170 4914567
E-mail *

Teinacher Strasse 38, D-71634 Ludwigsburg
Truderinger Strasse 330, D-81825 Muenchen
Friedrichsring 46, D-68161 Mannheim

Legal information according to EHUG:
User Interface Design GmbH; Managing Directors: Dr. Claus Goerner,
Franz Koller; Head office: Ludwigsburg; Commercial register of the
local court of Stuttgart, Germany, HRB 205519

View raw message