Opened 6 years ago

Last modified 6 years ago

#8429 new defect

Character subsets of words are matched as acronyms

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Component: AcronymsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


Example: When the acronym WFM is defined, WFMD shows up as a match (only the WFM portion is underlined).

Attachments (1)

WFM.png (2.2 KB) - added by Ryan J Ollos 6 years ago.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by Ryan J Ollos

Attachment: WFM.png added

comment:1 Changed 6 years ago by Ryan J Ollos

The plugin is designed so that <acronym>[<id>] can be matched, so it's not so straightforward to avoid matching WFMD. We could avoid these matches in the case that an ID URL is not specified for the acronym, however we'd still get false matches in some situations.

For example, with the following definition,

||RFC ||Request For Comment $1 || ||$1.txt||

we'd still match RFCD, when we only intend to match trailing numerics such as RFC2317.

I can think of a couple of options:

  • Make the acronym definition syntax more sophisticated so that, for example, only trailing numeric characters would be matched in the example provided above (replace $1 with %d).
  • Rather than matching RFC 2317, create a wiki markup syntax such as RFC(2317). This could be transformed to HTML as RFC 2317, as is currently done. The major issue I see with this is that it is not backward compatible, however we could do the work on a new branch (e.g. 0.12), or tag the current version before moving forward.

Let me know what you think.

comment:2 Changed 6 years ago by Ryan J Ollos

Summary: Partial words are matched as acronymsCharacter subsets of words are matched as acronyms

Modify Ticket

as new The owner will remain Ryan J Ollos.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.