You are here: Foswiki>Tasks Web>Item14103 (30 Jun 2016, VickiBrown)Edit Attach

Item14103: INCLUDEs is (not) a Wiki Word

pencil
Priority: Low
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: VickiBrown
Waiting For:
Last Change By: VickiBrown
I was surprised to note that FW auto-linked INCLUDEs as if it's a WikiWord.

According to System.WikiWord:

A WikiWord consists of two or more words with initial capitals, run together.

...

TIP Note that acronyms are also auto-linked, but only if the topic already exists.

...

Syntax of a WikiWord

  • Uppercase letter(s)
  • Lowercase letter(s) or numbers(s)
  • Uppercase letter(s)
  • Optional lowercase or uppercase letter(s) or number(s)

The string INCLUDEs does not consist of two or more words with initial capitals, run together. It does not meet the Syntax of a WikiWord. It is not an acronym. It is not the name of an existing topic in the Tasks web.

-- VickiBrown - 29 Jun 2016

Seems to be a breakage in the handling of "plural" linking. Plurals of wikiwords are automatically linked to the singular if it exists. However ACRONYM notes:
Unlike WikiWords, plural Acronyms are not automatically linked to the singular topic.

-- GeorgeClark - 30 Jun 2016

Tracking the regular expression backwards,
$regex{abbrevRegex} = qr/[$regex{upperAlpha}]{$abbrevLength,}s?\b/;
matches plural Acronyms (core calls them abbreviations), going all the way back to the initial import from TWiki in 2008.

I think that this is probably more likely a very old documentation bug (Acronyms can be plural) than a core rendering bug.

-- GeorgeClark - 30 Jun 2016

Interesting! (and unexpected, especially given that INCLUDE is not an acronym and one rarely runs across plural acronyms). But I'll take it.

-- VickiBrown - 30 Jun 2016
 
Topic revision: r3 - 30 Jun 2016, VickiBrown
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy