[xwiki-devs] [GSOC][OfficeImporter]commit xwiki-plugin-officeimporter code to sandbox
Currently this plugin can convert the attachment file which is a office document to html code. This project use jodconverter[1] as the conversion framework which leverage the openoffice power. Please read the README with the code to test. This officeimporter plugin is simple and do a simply tidy html work. don't concern picture handler, xwiki syntax conversion. However, I'll add those feature in the future. Now I have to write my thesis in the day time, so I only can work on that project after 6 pm and the weekend. Hense sorry for the delay. Todo List 1. clean html with htmlclean[2]. Furthermore, remove the office document special html code. remove <html> <body> <script>. html also have some content that conflict with xwiki syntax like [notlink]. 2. handle pictures in the office file. Maybe upload the images to xwiki as the attachments. Hense I need to go over how xwiki address attachment. Replace <src> with {image:} 3. convert html to xwiki. As Vincent said, I should read the html parser and wikimodel. I think this can be a option for user. 4. provide the interface for inputstream and outputstream. Hense this plugin can be used in the xwiki code. 5. intergrate it to wysiwyg editor. product a feature to convert local office file to xwiki page. This should use the xwiki upload feature. Now I'm a little confused that I afraid I can't finish all the task above before the middle exam. What should I do? Which task to pick as first priority? Any suggestion will be very appreciated. Thanks. [1] http://www.artofsolving.com/opensource/jodconverter [2] http://htmlcleaner.sourceforge.net/ -- Sincerely, Wang Ning
Hi Wang, On Jun 22, 2008, at 7:30 AM, Wang Ning wrote:
Currently this plugin can convert the attachment file which is a office document to html code. This project use jodconverter[1] as the conversion framework which leverage the openoffice power. Please read the README with the code to test. This officeimporter plugin is simple and do a simply tidy html work. don't concern picture handler, xwiki syntax conversion. However, I'll add those feature in the future.
I need to test it.
Now I have to write my thesis in the day time, so I only can work on that project after 6 pm and the weekend. Hense sorry for the delay.
Hmm... I hope this won't impact your work since this is a 2 men/months project roughly and this is only just the beginning.
Todo List 1. clean html with htmlclean[2]. Furthermore, remove the office document special html code. remove <html> <body> <script>. html also have some content that conflict with xwiki syntax like [notlink]. 2. handle pictures in the office file. Maybe upload the images to xwiki as the attachments. Hense I need to go over how xwiki address attachment. Replace <src> with {image:} 3. convert html to xwiki. As Vincent said, I should read the html parser and wikimodel. I think this can be a option for user.
I have committed a XHTML parser in the rendering module.
4. provide the interface for inputstream and outputstream. Hense this plugin can be used in the xwiki code. 5. intergrate it to wysiwyg editor. product a feature to convert local office file to xwiki page. This should use the xwiki upload feature.
Now I'm a little confused that I afraid I can't finish all the task above before the middle exam. What should I do? Which task to pick as first priority? Any suggestion will be very appreciated.
They're all important. I'd say point 5 can be left for after the other points are done. Thanks -Vincent
[1] http://www.artofsolving.com/opensource/jodconverter [2] http://htmlcleaner.sourceforge.net/ -- Sincerely, Wang Ning
After some discussion on IRC, I think my plan as follow: 1. handle pictures upload pictures as attachments. 2. clean html go over xwiki skin extension and htmlcleaner. The goal of this step is handle the <style> tag, and remove conflict of xwiki syntax. 3. convert xwiki syntax use XHTML parser which Vincent provides to convert html code to xwiki syntax. 4. provide the interface for inputstream and outputstream. 5. intergrate it to wysiwyg editor. I plan to finish the step 1, 2 and most part of 3 before the middle exam. May just some initial version. The left 2 point, I want to finish after the middle exam. WDYT? Have to sleep. It's 1 am in my region. On Tue, Jun 24, 2008 at 12:30 AM, Vincent Massol <vincent@massol.net> wrote:
Hi Wang,
On Jun 22, 2008, at 7:30 AM, Wang Ning wrote:
Currently this plugin can convert the attachment file which is a office document to html code. This project use jodconverter[1] as the conversion framework which leverage the openoffice power. Please read the README with the code to test. This officeimporter plugin is simple and do a simply tidy html work. don't concern picture handler, xwiki syntax conversion. However, I'll add those feature in the future.
I need to test it.
Now I have to write my thesis in the day time, so I only can work on that project after 6 pm and the weekend. Hense sorry for the delay.
Hmm... I hope this won't impact your work since this is a 2 men/months project roughly and this is only just the beginning.
Todo List 1. clean html with htmlclean[2]. Furthermore, remove the office document special html code. remove <html> <body> <script>. html also have some content that conflict with xwiki syntax like [notlink]. 2. handle pictures in the office file. Maybe upload the images to xwiki as the attachments. Hense I need to go over how xwiki address attachment. Replace <src> with {image:} 3. convert html to xwiki. As Vincent said, I should read the html parser and wikimodel. I think this can be a option for user.
I have committed a XHTML parser in the rendering module.
4. provide the interface for inputstream and outputstream. Hense this plugin can be used in the xwiki code. 5. intergrate it to wysiwyg editor. product a feature to convert local office file to xwiki page. This should use the xwiki upload feature.
Now I'm a little confused that I afraid I can't finish all the task above before the middle exam. What should I do? Which task to pick as first priority? Any suggestion will be very appreciated.
They're all important. I'd say point 5 can be left for after the other points are done.
Thanks -Vincent
[1] http://www.artofsolving.com/opensource/jodconverter [2] http://htmlcleaner.sourceforge.net/ -- Sincerely, Wang Ning
devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Sincerely, Wang Ning
participants (2)
-
Vincent Massol -
Wang Ning