Tags:
create new tag
view all tags

Question

We have many (hundreds, potentially thousands) of ASCII files of almost exactly the same format. We would like to TWikitize them.

By TWikitize I mean:

  • edit file to make it into TWiki table ready (we already have a script or can write better one to do that)

  • then automatically "paste" into Twiki topic and build the page.

  • name the Twiki topic by either the file name or by header information found in the file or by a combination.

We want to eliminate the manual process of copying the correctly formatted text and then pasting and saving it.

By having these files become TWiki pages we can search for important strings and be able to easily sort on columns for analysis.

If this is available in a newer release, please let me know and I will attempt to upgrade. Thank you

Environment

TWiki version: TWikiRelease03Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Red Hat ES 3.5
Web server: 2.046
Perl version: 5.8.0
Client OS: Windows XP
Web Browser: IE
Categories: Missing functionality

-- PeretzDavid - 06 Oct 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

You can basically drop .txt files into any twiki/data/Web directory, and TWiki will pck them up as topics. In your script you can generate some TWiki markup, such as tables and bullets.

Your script can also auto-generate the file name based on your content. Make sure to use only alphanumeric chars, underscore (and if needed dashes). You can generate WikiWord names (such as TestCase1234.txt) so that the topics can link automagically.

-- PeterThoeny - 21 Nov 2006

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-11-21 - PeterThoeny
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.