Tags:
create new tag
view all tags

Question

WikiWordsWithNumbers and WikiNamesWithNumbers discuss the change to treat numbers as "lower case" in WikiWords.

Many of our projects are named of the form LNNL, like A45T. Now that we recently upgraded TWiki to the latest version, we have lots of "question marked" wiki words all over the place. Every place with a project name is now seen as a WikiWord without a topic. We'd have to put "nop" tags in hundreds of places to eliminate all the question marks.

Is there a way to disable the feature that treats numbers as lower case in WikiWords?

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: SpreadSheetPlugin, ActionTrackerPlugin, CommentPlugin, EditTablePlugin, ExplicitNumberingPlugin, InterwikiPlugin, PreferencesPlugin, QuickCalendarPlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, TablePlugin, TwistyPlugin, WysiwygPlugin
Server OS: Red Hat Enterprise Server 5, kernel 2.6.18-8.1.8.el5 SMP x86_64
Web server: Apache/2.2.3
Perl version: 5.8.8
Client OS: Windows XP
Web Browser: Firefox 2.0.0.6
Categories: Missing functionality

-- AlanDayley - 06 Sep 2007

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.

Short time workaround:

Patch the regex in TWiki.pm. Look for this line:

    $regex{wikiWordRegex} = qr/[$regex{upperAlpha}]+[$regex{lowerAlphaNum}]+[$regex{upperAlpha}]+[$regex{mixedAlphaNum}]*/o;

and replace it with this:

    $regex{wikiWordRegex} = qr/[$regex{upperAlpha}]+[$regex{lowerAlpha}]+[$regex{upperAlpha}]+[$regex{mixedAlphaNum}]*/o;

Long term solution:

File a feature request (WebCreateNewTopic to revert the spec change done for WikiWord regex.

-- PeterThoeny - 06 Sep 2007

Thanks, Peter.

Feature request made.

-- AlanDayley - 06 Sep 2007

For the record: Feature request in DisableWikiWordsWithNumbers.

-- SteffenPoulsen - 06 Sep 2007

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-09-06 - SteffenPoulsen
 
  • 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.