[Libreoffice-bugs] [Bug 51726] RTF: Export RTF to xhtml produces duplicate text in output

2014-07-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51726

Alexandr  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Whiteboard|BSA |BSA (target:4.2.5)
 Resolution|--- |WORKSFORME
 CC||alexpik...@gmail.com

--- Comment #8 from Alexandr  ---
Hello.
I reproduce the bug with LibreOffice 3.5.4 from Debian Wheezy. I can not
reproduce it with LibreOffice 4.2.5 from Debian Wheezy backports and 4.3.0.2. 
I do not know which patch solves the problem hence I set bugstatus to RESOLVED
WORKSFORME. Feel free to reopen it if you can reproduce the issue with
LibreOffice 4.2.5 or later.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 51726] RTF: Export RTF to xhtml produces duplicate text in output

2012-07-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51726

--- Comment #7 from David Tardon  2012-07-16 07:51:25 PDT 
---
(In reply to comment #6)
> XSLT is a great tool for processing xml formatted content, as long as the
> content is well formed. 

If it is not well-formed, it is not XML .-) Anyway, that is not what I meant.
The problem is in the complexity of the ODF format and impedance mismatch with
HTML. XSLT is just not suitable for the heavy processing that is necessary to
do the transformation (and no, XSLT 2.0 is not a solution. XSLT 2.0 is another
problem.) Any attempt to do it anyway just leads to the WORN (Write Once, Read
Never) type of code we have today, where any fix creates two new bugs.

> I have worked around the problem by using the "save as" instead of "export"
> option and selecting html as the target format.  
> 
> Interesting the problem doesn't occur when using "save as"...

AFAIK "save as" uses the old HTML export code from sw/source/filter/html .

There is also writer2latex extension, that (despite its name) contains a filter
for XHTML export too. It is written in Java and hopefully is in a better shape
than the XSLT filter.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 51726] RTF: Export RTF to xhtml produces duplicate text in output

2012-07-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51726

--- Comment #6 from Scott Derrick  2012-07-13 16:40:32 PDT 
---
XSLT is a great tool for processing xml formatted content, as long as the
content is well formed. 

If its not it can get very confused.

I have worked around the problem by using the "save as" instead of "export"
option and selecting html as the target format.  

Interesting the problem doesn't occur when using "save as"...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 51726] RTF: Export RTF to xhtml produces duplicate text in output

2012-07-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51726

David Tardon  changed:

   What|Removed |Added

 CC||dtar...@redhat.com

--- Comment #5 from David Tardon  2012-07-13 11:00:08 PDT 
---
For anyone interested: the code is in
filter/source/xslt/odf2xhtml/export/xhtml/body.xsl and I think the problem is
in the template matching draw:frame at line 889. It calls template
createDrawFrame, which for some reason prints all the following siblings of the
frame wrapped by a div. But after the draw:frame template is finished, the
processing continues so the following siblings are processed (and printed)
again.

IHMO the best course of action is to abandon the crazy idea that XSLT is
suitable tool for processing ODF and rewrite the filter in C++.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 51726] RTF: Export RTF to xhtml produces duplicate text in output

2012-07-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51726

Julien Nabet  changed:

   What|Removed |Added

 Status|NEEDINFO|NEW

--- Comment #4 from Julien Nabet  2012-07-04 23:27:12 PDT 
---
I installed unrtf (included in Debian repo) to test your file, it was ok.
So I put back to New status.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 51726] RTF: Export RTF to xhtml produces duplicate text in output

2012-07-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51726

--- Comment #3 from Scott Derrick  2012-07-04 14:41:59 PDT 
---
Yes I have.

As I said in the initial posting, Word 2007, doesn't seem to have a problem
exporting the file to html. 

I don't know if it's significant or not but the RTF's I'm converting were
created 10-20 years ago. They are part of an archive we are converting to
xml(TEI), using xhtml as an interim format in the conversion process. 

Neither LibreOffice nor MSOffice complain when loading them?

I have more rtf's that exhibit the problem if needed.

Scott

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 51726] RTF: Export RTF to xhtml produces duplicate text in output

2012-07-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51726

Julien Nabet  changed:

   What|Removed |Added

 Status|NEW |NEEDINFO

--- Comment #2 from Julien Nabet  2012-07-04 13:29:51 PDT 
---
I created a simple rtf file with LO containing just 1 word without any
formatting.
I exported it to XHTML, everything was ok.
Something in the file seems to trigger the problem.

Scott Derik : do you reproduce this problem with other rtf files ?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 51726] RTF: Export RTF to xhtml produces duplicate text in output

2012-07-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51726

Julien Nabet  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 CC||serval2...@yahoo.fr
 Ever Confirmed|0   |1

--- Comment #1 from Julien Nabet  2012-07-04 13:22:41 PDT 
---
On pc Debian x86-64, with master sources updated today I reproduced the
problem.

If I create an odt file from rtf, the text isn't present twice in odt.
If I export the odt to xhtml, the whole text is present twice too.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs