~ubuntu-branches/ubuntu/oneiric/libhtml-wikiconverter-perl/oneiric

« back to all changes in this revision

Viewing changes to t/complete.snipsnap

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Genannt
  • Date: 2006-01-09 20:19:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060109201912-306xp7tjdjcwejlu
Tags: 0.40-1
New Upstream Release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
1  HTML::WikiConverter 
 
1
1  HTML::WikiConverter
2
2
 
3
3
HTML::WikiConverter is a Perl module for converting HTML to wiki markup for a variety of different wiki engines. Currently, it supports __eleven__ dialects:
4
4
 
5
 
* DocuWiki 
6
 
* Kwiki 
7
 
* MediaWiki 
8
 
* MoinMoin 
9
 
* Oddmuse 
10
 
* PhpWiki 
11
 
* PmWiki 
12
 
* SnipSnap 
13
 
* TikiWiki 
14
 
* UseMod 
15
 
* WakkaWiki 
 
5
* DokuWiki
 
6
* Kwiki
 
7
* MediaWiki
 
8
* MoinMoin
 
9
* Oddmuse
 
10
* PhpWiki
 
11
* PmWiki
 
12
* SnipSnap
 
13
* TikiWiki
 
14
* UseMod
 
15
* WakkaWiki
16
16
 
17
17
I'd ~~really~~ like to add support for TWiki, but the way it handles ~~__bold italics__~~ (and possibly other nested elements) is very disappointing.
18
18
 
19
 
1.1  Installation 
 
19
1.1  Installation
20
20
 
21
21
It's very easy to use HTML::WikiConverter. Grab a copy from your favorite {link:CPAN mirror|http://www.cpan.org} and then run something like this:
22
22
 
28
28
 
29
29
Alternatively, you might want to try HTML::WikiConverter's command line interface; it's a program called html2wiki and it's stored in ~~bin/html2wiki~~.
30
30
 
31
 
1.1  Dialect features 
 
31
1.1  Dialect features
32
32
 
33
33
Unfortunately, I haven't managed to implement every feature of each supported dialect. My initial goal was simply to create a converter for MediaWiki (I am a Wikipediholic, after all :-), but then PhpWiki's Reini Urban suggested that I be more ambitious and provide the dialect interface. And so far I've been really happy with the progress.
34
34
 
35
 
1.1  Bugs 
 
35
1.1  Bugs
36
36
 
37
37
Of course there are always bugs. Luckily, CPAN comes to the rescue again with its {link:bug tracking service|http://rt.cpan.org} for module authors.
38
38
 
45
45
Aplysia california | California | Deep red-colored sea hare | Red and brown seaweed
46
46
{table}
47
47
 
48
 
1.1  Common features 
 
48
1.1  Common features
49
49
 
50
 
1.1  Images 
 
50
1.1  Images
51
51
 
52
52
Many dialects allow embedded images, either from local or remote stores.
53
53
 
54
 
1.1  Lists 
 
54
1.1  Lists
55
55
 
56
56
Wikis also support lists, even extensively nested ones. Some rely on leading characters to determine nest levels, while others rely on spaces or (egad!) tabs.
57
57
 
58
 
* 1 
 
58
* 1
59
59
** 1a
60
 
** 1b 
61
 
* 2 
62
 
** 2a 
 
60
** 1b
 
61
* 2
 
62
** 2a
63
63
111. fee
64
64
111. fie
65
 
111. foe 
66
 
**** fum?  
 
65
111. foe
 
66
**** fum?
67
67
 
68
68
Some wikis support definition lists, though they're often used inappropriately (as in MediaWiki, which uses them for indentation).
69
69