Hi devs,
To be clear about what a "frame" means in OOo please have a look at
following screenshots:
http://i39.tinypic.com/293aptt.pnghttp://i41.tinypic.com/259fnfq.jpg
The problem with these frames is that OOo server generates html like below:
<code>
<SPAN ID="Frame1" DIR="LTR" STYLE="float: left; width: 3.09in; height:
3.8in; border: 1px solid #000000; padding: 0.06in; background: #ffffff">
<P CLASS="frame-contents">Hello, This is a frame as it is called on
openoffice writer.</P>
<P CLASS="frame-contents"><BR><BR>
</P>
<P CLASS="frame-contents">We have a problem with importing documents
that contain this sort of frames.</P>
<P CLASS="frame-contents"><BR><BR>
</P>
<P CLASS="frame-contents">This is the last paragraph</P>
</SPAN>
<code>
Let's forget the fact that it should be a <div> instead of a <span> for the
moment. But even if we convert it to a <div>, with our style filtering
approach this kind of frames are filtered out (because the frame is made out
of a style).
So, the first question is, should these "frames" be filtered in "filter
styles" mode? I think they should not be filtered because it is same as if
we filter tables with "filter styles" mode.
If they should not be filtered completely, what should be the output under
"filter styles" mode?
I can think of two outputs:
<code>
<DIV STYLE="float: left; border: 1px solid #000000;">
<P CLASS="frame-contents">Hello, This is a frame as it is called on
openoffice writer.</P>
<P CLASS="frame-contents"><BR><BR>
</P>
<P CLASS="frame-contents">We have a problem with importing documents
that contain this sort of frames.</P>
<P CLASS="frame-contents"><BR><BR>
</P>
<P CLASS="frame-contents">This is the last paragraph</P>
</DIV>
<code>
Height & Width are removed because when styles are filtered fonts sizes
change and the size of the box might not be enough for the content to fit
in.
The other output we can have is:
<code>
<table>
<tr>
<td>
<P CLASS="frame-contents">Hello, This is a frame as it is
called on
openoffice writer.</P>
<P CLASS="frame-contents"><BR><BR>
</P>
<P CLASS="frame-contents">We have a problem with importing
documents
that contain this sort of frames.</P>
<P CLASS="frame-contents"><BR><BR>
</P>
<P CLASS="frame-contents">This is the last paragraph</P>
</td>
</tr>
</table>
<code>
So it becomes a single cell table, problem solved.
So, wdyt?
Thanks.
- Asiri
Hi,
The XWiki translation tool located at http://l10n.xwiki.org/ has been
upgraded yesterday. Starting today, new message strings are automatically
loaded into the translation tool every night at 2:00 am Paris time. This
means that whenever a developer commits a new portion of code that requires
to be translated, it will show up on http://l10n.xwiki.org/ the next day.
The immediate effect of this change is that approximately 120 new messages
to translate have been added for XWiki Enterprise since yesterday. Some of
the languages that used to be finished (such as german, romanian or spanish)
are no longer complete. You can check the actual numbers here:
http://l10n.xwiki.org/xwiki/bin/view/XE/XWikiCoreResources
Additionally, some contributions have not been reviewed yet. Reviewing
translations helps finding & fixing typos and other mistakes. It would be
great if members from the community could look at it and review translations
where applicable.
Since we're close to the release date of XE 1.8.3 (and soon XE 1.9 M2) it
would be awesome if some of you guys could update the tool with missing
translations and reviews. I'm done with French already, 15 languages to go
;-)
Many thanks in advance on behalf of the community,
Guillaume
--
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://guillaumelerouge.com/
asiri (SVN) wrote:
> Author: asiri
> Date: 2009-04-29 09:52:15 +0200 (Wed, 29 Apr 2009)
> New Revision: 19183
>
> Modified:
> platform/core/trunk/xwiki-officeimporter/pom.xml
> platform/core/trunk/xwiki-officeimporter/src/main/java/org/xwiki/officeimporter/internal/openoffice/DefaultOpenOfficeServerManager.java
> Log:
> XWIKI-3711: Upgrade officeimporter to use jodconverter-3.0-beta-2
>
Could this port be taken from a configuration? I don't like magic numbers.
> + OfficeConnectionMode connectionMode = OfficeConnectionMode.socket(8100);
--
Sergiu Dumitriu
http://purl.org/net/sergiu/