create new tag
, view all tags
If I want to move existing webpages into a TWiki, it would be nice to have a tool which automated turning <b> into * and so forth.

The user interface would be "Paste your HTML into this box, and I'll return Wikified text that you can cut and paste into a TWiki page."

It would be hard to do a full up conversion (tables?), but in addition to straightforward substitutions (<b> to *), the script could convert links to TWiki form, and look for HTML tags broken over multiple lines, which don't work in TWiki unless they are a single line.

I'd be happy to provide the raw script to do this, but integrating it into TWiki the Right Way is something I'm unsure about.

-- GregLindahl - 10 Dec 2001

This would certainly be interesting for some installations. It would be a bit difficult to get it right though; some instances of <b> cannot be replaced since Wiki doesn't recognize "*" in all instances.

The script should be integrated near the place where TWiki transforms Wiki-style annotations into HTML.

-- JoachimDurchholz - 11 Dec 2001

Actually, it's harder than that: Wiki only likes foo and not *foo bar* (there's a newline after foo). Hm. It's going to be fun code. I really wish Wiki Markup Language was 1:1 with HTML.

-- GregLindahl - 22 Dec 2001

If you do this: add some regression testing. TWiki is going to have test scripts, and Html2Tml is one of the things that really should have such a test: easy to code but difficult to verify.

-- JoachimDurchholz - 26 Dec 2001

It's true: great minds think in the same ruts! smile I came on this evening intent on requesting an "HTML2TML" (HTML to TWiki Markup Language) feature, and here someone has beaten me to it!

What's the point of this you might ask? Well, consider the wealth of HTML doc that comes with many OS projects these days. As is often the case, OS project doc (if there is any) tends to suffer from accuracy and completeness issues (to be kind). One could fire up an HTML editor and annotate or add to the doc, but Twiki seems more convenient for general documentation efforts (compared to page composition), not to mention the opportunity for collaboration amongst one's co-conspirators, if any.

It might be convenient to have this embedded in TWiki somehow, but my notion was a simple script that one could run and end up with a TML text file that could be copied into an appropriate web/directory (hmmm... where Twiki suddenly knows about it how?).

I just realized that one barrier to this is TWiki's mixing of syntax and semantics as it where. I'm going to post a FeatureEnhancementRequest about that...

-- DavidLeBlanc - 20 Dec 2001

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2001-12-26 - JoachimDurchholz
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.