Wiki text can be easily converted into other formats such as HTML, LaTeX, RTF, and PDF with Text_Wiki software.
With Text_Wiki, you can convert different styles of Wiki text into different formats, such as Tavi-style Wiki text into XHTML, original C2-style Wiki text into XML, or MeatBall style Wiki text into LaTeX. The software achieves this level of flexibility by using a class for each part of the transformation process.
Text_Wiki includes one class for parsing each markup rule, one class for rendering each general format, and one class for rendering each rule in each format. However, the current version of Text_Wiki only supports XHTML and plain-text output, with plans to add support for other formats as the codebase becomes more stable and mature.
To use Text_Wiki, your system must meet certain requirements: it needs to have PHP Version 4.0.0 or newer and the PEAR Installer 1.4.0b1 or newer.
The 1.1.0 Stable Release includes several new features, such as the ability to instantiate renderers only as needed, the introduction of a factory() method for instantiating Text_Wiki objects, and a static method to get a single object instanced pro parser. The constructor is now deprecated in favor of the new singleton() or factory() methods, and the Default also has its own class now, making Text_Wiki a pure abstract class. Renderers now have their own methods for text, url, and improved rendering for tables.
The 1.2.0RC1 Development Release includes experimental new rendering methods that use preg instead of char-by-char parsing. The software now has internal Text_Wiki error handling used in factory and singleton, and needed files are now required. However, bertrand Gugger has left development of Text_Wiki.
Some bugs have also been fixed in this release, such as encoding issues with Xhtml/Wikilink URLs and variable substitution in the Latex renderer. Raw output is now encoded in Xhtml renderer to avoid XSS attacks, and anchor output in Xhtml/Wikilink has been fixed when used in conjunction with sprintf.
Overall, Text_Wiki offers a powerful and flexible solution for converting Wiki text into various output formats, with plans to add even more formats in future updates. The software is easy to use and compatible with different systems and requirements.
Version 1.2.0RC1: N/A