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 have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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#FeatureRequest) 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:
Topic revision: r4 - 06 Sep 2007 - 22:22:13 - SteffenPoulsen
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback