Modify

Opened 14 years ago

Last modified 5 years ago

#8429 new defect

Character subsets of words are matched as acronyms

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

Description

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 14 years ago.

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by Ryan J Ollos

Attachment: WFM.png added

comment:1 Changed 14 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 ||http://www.ietf.org/rfc.html ||http://www.ietf.org/rfc/rfc$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 14 years ago by Ryan J Ollos

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

comment:3 Changed 5 years ago by Ryan J Ollos

Owner: Ryan J Ollos deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


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

 
Note: See TracTickets for help on using tickets.