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

« back to all changes in this revision

Viewing changes to t/complete.oddmuse

  • 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
 
 HTML::WikiConverter 
 
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
 
 Installation 
 
19
 Installation
20
20
 
21
21
It's very easy to use HTML::WikiConverter. Grab a copy from your favorite [http://www.cpan.org CPAN mirror] and then run something like this:
22
22
 
27
27
 
28
28
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/.
29
29
 
30
 
 Dialect features 
 
30
 Dialect features
31
31
 
32
32
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.
33
33
 
34
 
 Bugs 
 
34
 Bugs
35
35
 
36
36
Of course there are always bugs. Luckily, CPAN comes to the rescue again with its [http://rt.cpan.org bug tracking service] for module authors.
37
37
 
42
42
||Otago skink ||Otago (New Zealand) ||Black, yellow, and green camouflage ||Insects, fruits, small lizards ||
43
43
||Aplysia california ||California ||Deep red-colored sea hare ||Red and brown seaweed ||
44
44
 
45
 
 Common features  Images 
 
45
 Common features  Images
46
46
 
47
47
Many dialects allow embedded images, either from local or remote stores.
48
48
 
49
49
http://www.google.com/images/logo.gif
50
50
 
51
 
 Lists 
 
51
 Lists
52
52
 
53
53
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.
54
54
 
55
 
* 1 
 
55
* 1
56
56
** 1a
57
 
** 1b 
58
 
* 2 
59
 
** 2a 
 
57
** 1b
 
58
* 2
 
59
** 2a
60
60
*** fee
61
61
*** fie
62
 
*** foe 
63
 
**** fum?  
 
62
*** foe
 
63
**** fum?
64
64
 
65
65
Some wikis support definition lists, though they're often used inappropriately (as in MediaWiki, which uses them for indentation).
66
66