Hello! For the XOO project, I would need a conversion module which has two components: 1. converter from the swriter html in pure html. 2. bidirectional converter wiki syntax - html. Is this already done in the Office Importer project? If yes, I would be grateful if you tell me where can I find this components. Best regards, Cristina Scheau
Hello! For the XOO project, I would need a conversion module which has two components: 1. converter from the swriter html in pure html. 2. bidirectional converter wiki syntax - html. Is this already done in the Office Importer project? If yes, I would be grateful if you tell me where can I find this components. Best regards, Cristina Scheau PS: sorry for sending this email twice, but first time I've forgotten to add the header to the subject
Hi Cristina, On Tue, May 19, 2009 at 1:18 PM, Cristina Scheau <[email protected]>wrote:
Hello!
For the XOO project, I would need a conversion module which has two components: 1. converter from the swriter html in pure html. 2. bidirectional converter wiki syntax - html.
Is this already done in the Office Importer project? If yes, I would be grateful if you tell me where can I find this components.
Yes, both of these components are already present: swriter html -> xhtml converter: http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-officeimporter/... (This is an xwiki component) xhtml -> xwiki 2.0 syntax: You must first use xhtml parser ( http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki...) and then xwiki/2.0 renderer ( http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki...). Note that renderers are obtained from PrintRendererFactory ( http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki... ) (All of these are plexus components) xwiki 2.0 syntax -> xhtml: Do the reverse of above, use xwiki 2.0 parser ( http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki...) and then xhtml renderer ( http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki...). Again xhtml renderer is obtained through PrintRendererFactory component. Please have a look at officeimporter code base to see how i have done these conversions: ( http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-officeimporter/... ) I hope you are already familair with xwiki components. Let me know if you need more help in this regard. Thanks. - Asiri
Best regards, Cristina Scheau _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On May 19, 2009, at 10:08 AM, Asiri Rathnayake wrote:
Hi Cristina,
On Tue, May 19, 2009 at 1:18 PM, Cristina Scheau <[email protected]>wrote:
Hello!
For the XOO project, I would need a conversion module which has two components: 1. converter from the swriter html in pure html. 2. bidirectional converter wiki syntax - html.
Is this already done in the Office Importer project? If yes, I would be grateful if you tell me where can I find this components.
Yes, both of these components are already present:
[snip]
(All of these are plexus components)
small detail: s/plexus components/xwiki components/ Our components are not bound to plexus at all now (not even their configuration). I have implemented an embedded component manager for example. We need to change all places in our doc where we mention plexus components rather than xwiki components. Thanks -Vincent [snip]
Hi! Thank you very much for the information. I will include this in my design page. Thanks, Cristina Scheau On Tue, May 19, 2009 at 11:08 AM, Asiri Rathnayake < [email protected]> wrote:
Hi Cristina,
On Tue, May 19, 2009 at 1:18 PM, Cristina Scheau <[email protected]>wrote:
Hello!
For the XOO project, I would need a conversion module which has two components: 1. converter from the swriter html in pure html. 2. bidirectional converter wiki syntax - html.
Is this already done in the Office Importer project? If yes, I would be grateful if you tell me where can I find this components.
Yes, both of these components are already present:
swriter html -> xhtml converter:
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-officeimporter/...
(This is an xwiki component)
xhtml -> xwiki 2.0 syntax: You must first use xhtml parser (
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki... ) and then xwiki/2.0 renderer (
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki... ). Note that renderers are obtained from PrintRendererFactory (
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki... )
(All of these are plexus components)
xwiki 2.0 syntax -> xhtml: Do the reverse of above, use xwiki 2.0 parser (
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki... ) and then xhtml renderer (
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki... ). Again xhtml renderer is obtained through PrintRendererFactory component.
Please have a look at officeimporter code base to see how i have done these conversions: (
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-officeimporter/... )
I hope you are already familair with xwiki components.
Let me know if you need more help in this regard.
Thanks.
- Asiri
Best regards, Cristina Scheau _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Hi Cristina,
On Tue, May 19, 2009 at 1:18 PM, Cristina Scheau <[email protected]>wrote:
Hello!
For the XOO project, I would need a conversion module which has two components: 1. converter from the swriter html in pure html. 2. bidirectional converter wiki syntax - html.
Actually for these two particular issues you don't need the office importer specific code. You just need the html cleaner and rendering components. The WYSIWYG is closer to your use case. Here's how the WYSIWYG services use the rendering and html cleaner:
Hi, Since XOO is a client app you won't be using these components directly. You need to have this functionality exposed in a service like XML-RPC, REST or whatever you have decided to use. Asiri Rathnayake wrote: - https://svn.xwiki.org/svnroot/xwiki/platform/web/tags/xwiki-web-1.9-mileston...
Is this already done in the Office Importer project? If yes, I would be grateful if you tell me where can I find this components.
Thanks, Florin Ciubotaru
Hi Cristina, Florin Ciubotaru wrote:
Hi,
Since XOO is a client app you won't be using these components directly. You need to have this functionality exposed in a service like XML-RPC, REST or whatever you have decided to use.
Hi Cristina,
On Tue, May 19, 2009 at 1:18 PM, Cristina Scheau <[email protected]>wrote:
Hello!
For the XOO project, I would need a conversion module which has two components: 1. converter from the swriter html in pure html. 2. bidirectional converter wiki syntax - html.
Actually for these two particular issues you don't need the office importer specific code. You just need the html cleaner and rendering components. The WYSIWYG is closer to your use case. Here's how the WYSIWYG services use the rendering and html cleaner:
Asiri Rathnayake wrote: - https://svn.xwiki.org/svnroot/xwiki/platform/web/tags/xwiki-web-1.9-mileston...
There's a lot of code there. Here's how you can use the HTML cleaner: http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java/... And here's how you can convert from HTML to Wiki and back: http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java/... Hope this helps, Marius
Is this already done in the Office Importer project? If yes, I would be grateful if you tell me where can I find this components. Thanks, Florin Ciubotaru
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Hi everybody! I still have a doubt regarding the xhtml - xwiki convertor. My problem is how I handle the fact that the xwiki Documents can be written also in xwiki syntax 1.0 and 2.0. I've take a look over http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki.... (this one is for xwiki syntax 2.0 . For 1.0 what should I use?) What about the WYSIWYG services? can I use with more syntaxes? I've heard also that the cleaner and converter module will be out of the server package.. when will happen? (I would like in these three weeks to implement a basic bidectional convertor - and change it after the new xml-rpc services will be done. Best regards, Cristina On Tue, May 19, 2009 at 6:18 PM, Marius Dumitru Florea < [email protected]> wrote:
Hi Cristina,
Florin Ciubotaru wrote:
Hi,
Since XOO is a client app you won't be using these components directly. You need to have this functionality exposed in a service like XML-RPC, REST or whatever you have decided to use.
Hi Cristina,
On Tue, May 19, 2009 at 1:18 PM, Cristina Scheau <[email protected]>wrote:
Hello!
For the XOO project, I would need a conversion module which has two components: 1. converter from the swriter html in pure html. 2. bidirectional converter wiki syntax - html.
Actually for these two particular issues you don't need the office importer specific code. You just need the html cleaner and rendering components. The WYSIWYG is closer to your use case. Here's how the WYSIWYG services use the rendering and html cleaner:
Asiri Rathnayake wrote: -
https://svn.xwiki.org/svnroot/xwiki/platform/web/tags/xwiki-web-1.9-mileston...
There's a lot of code there. Here's how you can use the HTML cleaner:
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java/...
And here's how you can convert from HTML to Wiki and back:
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java/...
Hope this helps, Marius
Is this already done in the Office Importer project? If yes, I would be grateful if you tell me where can I find this components. Thanks, Florin Ciubotaru
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Hi Cristina, On Wed, Jun 17, 2009 at 11:57 AM, Cristina Scheau <[email protected]
wrote:
Hi everybody!
I still have a doubt regarding the xhtml - xwiki convertor. My problem is how I handle the fact that the xwiki Documents can be written also in xwiki syntax 1.0 and 2.0. I've take a look over
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki... . (this one is for xwiki syntax 2.0 . For 1.0 what should I use?)
We might want to decide that XOO doesn't work with XWiki 1.0 syntax. This choice would be fine with me but it requires a vote. Before we get there, do anybody else think XOO absolutely needs to support XWiki 1.0 syntax? Guillaume What about the WYSIWYG services? can I use with more syntaxes? I've heard
also that the cleaner and converter module will be out of the server package.. when will happen? (I would like in these three weeks to implement a basic bidectional convertor - and change it after the new xml-rpc services will be done.
Best regards, Cristina
On Tue, May 19, 2009 at 6:18 PM, Marius Dumitru Florea < [email protected]> wrote:
Hi Cristina,
Florin Ciubotaru wrote:
Hi,
Since XOO is a client app you won't be using these components directly. You need to have this functionality exposed in a service like XML-RPC, REST or whatever you have decided to use.
Hi Cristina,
On Tue, May 19, 2009 at 1:18 PM, Cristina Scheau <[email protected]>wrote:
Hello!
For the XOO project, I would need a conversion module which has two components: 1. converter from the swriter html in pure html. 2. bidirectional converter wiki syntax - html.
Actually for these two particular issues you don't need the office importer specific code. You just need the html cleaner and rendering components. The WYSIWYG is closer to your use case. Here's how the WYSIWYG services use the rendering and html cleaner:
Asiri Rathnayake wrote: -
https://svn.xwiki.org/svnroot/xwiki/platform/web/tags/xwiki-web-1.9-mileston...
There's a lot of code there. Here's how you can use the HTML cleaner:
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java/...
And here's how you can convert from HTML to Wiki and back:
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java/...
Hope this helps, Marius
Is this already done in the Office Importer project? If yes, I would
be
grateful if you tell me where can I find this components. Thanks, Florin Ciubotaru
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Guillaume Lerouge Product Manager - XWiki Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/
Guillaume Lerouge wrote:
Hi Cristina,
On Wed, Jun 17, 2009 at 11:57 AM, Cristina Scheau <[email protected]
wrote:
Hi everybody!
I still have a doubt regarding the xhtml - xwiki convertor. My problem is how I handle the fact that the xwiki Documents can be written also in xwiki syntax 1.0 and 2.0. I've take a look over
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki... . (this one is for xwiki syntax 2.0 . For 1.0 what should I use?)
We might want to decide that XOO doesn't work with XWiki 1.0 syntax. This choice would be fine with me but it requires a vote. Before we get there, do anybody else think XOO absolutely needs to support XWiki 1.0 syntax?
On the contrary, I thought that it was understood that XOO won't work with the 1.0 syntax. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Hi Cristina, Cristina Scheau wrote:
Hi everybody!
I still have a doubt regarding the xhtml - xwiki convertor. My problem is how I handle the fact that the xwiki Documents can be written also in xwiki syntax 1.0 and 2.0. I've take a look over http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki.... (this one is for xwiki syntax 2.0 . For 1.0 what should I use?)
I think you should focus only on XWiki 2.0 syntax.
What about the WYSIWYG services? can I use with more syntaxes? I've heard also that the cleaner and converter module will be out of the server package.. when will happen? (I would like in these three weeks to implement a basic bidectional convertor - and change it after the new xml-rpc services will be done.
You can find the converter used by the WYSIWYG here: http://tinyurl.com/nkabqg . It converts from HTML to any syntax supported by the rendering module and from a supported syntax to HTML. So it is a bidirectional converter for HTML. We could extend it to a generic converter component (from any syntax to any syntax). I know we discussed about this a while ago and the conclusion was that is wasn't required but it seems to be useful. The converter component could be used by the WYSIWYG and the XML-RPC services. I'll split the WYSIWYG server and client code in two modules asap so you'll be able to use the HTML converter. Marius
Best regards, Cristina
On Tue, May 19, 2009 at 6:18 PM, Marius Dumitru Florea < [email protected]> wrote:
Hi Cristina,
Florin Ciubotaru wrote:
Hi,
Since XOO is a client app you won't be using these components directly. You need to have this functionality exposed in a service like XML-RPC, REST or whatever you have decided to use.
Hi Cristina,
On Tue, May 19, 2009 at 1:18 PM, Cristina Scheau <[email protected]>wrote:
Hello!
For the XOO project, I would need a conversion module which has two components: 1. converter from the swriter html in pure html. 2. bidirectional converter wiki syntax - html.
Actually for these two particular issues you don't need the office importer specific code. You just need the html cleaner and rendering components. The WYSIWYG is closer to your use case. Here's how the WYSIWYG services use the rendering and html cleaner:
Asiri Rathnayake wrote: -
https://svn.xwiki.org/svnroot/xwiki/platform/web/tags/xwiki-web-1.9-mileston...
There's a lot of code there. Here's how you can use the HTML cleaner:
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java/...
And here's how you can convert from HTML to Wiki and back:
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java/...
Hope this helps, Marius
Is this already done in the Office Importer project? If yes, I would be grateful if you tell me where can I find this components. Thanks, Florin Ciubotaru
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Marius Dumitru Florea wrote:
Hi Cristina,
Cristina Scheau wrote:
Hi everybody!
I still have a doubt regarding the xhtml - xwiki convertor. My problem is how I handle the fact that the xwiki Documents can be written also in xwiki syntax 1.0 and 2.0. I've take a look over http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki.... (this one is for xwiki syntax 2.0 . For 1.0 what should I use?)
I think you should focus only on XWiki 2.0 syntax.
What about the WYSIWYG services? can I use with more syntaxes? I've heard
also that the cleaner and converter module will be out of the server
The WYSIWYG editor uses the HTML cleaner component found in xwiki-xml module. We added just a few specific cleaning filters. You should use the default cleaning component as well. No need to depend on the WYSIWYG HTML cleaner. Take a look at http://tinyurl.com/nwvleh to see how the default HTML cleaning component is used.
package.. when will happen? (I would like in these three weeks to implement a basic bidectional convertor - and change it after the new xml-rpc services will be done.
You can find the converter used by the WYSIWYG here: http://tinyurl.com/nkabqg . It converts from HTML to any syntax supported by the rendering module and from a supported syntax to HTML. So it is a bidirectional converter for HTML. We could extend it to a generic converter component (from any syntax to any syntax). I know we discussed about this a while ago and the conclusion was that is wasn't required but it seems to be useful. The converter component could be used by the WYSIWYG and the XML-RPC services.
I'll split the WYSIWYG server and client code in two modules asap so you'll be able to use the HTML converter.
Marius
Best regards, Cristina
On Tue, May 19, 2009 at 6:18 PM, Marius Dumitru Florea < [email protected]> wrote:
Hi Cristina,
Florin Ciubotaru wrote:
Hi,
Since XOO is a client app you won't be using these components directly. You need to have this functionality exposed in a service like XML-RPC, REST or whatever you have decided to use.
Hi Cristina,
On Tue, May 19, 2009 at 1:18 PM, Cristina Scheau <[email protected]>wrote:
Hello!
For the XOO project, I would need a conversion module which has two components: 1. converter from the swriter html in pure html. 2. bidirectional converter wiki syntax - html.
Actually for these two particular issues you don't need the office importer specific code. You just need the html cleaner and rendering components. The WYSIWYG is closer to your use case. Here's how the WYSIWYG services use the rendering and html cleaner:
Asiri Rathnayake wrote: -
https://svn.xwiki.org/svnroot/xwiki/platform/web/tags/xwiki-web-1.9-mileston...
There's a lot of code there. Here's how you can use the HTML cleaner:
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java/...
And here's how you can convert from HTML to Wiki and back:
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java/...
Hope this helps, Marius
Is this already done in the Office Importer project? If yes, I would be grateful if you tell me where can I find this components. Thanks, Florin Ciubotaru
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Hi everybody! Thank you all for your answers. Now it is clear for me. Thanks, Cristina On Wed, Jun 17, 2009 at 2:45 PM, Marius Dumitru Florea < [email protected]> wrote:
Marius Dumitru Florea wrote:
Hi Cristina,
Cristina Scheau wrote:
Hi everybody!
I still have a doubt regarding the xhtml - xwiki convertor. My problem is how I handle the fact that the xwiki Documents can be written also in xwiki syntax 1.0 and 2.0. I've take a look over
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki... .
(this one is for xwiki syntax 2.0 . For 1.0 what should I use?)
I think you should focus only on XWiki 2.0 syntax.
What about the WYSIWYG services? can I use with more syntaxes? I've heard
also that the cleaner and converter module will be out of the server
The WYSIWYG editor uses the HTML cleaner component found in xwiki-xml module. We added just a few specific cleaning filters. You should use the default cleaning component as well. No need to depend on the WYSIWYG HTML cleaner. Take a look at http://tinyurl.com/nwvleh to see how the default HTML cleaning component is used.
package.. when will happen? (I would like in these three weeks to implement a basic bidectional convertor - and change it after the new xml-rpc services will be done.
You can find the converter used by the WYSIWYG here: http://tinyurl.com/nkabqg . It converts from HTML to any syntax supported by the rendering module and from a supported syntax to HTML. So it is a bidirectional converter for HTML. We could extend it to a generic converter component (from any syntax to any syntax). I know we discussed about this a while ago and the conclusion was that is wasn't required but it seems to be useful. The converter component could be used by the WYSIWYG and the XML-RPC services.
I'll split the WYSIWYG server and client code in two modules asap so you'll be able to use the HTML converter.
Marius
Best regards, Cristina
On Tue, May 19, 2009 at 6:18 PM, Marius Dumitru Florea < [email protected]> wrote:
Hi Cristina,
Florin Ciubotaru wrote:
Hi,
Since XOO is a client app you won't be using these components
directly.
You need to have this functionality exposed in a service like XML-RPC, REST or whatever you have decided to use.
Hi Cristina,
On Tue, May 19, 2009 at 1:18 PM, Cristina Scheau <[email protected]>wrote:
> Hello! > > For the XOO project, I would need a conversion module which has two > components: > 1. converter from the swriter html in pure html. > 2. bidirectional converter wiki syntax - html. > > Actually for these two particular issues you don't need the office importer specific code. You just need the html cleaner and rendering components. The WYSIWYG is closer to your use case. Here's how the WYSIWYG services use the rendering and html cleaner:
Asiri Rathnayake wrote: -
https://svn.xwiki.org/svnroot/xwiki/platform/web/tags/xwiki-web-1.9-mileston...
There's a lot of code there. Here's how you can use the HTML cleaner:
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java/...
And here's how you can convert from HTML to Wiki and back:
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java/...
Hope this helps, Marius
> Is this already done in the Office Importer project? If yes, I would
be
> grateful if you tell me where can I find this components. Thanks, Florin Ciubotaru
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (7)
-
Asiri Rathnayake -
Cristina Scheau -
Florin Ciubotaru -
Guillaume Lerouge -
Marius Dumitru Florea -
Sergiu Dumitriu -
Vincent Massol