On Wed, Apr 17, 2013 at 10:48 AM, Yury Katkov <katkov.ju...@gmail.com> wrote:
> We're making a collective document with MediaWiki and want to allow the user
> to export the whole document in MsWord and PDF formats. The idea is to
> create XML-representation of the result and then turn it to doc and pdf.
>
> 1) I have no idea how to implement the conversion to MSWord. Maybe with XSL
> and FOP?
> 2) It would be great to first generate the LaTeX representation and then
> compile it to the document. Which tools can you recommend to convert
> XML\JSON to Latex?

I don't have great answers for 1 or 2, especially based on your
suggestion that the document go through an intermediate XML
representation.  If you can drop that requirement, then you might be
able to use something like wiki2latex [1] for PDF generation, although
there are some scary warnings about its security, at the moment.  As
to MS Word;  I've found that MS Word actually reads well-marked-up
(X)HTML pretty well.  Would it be possible to simply download the
printable version of a page as (X)HTML and open it in Word?

Another option that I *just* learned about (while going to Wikipedia
to try out the printable version -> HTML -> MS Word), is to use
whatever extension Wikipedia is running to generate PDFs of pages
(see, e.g., [2]).  The results there look reasonably sharp.  That's
provided by the Collection extension [3].

//JT

[1] http://www.mediawiki.org/wiki/Extension:Wiki2LaTeX
[2] 
http://en.wikipedia.org/w/index.php?title=Special:Book&bookcmd=rendering&return_to=Semantic+MediaWiki&collection_id=505763692601abed&writer=rl
[3] https://www.mediawiki.org/wiki/Extension:Collection

-- 
Joshua Taylor, http://www.cs.rpi.edu/~tayloj/

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to