Vincent Massol wrote:
To which other
email are you referring to?
The one where I said:
Was it in reply to my email? Can't see it.
"
Interesting problem... I think there are several possibilities:
1) You intercept page save and parse the content to add links for acronyms.
2) You do as you suggest and play with the rendering. This means that
the links will not exist in the database though
I prefer 1) because with 2) you'll probably not benefit from features
like automatic page rename. In addition 1) is easier to implement as we
have a notification API to get called when the page is saved for example.
I agree that 1) is better. It is also faster, and it is step to phase
two - automatic links. Where/how to hook?
What algorithm will you use to detect an acronym vs a
standard word?
2 letters or more, starting with upper case, letters in the middle,
numbers or upper case at the end. E.g.
MS
IPv6
RADIUS
I'm writing from home so I don't have exact regex here. It took me 3
days to figure out how to skip HTML tags and existing links.