Tags:
create new tag
, view all tags

Question

Double-bracket links convert spaces to next-letter-is-capital. For example:

are links to the same page. Where is this regular expression (if it controlled by one)? I want to add hyphens to the list of next-letter-is-capital characters. I want this so case sensitive and case-sensitive (etc.) will both mean the same to TWiki.

  • TWiki version: Beta April 2002
  • Web server: Apache 1.3.9 (-: heavily patched smile
  • Server OS: Linux-Mandrake 7.0 (also heavily patched)
  • Web browser: Mozilla 1.x, Galeon, Konqueror 3.0.1
  • Client OS: Debian Unstable

-- AsheeshLaroia (lost password so didn't sign in) - 19 Jul 2002

Answer

Got it! I just added this code to TWiki.pm and the FindElsewherePlugin perl modules.

   # <Added by="Asheesh" to="nullify hyphens">
   $theTopic =~ s/-([a-zA-Z0-9])/\U$1/g;
   # </Added>

I added it right after the following snippet in each:

   # kill spaces and Wikify page name (ManpreetSingh - 15 Sep 2000)
   $theTopic =~ s/^\s*//;
   $theTopic =~ s/\s*$//;
   $theTopic =~ s/^(.)/\U$1/;
   $theTopic =~ s/\s([a-zA-Z0-9])/\U$1/g;

Feel free to contact me for more information!

-- AsheeshLaroia (still don't have password) - 20 Jul 2002

IRT password: See TWiki.ResetPassword

-- PeterThoeny - 23 Jul 2002

Topic revision: r4 - 2002-07-23 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.