wiki:PageToDocIntegration

Version 1 (modified by lei, 8 years ago) (diff)

New hack PageToDocIntegration, created by lei

A Trac plugin for export of wiki pages to MS Word

Description

The aim of the plugin is to transform a wiki page so that it can be imported using the HTML import capability of MS Word. After that, a format template can be applied, and the text might be copied into a document template.

The plugin works as follows:

  • Cleanup and validation using HTML Tidy.
  • Transformation using a XSLT stylesheet
  • Offering a zip file with wiki page and images for downloading.

Installation:

  • Install HTML Tidy.
  • Make sure xsltproc is available. If not, install from http://xmlsoft.org/XSLT/xsltproc2.html
  • Save the XSLT stylesheet onto your disk.
  • Create the following section in your trac.ini (modify path):
    [pagetodoc]
    xsltfile = /path/to/your/xsltfile
    
  • Install plugin.

The plugin is in a alpha state. There are a couple of things to be enhanced. Please try and give feedback.

Bugs/Feature Requests

Existing bugs and feature requests for PageToDocIntegration are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:pagetodocintegration here].

Source

You can check out PageToDocIntegration from here using Subversion, or browse the source with Trac.

Example

Once installed, a new entry shows up below the Download in other formats section at the end of the page. Click and save to disk. Extract and open with Word.

Recent Changes

7642 by markm on 2010-02-18 10:38:54
Fixed spelling errors regarding xslt (was xlst)
7641 by markm on 2010-02-18 10:36:38
Fixes:6522
The order of the parameters to xsltproc were wrong.
7640 by markm on 2010-02-18 10:35:46
Added maintainer information to setup.py
(more)

Author/Contributors

Author: lei
Contributors: