Tags:
create new tag
view all tags

PhpWikiToTWikiAddOnDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on PhpWikiToTWikiAddOn contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Feedback on PhpWikiToTWikiAddOn

-- JuanGrigera - 02 May 2005

Thank you Juan for the contribution!

What was the reason to switch from phpWiki to TWiki?

-- PeterThoeny - 03 May 2005

I have attached an updated version to the PhpWikiToTWikiAddOn page with the following enhancements:

  • Added reading of source and destination directories from the command line
  • Extraction of only the latest revision from a full backup (reads first mime chunk, discards the rest).
  • Fixed bug where HEADERS weren't being cleared before each file
  • Added filtering out of DOS line endings (don't know if all phpwiki backups have them, but mine did)
  • Conversion of force line breaks
  • removal of %## in file names (usually used for spaces), uppercasing of first letter after each space
  • insertion of a space after * in lists
  • changed from removing forced links to converting them to twiki forced links
  • fixed a bug in readHeader where it was expected that a failed match would undefine $1 (it doesn't)

-- KevinSeghetti - 11 Aug 2005

I have attached an updated version (0.3) of the php2twiki perl script.

  • The fix filename code (used in convertFile()) has been pulled into its own subroutine FixFilename
  • Added the FixLink() subroutine which is an attempt at a smarter conversion of link names. This needs more work especially with respect to handling all of the "special" characters. Currently we only handle "space letter", "dot letter", "single-quote, letter" and "ampersand letter". FixLink() is called from filterWiki() when converting [link] to [[link]] and [description|link] to [[link][description]]
  • Improved the way lists (bullet and numbered) are converted. List conversion used to lose all structure e.g. every phpwiki list was converted into a flat twiki list. We now convert by guessing that every 2 spaces is an indent. At worst this will create too many indents but at least the general structure is mostly preserved.
  • Added wiki word escaping syntax conversion of phpwiki ~ to twiki !

-- GeorgeStojanoff - 09 September 2005

I added a SHORTDESCRIPTION to the "Add-On Info" section so that this add-on is represented properly in the AddOnPackage topic and query topics. Please feel free to take this into the next release.

-- PeterThoeny - 04 Nov 2006

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2006-11-04 - 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.