[Wikitech-l] Parsoid convert arbitrary HTML?

2015-11-06 Thread James Montalvo
Can Parsoid be used to convert arbitrary HTML to wikitext? It's not clear to me whether it will only work with Parsoid's HTML+RDFa. I'm wondering if I could take snippets of HTML from non-MediaWiki webpages and convert them into wikitext. Thanks, James

Re: [Wikitech-l] Parsoid convert arbitrary HTML?

2015-11-06 Thread Eric Evans
On Fri, Nov 6, 2015 at 10:18 AM, James Montalvo wrote: > Can Parsoid be used to convert arbitrary HTML to wikitext? It's not clear > to me whether it will only work with Parsoid's HTML+RDFa. I'm wondering if > I could take snippets of HTML from non-MediaWiki webpages

Re: [Wikitech-l] Parsoid convert arbitrary HTML?

2015-11-06 Thread James Montalvo
Thanks for the quick response. Is there a simple way to do this without RESTBase? On Nov 6, 2015 10:32 AM, "Eric Evans" wrote: > On Fri, Nov 6, 2015 at 10:18 AM, James Montalvo > wrote: > > > Can Parsoid be used to convert arbitrary HTML to

Re: [Wikitech-l] Parsoid convert arbitrary HTML?

2015-11-06 Thread Subramanya Sastry
On 11/06/2015 10:18 AM, James Montalvo wrote: Can Parsoid be used to convert arbitrary HTML to wikitext? It's not clear to me whether it will only work with Parsoid's HTML+RDFa. I'm wondering if I could take snippets of HTML from non-MediaWiki webpages and convert them into wikitext. The right

Re: [Wikitech-l] Parsoid convert arbitrary HTML?

2015-11-06 Thread Gabriel Wicke
To add to what Eric & Subbu have said, here is a link to the API documentation for this end point: https://en.wikipedia.org/api/rest_v1/?doc#!/Transforms/post_transform_html_to_wikitext_title_revision On Fri, Nov 6, 2015 at 8:47 AM, Subramanya Sastry wrote: > On

Re: [Wikitech-l] Parsoid convert arbitrary HTML?

2015-11-06 Thread James Montalvo
Thanks for the responses. I do want to convert HTML that cannot be assumed to be clean, so it sounds like Parsoid will not solve the problem for now. --James On Fri, Nov 6, 2015 at 11:06 AM, Gabriel Wicke wrote: > To add to what Eric & Subbu have said, here is a link to

Re: [Wikitech-l] Parsoid convert arbitrary HTML?

2015-11-06 Thread Subramanya Sastry
On 11/06/2015 11:15 AM, James Montalvo wrote: Thanks for the responses. I do want to convert HTML that cannot be assumed to be clean, so it sounds like Parsoid will not solve the problem for now. If you give us a sample of the kind of HTML you are looking at, we can see what kind of wikitext