Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gendoc » Gendoc standard library for parsing and generating documents
Gendoc standard library for parsing and generating documents [message #1701135] Thu, 09 July 2015 13:35 Go to next message
Simon Delisle is currently offline Simon DelisleFriend
Messages: 10
Registered: June 2015
Junior Member
Hi,

I have played a bit with Gendoc and I have encountered some problems on the parsing and generating part with LibreOffice.

Have you ever check for a third party standard library to parse the template and generate documents? If yes what are the possible solutions?

Thank you
Re: Gendoc standard library for parsing and generating documents [message #1701701 is a reply to message #1701135] Wed, 15 July 2015 06:46 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 426
Registered: July 2009
Senior Member
Hello we have some users that generate doc for open office.
Maybe there are some cases that are not managed can you share publicly or privately your templates ?

About "Have you ever check for a third party standard library to parse the template and generate documents? If yes what are the possible solutions?" :
> We chose from the first time to not rely on standard library because of the specific process we perform on the document, if we decide to use POI or Tika or other technology we should make a global architecture redesign of gendoc.

Why do you think it would fix your problem in your case ?




Re: Gendoc standard library for parsing and generating documents [message #1701930 is a reply to message #1701701] Thu, 16 July 2015 19:21 Go to previous messageGo to next message
Simon Delisle is currently offline Simon DelisleFriend
Messages: 10
Registered: June 2015
Junior Member
The problem was in the context tag. There was a formatting problem that cause Gendoc to be unable to parse the model path correctly. I have solve this problem by modifying the content.xml by removing some formatting that LibreOffice had placed there.
I think that if GenDoc used a standard library, it could have solved this kind of problem.
Re: Gendoc standard library for parsing and generating documents [message #1702285 is a reply to message #1701930] Tue, 21 July 2015 10:33 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 426
Registered: July 2009
Senior Member
Ok I understand your concern, and sorry you should not have to look inside XMLs.

Actually current added value of gendoc is to remove invalid characters in text. So the problem you had is obviously a bug.
Generally to bypass this problem you have to "remove formatting" on the text of your tag.

To improve gendoc and make it more reliable I see these actions :
- improve the way we recognize tags so if you can reproduce your problem we could add it to our tests
- improve the way errors are reported to users

Nevertheless switching to API like POI would change a lot in the core architecture of ReqCycle if you are interested in the full explanation we can discuss it directly by phone call.




Re: Gendoc standard library for parsing and generating documents [message #1704117 is a reply to message #1702285] Fri, 07 August 2015 12:20 Go to previous message
Yves BERNARD is currently offline Yves BERNARDFriend
Messages: 73
Registered: July 2014
Member
Cut then paste (special) as "unformatted text" might solve your problem. I used this workaround successfully with LibreOffice which seems to insert special control sequence when you modify text with some character styles applied (e.g. font, color, ...) that GenDoc cannot handle properly. These sequence are cleared by the cut/paste operation (assuming you paste as "unformated text")

Hope that helps.


Yves
Previous Topic:How using a Sirius Diagram with GenDoc
Next Topic:Unexpected paragraph marks
Goto Forum:
  


Current Time: Sat Nov 17 08:37:20 GMT 2018

Powered by FUDForum. Page generated in 0.02408 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top